Class TwoPhaseCommitSinkFunction.StateSerializer<TXN,CONTEXT>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
- org.apache.flink.streaming.api.functions.sink.legacy.TwoPhaseCommitSinkFunction.StateSerializer<TXN,CONTEXT>
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TwoPhaseCommitSinkFunction<IN,TXN,CONTEXT>
@VisibleForTesting @Internal public static final class TwoPhaseCommitSinkFunction.StateSerializer<TXN,CONTEXT> extends org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
CustomTypeSerializerfor the sink state.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<TXN> transactionSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<CONTEXT> contextSerializer)StateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<TXN> transactionSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<CONTEXT> contextSerializer, boolean supportNullPendingTransaction)
-
Method Summary
-
-
-
Method Detail
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
duplicate
public org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>> duplicate()
- Specified by:
duplicatein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
createInstance
public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> createInstance()
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
copy
public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> copy(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
copy
public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> copy(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> from, TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> reuse)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
serialize
public void serialize(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> record, org.apache.flink.core.memory.DataOutputView target) throws IOException
- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>- Throws:
IOException
-
deserialize
public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>- Throws:
IOException
-
deserialize
public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> deserialize(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>- Throws:
IOException
-
copy
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOException- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>- Throws:
IOException
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
snapshotConfiguration
public TwoPhaseCommitSinkFunction.StateSerializerSnapshot<TXN,CONTEXT> snapshotConfiguration()
- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
-
-