@VisibleForTesting @Internal public static final class TwoPhaseCommitSinkFunction.StateSerializer<TXN,CONTEXT> extends org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>
TypeSerializer for the sink state.| Constructor and Description |
|---|
StateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<TXN> transactionSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<CONTEXT> contextSerializer) |
public boolean isImmutableType()
isImmutableType in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>> duplicate()
duplicate in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> createInstance()
createInstance in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> copy(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> from)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> copy(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> from, TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> reuse)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public int getLength()
getLength in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public void serialize(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> record, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>IOExceptionpublic TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>IOExceptionpublic TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> deserialize(TwoPhaseCommitSinkFunction.State<TXN,CONTEXT> reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>IOExceptionpublic void copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>IOExceptionpublic boolean equals(Object o)
equals in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public int hashCode()
hashCode in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>public TwoPhaseCommitSinkFunction.StateSerializerSnapshot<TXN,CONTEXT> snapshotConfiguration()
snapshotConfiguration in class org.apache.flink.api.common.typeutils.TypeSerializer<TwoPhaseCommitSinkFunction.State<TXN,CONTEXT>>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.