@InterfaceAudience.Public @InterfaceStability.Stable public interface Record<T>
| Modifier and Type | Method and Description |
|---|---|
default void |
ack()
Acknowledge that this record is fully processed.
|
default void |
fail()
To indicate that this record has failed to be processed.
|
default Optional<String> |
getDestinationTopic()
To support message routing on a per message basis.
|
default Optional<Long> |
getEventTime()
Retrieves the event time of the record from the source.
|
default Optional<String> |
getKey()
Return a key if the key has one associated.
|
default Optional<Message<T>> |
getMessage() |
default Optional<String> |
getPartitionId()
Retrieves the partition information if any of the record.
|
default Optional<Integer> |
getPartitionIndex()
Retrieves the partition index if any of the record.
|
default Map<String,String> |
getProperties()
Retrieves user-defined properties attached to record.
|
default Optional<Long> |
getRecordSequence()
Retrieves the sequence of the record from a source partition.
|
default Schema<T> |
getSchema() |
default Optional<String> |
getTopicName()
If the record originated from a topic, report the topic name.
|
T |
getValue()
Retrieves the actual data of the record.
|
default Optional<String> getTopicName()
T getValue()
default Optional<Long> getEventTime()
default Optional<String> getPartitionId()
default Optional<Integer> getPartitionIndex()
default Optional<Long> getRecordSequence()
default Map<String,String> getProperties()
default void ack()
default void fail()
default Optional<String> getDestinationTopic()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.