T - The type to be serialized.public class KryoSerializer<T> extends TypeSerializer<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
KryoSerializer.AvroSchemaSerializer
Slow serialization approach for Avro schemas.
|
static class |
KryoSerializer.SpecificInstanceCollectionSerializer<T extends Collection>
Special serializer for Java collections enforcing certain instance types.
|
| Constructor and Description |
|---|
KryoSerializer(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) |
KryoSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
DataOutputView target) |
public boolean isImmutableType()
isImmutableType in class TypeSerializer<T>public KryoSerializer<T> duplicate()
duplicate in class TypeSerializer<T>public T createInstance()
createInstance in class TypeSerializer<T>public T copy(T from)
copy in class TypeSerializer<T>public int getLength()
getLength in class TypeSerializer<T>public void serialize(T record, DataOutputView target) throws IOException
serialize in class TypeSerializer<T>IOExceptionpublic T deserialize(DataInputView source) throws IOException
deserialize in class TypeSerializer<T>IOExceptionpublic T deserialize(T reuse, DataInputView source) throws IOException
deserialize in class TypeSerializer<T>IOExceptionpublic void copy(DataInputView source, DataOutputView target) throws IOException
copy in class TypeSerializer<T>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.