Package io.trino.plugin.kafka
Class KafkaInternalFieldManager
- java.lang.Object
-
- io.trino.plugin.kafka.KafkaInternalFieldManager
-
public class KafkaInternalFieldManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKafkaInternalFieldManager.InternalField
-
Field Summary
Fields Modifier and Type Field Description static StringHEADERS_FIELD_headers - The header fields of the Kafka message.static StringKEY_CORRUPT_FIELD_key_corrupt - True if the row converter could not read the a key.static StringKEY_FIELD_key - Represents the key as a text column.static StringKEY_LENGTH_FIELD_key_length - length in bytes of the key.static StringMESSAGE_CORRUPT_FIELD_message_corrupt - True if the row converter could not read the a message.static StringMESSAGE_FIELD_message - Represents the full topic as a text column.static StringMESSAGE_LENGTH_FIELD_message_length - length in bytes of the message.static StringOFFSET_TIMESTAMP_FIELD_timestamp - message timestampstatic StringPARTITION_ID_FIELD_partition_id - Kafka partition id.static StringPARTITION_OFFSET_FIELD_partition_offset - The current offset of the message in the partition.
-
Constructor Summary
Constructors Constructor Description KafkaInternalFieldManager(TypeManager typeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,KafkaInternalFieldManager.InternalField>getInternalFields()
-
-
-
Field Detail
-
PARTITION_ID_FIELD
public static final String PARTITION_ID_FIELD
_partition_id - Kafka partition id.- See Also:
- Constant Field Values
-
PARTITION_OFFSET_FIELD
public static final String PARTITION_OFFSET_FIELD
_partition_offset - The current offset of the message in the partition.- See Also:
- Constant Field Values
-
MESSAGE_CORRUPT_FIELD
public static final String MESSAGE_CORRUPT_FIELD
_message_corrupt - True if the row converter could not read the a message. May be null if the row converter does not set a value (e.g. the dummy row converter does not).- See Also:
- Constant Field Values
-
MESSAGE_FIELD
public static final String MESSAGE_FIELD
_message - Represents the full topic as a text column. Format is UTF-8 which may be wrong for some topics. TODO: make charset configurable.- See Also:
- Constant Field Values
-
MESSAGE_LENGTH_FIELD
public static final String MESSAGE_LENGTH_FIELD
_message_length - length in bytes of the message.- See Also:
- Constant Field Values
-
HEADERS_FIELD
public static final String HEADERS_FIELD
_headers - The header fields of the Kafka message. Key is a UTF-8 String and values an array of byte[].- See Also:
- Constant Field Values
-
KEY_CORRUPT_FIELD
public static final String KEY_CORRUPT_FIELD
_key_corrupt - True if the row converter could not read the a key. May be null if the row converter does not set a value (e.g. the dummy row converter does not).- See Also:
- Constant Field Values
-
KEY_FIELD
public static final String KEY_FIELD
_key - Represents the key as a text column. Format is UTF-8 which may be wrong for topics. TODO: make charset configurable.- See Also:
- Constant Field Values
-
KEY_LENGTH_FIELD
public static final String KEY_LENGTH_FIELD
_key_length - length in bytes of the key.- See Also:
- Constant Field Values
-
OFFSET_TIMESTAMP_FIELD
public static final String OFFSET_TIMESTAMP_FIELD
_timestamp - message timestamp- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KafkaInternalFieldManager
@Inject public KafkaInternalFieldManager(TypeManager typeManager)
-
-
Method Detail
-
getInternalFields
public Map<String,KafkaInternalFieldManager.InternalField> getInternalFields()
- Returns:
- Map of
KafkaInternalFieldManager.InternalFieldfor each internal field.
-
-