Class PerformWikibaseEditsOperation.RowEditingResultsProducer
- java.lang.Object
-
- org.openrefine.wikibase.operations.PerformWikibaseEditsOperation.RowEditingResultsProducer
-
- All Implemented Interfaces:
Serializable,RowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>
- Enclosing class:
- PerformWikibaseEditsOperation
protected static class PerformWikibaseEditsOperation.RowEditingResultsProducer extends Object implements RowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchSizeprotected ColumnModelcolumnModelprotected org.wikidata.wdtk.wikibaseapi.ApiConnectionconnectionprotected org.wikidata.wdtk.wikibaseapi.WikibaseDataEditoreditorprotected org.wikidata.wdtk.wikibaseapi.WikibaseDataFetcherfetcherprotected NewEntityLibrarylibraryprotected intmaxEditsPerMinuteprotected intmaxLagprotected WikibaseSchemaschemaprotected Stringsummaryprotected List<String>tags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerformWikibaseEditsOperation.RowEditingResultscall(long rowId, Row row)Compute the change data on a given row.List<PerformWikibaseEditsOperation.RowEditingResults>callRowBatch(List<IndexedRow> rows)Compute the change data on a batch of consecutive rows.intgetBatchSize()The size of batches this producer would like to be called on.intgetMaxConcurrency()The maximum number of concurrent calls to this change data producer.
-
-
-
Field Detail
-
connection
protected final org.wikidata.wdtk.wikibaseapi.ApiConnection connection
-
schema
protected final WikibaseSchema schema
-
columnModel
protected final ColumnModel columnModel
-
summary
protected final String summary
-
batchSize
protected final int batchSize
-
maxLag
protected final int maxLag
-
maxEditsPerMinute
protected final int maxEditsPerMinute
-
library
protected final NewEntityLibrary library
-
fetcher
protected final org.wikidata.wdtk.wikibaseapi.WikibaseDataFetcher fetcher
-
editor
protected final org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor editor
-
-
Method Detail
-
call
public PerformWikibaseEditsOperation.RowEditingResults call(long rowId, Row row)
Description copied from interface:RowChangeDataProducerCompute the change data on a given row.- Specified by:
callin interfaceRowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>
-
callRowBatch
public List<PerformWikibaseEditsOperation.RowEditingResults> callRowBatch(List<IndexedRow> rows)
Description copied from interface:RowChangeDataProducerCompute the change data on a batch of consecutive rows. This defaults to individual calls if the method is not overridden.- Specified by:
callRowBatchin interfaceRowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>- Parameters:
rows- the list of rows to fetch change data on- Returns:
- a list of the same size
-
getBatchSize
public int getBatchSize()
Description copied from interface:RowChangeDataProducerThe size of batches this producer would like to be called on. Smaller batches can be submitted (for instance at the end of a partition). Defaults to 1.- Specified by:
getBatchSizein interfaceRowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>
-
getMaxConcurrency
public int getMaxConcurrency()
Description copied from interface:RowChangeDataProducerThe maximum number of concurrent calls to this change data producer. If 0, there is no limit to the concurrency.- Specified by:
getMaxConcurrencyin interfaceRowChangeDataProducer<PerformWikibaseEditsOperation.RowEditingResults>
-
-