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 forStreamRecord,Watermark,LatencyMarker, andWatermarkStatus.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamElementSerializer.StreamElementSerializerSnapshot<T>Configuration snapshot specific to theStreamElementSerializer.
-
Constructor Summary
Constructors Constructor Description StreamElementSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)StreamElementcopy(StreamElement from)StreamElementcopy(StreamElement from, StreamElement reuse)StreamRecord<T>createInstance()StreamElementdeserialize(org.apache.flink.core.memory.DataInputView source)StreamElementdeserialize(StreamElement reuse, org.apache.flink.core.memory.DataInputView source)StreamElementSerializer<T>duplicate()booleanequals(Object obj)org.apache.flink.api.common.typeutils.TypeSerializer<T>getContainedTypeSerializer()intgetLength()inthashCode()booleanisImmutableType()voidserialize(StreamElement value, org.apache.flink.core.memory.DataOutputView target)StreamElementSerializer.StreamElementSerializerSnapshot<T>snapshotConfiguration()
-
-
-
Constructor Detail
-
StreamElementSerializer
public StreamElementSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
-
-
Method Detail
-
getContainedTypeSerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<T> getContainedTypeSerializer()
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
duplicate
public StreamElementSerializer<T> duplicate()
- Specified by:
duplicatein classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
createInstance
public StreamRecord<T> 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
public StreamElement copy(StreamElement from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
copy
public StreamElement copy(StreamElement from, StreamElement reuse)
- 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
public boolean equals(Object obj)
- 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
public StreamElementSerializer.StreamElementSerializerSnapshot<T> snapshotConfiguration()
- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
-
-