public class WritableSerializer<T extends Writable> extends TypeSerializer<T>
| Constructor and Description |
|---|
WritableSerializer(Class<T> typeClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(DataInputView source,
DataOutputView target) |
T |
copy(T from,
T reuse) |
T |
createInstance() |
T |
deserialize(T reuse,
DataInputView source) |
int |
getLength() |
boolean |
isImmutableType() |
boolean |
isStateful() |
void |
serialize(T record,
DataOutputView target) |
equals, hashCodepublic T createInstance()
createInstance in class TypeSerializer<T extends Writable>public int getLength()
getLength in class TypeSerializer<T extends Writable>public void serialize(T record, DataOutputView target) throws IOException
serialize in class TypeSerializer<T extends Writable>IOExceptionpublic T deserialize(T reuse, DataInputView source) throws IOException
deserialize in class TypeSerializer<T extends Writable>IOExceptionpublic void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<T extends Writable>IOExceptionpublic boolean isImmutableType()
isImmutableType in class TypeSerializer<T extends Writable>public boolean isStateful()
isStateful in class TypeSerializer<T extends Writable>Copyright © 2014 The Apache Software Foundation. All rights reserved.