public abstract class TupleSerializerBase<T> extends TypeSerializer<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
arity |
protected TypeSerializer<Object>[] |
fieldSerializers |
protected Class<T> |
tupleClass |
| Constructor and Description |
|---|
TupleSerializerBase(Class<T> tupleClass,
TypeSerializer<?>[] fieldSerializers) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(DataInputView source,
DataOutputView target) |
abstract T |
createInstance(Object[] fields) |
boolean |
equals(Object obj) |
int |
getArity() |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
copy, copy, createInstance, deserialize, deserialize, duplicate, serializeprotected TypeSerializer<Object>[] fieldSerializers
protected final int arity
public TupleSerializerBase(Class<T> tupleClass, TypeSerializer<?>[] fieldSerializers)
public boolean isImmutableType()
isImmutableType in class TypeSerializer<T>public int getLength()
getLength in class TypeSerializer<T>public int getArity()
public void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<T>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.