T - The type of value in the StreamRecordpublic final class MultiplexingStreamRecordSerializer<T> extends TypeSerializer<StreamElement>
StreamRecord and Watermark. This does not behave like a normal
TypeSerializer, instead, this is only used at the
StreamTask level for transmitting
StreamRecords and Watermarks. This serializer
can handle both of them, therefore it returns Object the result has
to be cast to the correct type.| Constructor and Description |
|---|
MultiplexingStreamRecordSerializer(TypeSerializer<T> serializer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object obj) |
void |
copy(DataInputView source,
DataOutputView target) |
StreamElement |
copy(StreamElement from) |
StreamElement |
copy(StreamElement from,
StreamElement reuse) |
StreamRecord<T> |
createInstance() |
StreamElement |
deserialize(DataInputView source) |
StreamElement |
deserialize(StreamElement reuse,
DataInputView source) |
TypeSerializer<StreamElement> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(StreamElement value,
DataOutputView target) |
public MultiplexingStreamRecordSerializer(TypeSerializer<T> serializer)
public boolean isImmutableType()
isImmutableType in class TypeSerializer<StreamElement>public TypeSerializer<StreamElement> duplicate()
duplicate in class TypeSerializer<StreamElement>public StreamRecord<T> createInstance()
createInstance in class TypeSerializer<StreamElement>public StreamElement copy(StreamElement from)
copy in class TypeSerializer<StreamElement>public StreamElement copy(StreamElement from, StreamElement reuse)
copy in class TypeSerializer<StreamElement>public int getLength()
getLength in class TypeSerializer<StreamElement>public void serialize(StreamElement value, DataOutputView target) throws IOException
serialize in class TypeSerializer<StreamElement>IOExceptionpublic StreamElement deserialize(DataInputView source) throws IOException
deserialize in class TypeSerializer<StreamElement>IOExceptionpublic StreamElement deserialize(StreamElement reuse, DataInputView source) throws IOException
deserialize in class TypeSerializer<StreamElement>IOExceptionpublic void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<StreamElement>IOExceptionpublic boolean equals(Object obj)
equals in class TypeSerializer<StreamElement>public boolean canEqual(Object obj)
canEqual in class TypeSerializer<StreamElement>public int hashCode()
hashCode in class TypeSerializer<StreamElement>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.