T
- The type of value in the StreamRecord@Internal public final class StreamElementSerializer<T> extends org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
StreamRecord
, Watermark
, LatencyMarker
, and
StreamStatus
.
This does not behave like a normal TypeSerializer
, instead, this is only used at the
stream task/operator level for transmitting StreamRecords and Watermarks.
限定符和类型 | 类和说明 |
---|---|
static class |
StreamElementSerializer.StreamElementSerializerConfigSnapshot<T>
|
static class |
StreamElementSerializer.StreamElementSerializerSnapshot<T>
Configuration snapshot specific to the
StreamElementSerializer . |
构造器和说明 |
---|
StreamElementSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
限定符和类型 | 方法和说明 |
---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
StreamElement |
copy(StreamElement from) |
StreamElement |
copy(StreamElement from,
StreamElement reuse) |
StreamRecord<T> |
createInstance() |
StreamElement |
deserialize(org.apache.flink.core.memory.DataInputView source) |
StreamElement |
deserialize(StreamElement reuse,
org.apache.flink.core.memory.DataInputView source) |
StreamElementSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
getContainedTypeSerializer() |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(StreamElement value,
org.apache.flink.core.memory.DataOutputView target) |
StreamElementSerializer.StreamElementSerializerSnapshot<T> |
snapshotConfiguration() |
public StreamElementSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
public org.apache.flink.api.common.typeutils.TypeSerializer<T> getContainedTypeSerializer()
public boolean isImmutableType()
isImmutableType
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public StreamElementSerializer<T> duplicate()
duplicate
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public StreamRecord<T> createInstance()
createInstance
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public int getLength()
getLength
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public StreamElement copy(StreamElement from)
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public StreamElement copy(StreamElement from, StreamElement reuse)
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOException
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
IOException
public void serialize(StreamElement value, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
IOException
public StreamElement deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
IOException
public StreamElement deserialize(StreamElement reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
IOException
public boolean equals(Object obj)
equals
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public int hashCode()
hashCode
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
public StreamElementSerializer.StreamElementSerializerSnapshot<T> snapshotConfiguration()
snapshotConfiguration
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<StreamElement>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.