Class StreamElementSerializer<T>
java.lang.Object
org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
org.apache.flink.streaming.runtime.streamrecord.StreamElementSerializer<T>
- Type Parameters:
T- The type of value in the StreamRecord
- All Implemented Interfaces:
Serializable
@Internal
public final class StreamElementSerializer<T>
extends org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
Serializer for
StreamRecord, Watermark, LatencyMarker, and WatermarkStatus.
This does not behave like a normal TypeSerializer, instead, this is only used at the
stream task/operator level for transmitting StreamRecords and Watermarks.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration snapshot specific to theStreamElementSerializer. -
Constructor Summary
ConstructorsConstructorDescriptionStreamElementSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) copy(StreamElement from) copy(StreamElement from, StreamElement reuse) deserialize(org.apache.flink.core.memory.DataInputView source) deserialize(StreamElement reuse, org.apache.flink.core.memory.DataInputView source) booleanorg.apache.flink.api.common.typeutils.TypeSerializer<T>intinthashCode()booleanvoidserialize(StreamElement value, org.apache.flink.core.memory.DataOutputView target)
-
Constructor Details
-
StreamElementSerializer
-
-
Method Details
-
getContainedTypeSerializer
-
isImmutableType
public boolean isImmutableType()- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
duplicate
- Specified by:
duplicatein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
createInstance
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
getLength
public int getLength()- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
copy
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
copy
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
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<StreamElement>- Throws:
IOException
-
serialize
public void serialize(StreamElement value, org.apache.flink.core.memory.DataOutputView target) throws IOException - Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>- Throws:
IOException
-
deserialize
public StreamElement deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException - Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>- Throws:
IOException
-
deserialize
public StreamElement deserialize(StreamElement reuse, org.apache.flink.core.memory.DataInputView source) throws IOException - Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>- Throws:
IOException
-
equals
- Specified by:
equalsin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
snapshotConfiguration
- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-