Class VeniceKafkaInputMapper
- java.lang.Object
-
- com.linkedin.venice.hadoop.task.datawriter.AbstractDataWriterTask
-
- com.linkedin.venice.hadoop.task.datawriter.AbstractInputRecordProcessor<INPUT_KEY,INPUT_VALUE>
-
- com.linkedin.venice.hadoop.mapreduce.datawriter.map.AbstractVeniceMapper<KafkaInputMapperKey,KafkaInputMapperValue>
-
- com.linkedin.venice.hadoop.input.kafka.VeniceKafkaInputMapper
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.hadoop.io.Closeable,org.apache.hadoop.mapred.JobConfigurable,org.apache.hadoop.mapred.Mapper<KafkaInputMapperKey,KafkaInputMapperValue,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
public class VeniceKafkaInputMapper extends AbstractVeniceMapper<KafkaInputMapperKey,KafkaInputMapperValue>
This class is designed specifically forKafkaInputFormat, and right now, it is doing simple pass-through.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.hadoop.task.datawriter.AbstractInputRecordProcessor
veniceRecordReader
-
Fields inherited from class com.linkedin.venice.hadoop.task.datawriter.AbstractDataWriterTask
TASK_ID_NOT_SET
-
-
Constructor Summary
Constructors Constructor Description VeniceKafkaInputMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidconfigureTask(VeniceProperties props)Allow implementations of this class to configure task-specific stuff.protected FilterChain<KafkaInputMapperValue>getFilterChain(VeniceProperties props)protected AbstractVeniceRecordReader<KafkaInputMapperKey,KafkaInputMapperValue>getRecordReader(VeniceProperties props)A method for child classes to setupAbstractInputRecordProcessor.veniceRecordReader.protected booleanprocess(KafkaInputMapperKey inputKey, KafkaInputMapperValue inputValue, java.util.concurrent.atomic.AtomicReference<byte[]> keyRef, java.util.concurrent.atomic.AtomicReference<byte[]> valueRef, DataWriterTaskTracker dataWriterTaskTracker)This function will return true if the input key/value pair is valid.-
Methods inherited from class com.linkedin.venice.hadoop.mapreduce.datawriter.map.AbstractVeniceMapper
configure, map
-
Methods inherited from class com.linkedin.venice.hadoop.task.datawriter.AbstractInputRecordProcessor
processRecord, readDictionaryFromKafka
-
Methods inherited from class com.linkedin.venice.hadoop.task.datawriter.AbstractDataWriterTask
configure, getEngineTaskConfigProvider, getPartitionCount, getTaskId, isChunkingEnabled, isRmdChunkingEnabled, setChunkingEnabled
-
-
-
-
Method Detail
-
getRecordReader
protected AbstractVeniceRecordReader<KafkaInputMapperKey,KafkaInputMapperValue> getRecordReader(VeniceProperties props)
Description copied from class:AbstractInputRecordProcessorA method for child classes to setupAbstractInputRecordProcessor.veniceRecordReader.- Specified by:
getRecordReaderin classAbstractInputRecordProcessor<KafkaInputMapperKey,KafkaInputMapperValue>
-
getFilterChain
protected FilterChain<KafkaInputMapperValue> getFilterChain(VeniceProperties props)
-
configureTask
protected void configureTask(VeniceProperties props)
Description copied from class:AbstractDataWriterTaskAllow implementations of this class to configure task-specific stuff.- Overrides:
configureTaskin classAbstractInputRecordProcessor<KafkaInputMapperKey,KafkaInputMapperValue>- Parameters:
props- the job props that the task was configured with.
-
process
protected boolean process(KafkaInputMapperKey inputKey, KafkaInputMapperValue inputValue, java.util.concurrent.atomic.AtomicReference<byte[]> keyRef, java.util.concurrent.atomic.AtomicReference<byte[]> valueRef, DataWriterTaskTracker dataWriterTaskTracker)
Description copied from class:AbstractInputRecordProcessorThis function will return true if the input key/value pair is valid.- Overrides:
processin classAbstractInputRecordProcessor<KafkaInputMapperKey,KafkaInputMapperValue>
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classAbstractInputRecordProcessor<KafkaInputMapperKey,KafkaInputMapperValue>
-
-