类 FunctionRecord<T>
java.lang.Object
org.apache.pulsar.functions.api.utils.FunctionRecord<T>
- 所有已实现的接口:
Record<T>
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> FunctionRecord.FunctionRecordBuilder<T>Creates a builder for a Record from a Function Context.To support message routing on a per message basis.Retrieves the event time of the record from the source.getKey()Return a key if the key has one associated.Retrieves the partition information if any of the record.Retrieves the partition index if any of the record.Retrieves user-defined properties attached to record.Retrieves the sequence of the record from a source partition.If the record originated from a topic, report the topic name.getValue()Retrieves the actual data of the record.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.functions.api.Record
ack, fail, getMessage
-
构造器详细资料
-
FunctionRecord
public FunctionRecord()
-
-
方法详细资料
-
from
Creates a builder for a Record from a Function Context. The builder is initialized with the output topic from the Context and with the topicName, key, eventTime, properties, partitionId, partitionIndex and recordSequence from the Context input Record. It doesn't initialize a Message at the moment.- 类型参数:
T- type of Record to build- 参数:
context- a Function Context- 返回:
- a Record builder initialised with values from the Function Context
-
getValue
从接口复制的说明:RecordRetrieves the actual data of the record. -
getTopicName
从接口复制的说明:RecordIf the record originated from a topic, report the topic name.- 指定者:
getTopicName在接口中Record<T>
-
getDestinationTopic
从接口复制的说明:RecordTo support message routing on a per message basis.- 指定者:
getDestinationTopic在接口中Record<T>- 返回:
- The topic this message should be written to
-
getProperties
从接口复制的说明:RecordRetrieves user-defined properties attached to record.- 指定者:
getProperties在接口中Record<T>- 返回:
- Map of user-properties
-
getKey
从接口复制的说明:RecordReturn a key if the key has one associated. -
getSchema
-
getEventTime
从接口复制的说明:RecordRetrieves the event time of the record from the source.- 指定者:
getEventTime在接口中Record<T>- 返回:
- millis since epoch
-
getPartitionId
从接口复制的说明:RecordRetrieves the partition information if any of the record.- 指定者:
getPartitionId在接口中Record<T>- 返回:
- The partition id where the
-
getPartitionIndex
从接口复制的说明:RecordRetrieves the partition index if any of the record.- 指定者:
getPartitionIndex在接口中Record<T>- 返回:
- The partition index
-
getRecordSequence
从接口复制的说明:RecordRetrieves the sequence of the record from a source partition.- 指定者:
getRecordSequence在接口中Record<T>- 返回:
- Sequence Id associated with the record
-