Class AbstractSinkRecord<T>
java.lang.Object
org.apache.pulsar.functions.instance.AbstractSinkRecord<T>
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Record<T>
- Direct Known Subclasses:
OutputRecordSinkRecord,SinkRecord
public abstract class AbstractSinkRecord<T>
extends Object
implements org.apache.pulsar.functions.api.Record<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSinkRecord(org.apache.pulsar.functions.api.Record<?> sourceRecord) -
Method Summary
Modifier and TypeMethodDescriptionvoidack()voidSome sink sometimes wants to control the ack type.voidfail()protected static <T> org.apache.pulsar.client.api.Schema<T>getRecordSchema(org.apache.pulsar.functions.api.Record<T> record) org.apache.pulsar.functions.api.Record<?>voidSome sink sometimes wants to control the ack type.abstract booleanabstract booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.Record
getDestinationTopic, getEventTime, getKey, getMessage, getPartitionId, getPartitionIndex, getProperties, getRecordSequence, getSchema, getValue
-
Constructor Details
-
AbstractSinkRecord
protected AbstractSinkRecord(org.apache.pulsar.functions.api.Record<?> sourceRecord)
-
-
Method Details
-
shouldAlwaysSetMessageProperties
public abstract boolean shouldAlwaysSetMessageProperties() -
shouldSetSchema
public abstract boolean shouldSetSchema() -
getSourceRecord
public org.apache.pulsar.functions.api.Record<?> getSourceRecord() -
getTopicName
- Specified by:
getTopicNamein interfaceorg.apache.pulsar.functions.api.Record<T>
-
ack
public void ack()- Specified by:
ackin interfaceorg.apache.pulsar.functions.api.Record<T>
-
cumulativeAck
public void cumulativeAck()Some sink sometimes wants to control the ack type. -
individualAck
public void individualAck()Some sink sometimes wants to control the ack type. -
fail
public void fail()- Specified by:
failin interfaceorg.apache.pulsar.functions.api.Record<T>
-
getRecordSchema
protected static <T> org.apache.pulsar.client.api.Schema<T> getRecordSchema(org.apache.pulsar.functions.api.Record<T> record)
-