Class AbstractDataWriterTask
java.lang.Object
com.linkedin.venice.hadoop.task.datawriter.AbstractDataWriterTask
- Direct Known Subclasses:
AbstractInputRecordProcessor,AbstractPartitionWriter,KafkaInputFormatCombiner
Class for commonalities between
AbstractInputRecordProcessor, AbstractPartitionWriter,
and KafkaInputFormatCombiner.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidconfigure(EngineTaskConfigProvider engineTaskConfigProvider) Configures the task with the givenEngineTaskConfigProvider.protected abstract voidconfigureTask(VeniceProperties props) Allow implementations of this class to configure task-specific stuff.protected EngineTaskConfigProviderprotected intprotected intprotected booleanprotected booleanprotected voidsetChunkingEnabled(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-
-