Class AbstractDataWriterTask
java.lang.Object
com.linkedin.venice.hadoop.task.datawriter.AbstractDataWriterTask
- Direct Known Subclasses:
AbstractInputRecordProcessor
,AbstractPartitionWriter
,KafkaInputFormatCombiner
,ValidateSchemaAndBuildDictMapper
Class for commonalities between
AbstractInputRecordProcessor
, AbstractPartitionWriter
,
KafkaInputFormatCombiner
and ValidateSchemaAndBuildDictMapper
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
configure
(EngineTaskConfigProvider engineTaskConfigProvider) Configures the task with the givenEngineTaskConfigProvider
.protected abstract void
configureTask
(VeniceProperties props) Allow implementations of this class to configure task-specific stuff.protected EngineTaskConfigProvider
protected int
protected int
protected boolean
protected boolean
protected void
setChunkingEnabled
(boolean isChunkingEnabled)
-
Field Details
-
TASK_ID_NOT_SET
protected static final int TASK_ID_NOT_SET- See Also:
-
-
Constructor Details
-
AbstractDataWriterTask
public AbstractDataWriterTask()
-
-
Method Details
-
getPartitionCount
protected int getPartitionCount()- Returns:
- The number of partitions for the pubsub topic where data will be written.
-
getTaskId
protected int getTaskId()- Returns:
- The ID of the current task. This ID number is 0-based.
-
setChunkingEnabled
protected void setChunkingEnabled(boolean isChunkingEnabled) -
isChunkingEnabled
protected boolean isChunkingEnabled() -
isRmdChunkingEnabled
protected boolean isRmdChunkingEnabled() -
getEngineTaskConfigProvider
-
configureTask
Allow implementations of this class to configure task-specific stuff.- Parameters:
props
- the job props that the task was configured with.
-
configure
Configures the task with the givenEngineTaskConfigProvider
.- Parameters:
engineTaskConfigProvider
-
-