T - The type serialized.public class ValueSerializer<T extends Value> extends TypeSerializer<T>
Value types. Uses the value's serialization methods, and uses
Kryo for deep object copies.| Constructor and Description |
|---|
ValueSerializer(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(DataInputView source,
DataOutputView target) |
T |
copy(T from) |
T |
copy(T from,
T reuse) |
T |
createInstance() |
T |
deserialize(DataInputView source) |
T |
deserialize(T reuse,
DataInputView source) |
ValueSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T value,
DataOutputView target) |
public boolean isImmutableType()
isImmutableType in class TypeSerializer<T extends Value>public ValueSerializer<T> duplicate()
duplicate in class TypeSerializer<T extends Value>public T createInstance()
createInstance in class TypeSerializer<T extends Value>public int getLength()
getLength in class TypeSerializer<T extends Value>public void serialize(T value, DataOutputView target) throws IOException
serialize in class TypeSerializer<T extends Value>IOExceptionpublic T deserialize(DataInputView source) throws IOException
deserialize in class TypeSerializer<T extends Value>IOExceptionpublic T deserialize(T reuse, DataInputView source) throws IOException
deserialize in class TypeSerializer<T extends Value>IOExceptionpublic void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<T extends Value>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.