Class VeniceKafkaInputTTLFilter
java.lang.Object
com.linkedin.venice.hadoop.AbstractVeniceFilter<INPUT_VALUE>
com.linkedin.venice.hadoop.input.kafka.ttl.VeniceRmdTTLFilter<KafkaInputMapperValue>
com.linkedin.venice.hadoop.input.kafka.ttl.VeniceKafkaInputTTLFilter
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class is responsible to filter records based on the RMD information and the ttl config by taking KIF input
KafkaInputMapperValue
.-
Field Summary
Fields inherited from class com.linkedin.venice.hadoop.input.kafka.ttl.VeniceRmdTTLFilter
rmdSchemaMap, valueSchemaMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ByteBuffer
getRmdPayload
(KafkaInputMapperValue kafkaInputMapperValue) protected int
getRmdProtocolId
(KafkaInputMapperValue kafkaInputMapperValue) protected int
getSchemaId
(KafkaInputMapperValue kafkaInputMapperValue) protected ByteBuffer
getValuePayload
(KafkaInputMapperValue kafkaInputMapperValue) protected boolean
When schemeId is negative, it indicates a chunked record.protected void
updateRmdPayload
(KafkaInputMapperValue kafkaInputMapperValue, ByteBuffer payload) protected void
updateValuePayload
(KafkaInputMapperValue kafkaInputMapperValue, byte[] payload) Methods inherited from class com.linkedin.venice.hadoop.input.kafka.ttl.VeniceRmdTTLFilter
checkAndMaybeFilterValue, close
-
Constructor Details
-
VeniceKafkaInputTTLFilter
- Throws:
IOException
-
-
Method Details
-
getSchemaId
- Specified by:
getSchemaId
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
getRmdProtocolId
- Specified by:
getRmdProtocolId
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
getRmdPayload
- Specified by:
getRmdPayload
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
getValuePayload
- Specified by:
getValuePayload
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
updateRmdPayload
- Specified by:
updateRmdPayload
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
updateValuePayload
- Specified by:
updateValuePayload
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
-
skipRmdRecord
When schemeId is negative, it indicates a chunked record. Skip it and pass it to Reducer as chunk will only be re-assembled at Reducer.- Overrides:
skipRmdRecord
in classVeniceRmdTTLFilter<KafkaInputMapperValue>
- Parameters:
input
-- Returns:
-