public class TimestampBasedAvroKeyGenerator extends SimpleAvroKeyGenerator
| Modifier and Type | Class and Description |
|---|---|
static class |
TimestampBasedAvroKeyGenerator.TimestampType |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
encodePartitionPath |
consistentLogicalTimestampEnabled, hiveStylePartitioning, partitionPathFields, recordKeyFieldsconfig| Constructor and Description |
|---|
TimestampBasedAvroKeyGenerator(TypedProperties config) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultPartitionVal()
Set default value to partitionVal if the input value of partitionPathField is null.
|
String |
getPartitionPath(org.apache.avro.generic.GenericRecord record) |
String |
getPartitionPath(Object partitionVal)
Parse and fetch partition path based on data type.
|
getRecordKeygetKey, getPartitionPathFields, getRecordKeyFieldNames, isConsistentLogicalTimestampEnabledpublic TimestampBasedAvroKeyGenerator(TypedProperties config) throws IOException
IOExceptionpublic String getPartitionPath(org.apache.avro.generic.GenericRecord record)
getPartitionPath in class SimpleAvroKeyGeneratorpublic Object getDefaultPartitionVal()
Copyright © 2022 The Apache Software Foundation. All rights reserved.