public class WritableSerializer<T extends org.apache.hadoop.io.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 |
copy(T from,
T reuse) |
T |
createInstance() |
T |
deserialize(DataInputView source) |
T |
deserialize(T reuse,
DataInputView source) |
WritableSerializer |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
DataOutputView target) |
public T createInstance()
createInstance in class TypeSerializer<T extends org.apache.hadoop.io.Writable>public T copy(T from)
copy in class TypeSerializer<T extends org.apache.hadoop.io.Writable>public T copy(T from, T reuse)
copy in class TypeSerializer<T extends org.apache.hadoop.io.Writable>public int getLength()
getLength in class TypeSerializer<T extends org.apache.hadoop.io.Writable>public void serialize(T record, DataOutputView target) throws IOException
serialize in class TypeSerializer<T extends org.apache.hadoop.io.Writable>IOExceptionpublic T deserialize(DataInputView source) throws IOException
deserialize in class TypeSerializer<T extends org.apache.hadoop.io.Writable>IOExceptionpublic T deserialize(T reuse, DataInputView source) throws IOException
deserialize in class TypeSerializer<T extends org.apache.hadoop.io.Writable>IOExceptionpublic void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<T extends org.apache.hadoop.io.Writable>IOExceptionpublic boolean isImmutableType()
isImmutableType in class TypeSerializer<T extends org.apache.hadoop.io.Writable>public WritableSerializer duplicate()
duplicate in class TypeSerializer<T extends org.apache.hadoop.io.Writable>Copyright © 2015 The Apache Software Foundation. All rights reserved.