public class SerializationServiceV1 extends AbstractSerializationService
Modifier and Type | Class and Description |
---|---|
static class |
SerializationServiceV1.AbstractBuilder<T extends SerializationServiceV1.AbstractBuilder<T>> |
static class |
SerializationServiceV1.Builder |
bufferPoolThreadLocal, dataSerializerAdapter, globalPartitioningStrategy, inputOutputFactory, javaExternalizableAdapter, javaSerializerAdapter, managedContext, nullSerializerAdapter, portableSerializerAdapter
VERSION_1
Modifier and Type | Method and Description |
---|---|
static SerializationServiceV1.Builder |
builder() |
<B extends Data> |
convertData(Data data,
DataType type) |
PortableReader |
createPortableReader(Data data) |
PortableContext |
getPortableContext() |
ObjectDataInput |
initDataSerializableInputAndSkipTheHeader(Data data)
Init the ObjectDataInput for the given Data skipping the serialization header-bytes and navigating to the position
from where the readData() starts reading the object fields.
|
protected void |
registerClassDefinition(ClassDefinition cd,
Map<Integer,ClassDefinition> classDefMap,
boolean checkClassDefErrors) |
void |
registerClassDefinitions(Collection<ClassDefinition> classDefinitions,
boolean checkClassDefErrors) |
<B extends Data> |
toData(Object obj,
DataType type) |
<B extends Data> |
toData(Object obj,
DataType type,
PartitioningStrategy strategy) |
calculatePartitionHash, createObjectDataInput, createObjectDataInput, createObjectDataOutput, createObjectDataOutput, dispose, disposeData, getByteOrder, getClassLoader, getManagedContext, getVersion, readObject, readObject, register, registerConstant, registerConstant, registerGlobal, registerGlobal, safeRegister, safeRegister, serializerFor, serializerFor, toBytes, toBytes, toData, toData, toObject, toObject, writeObject
public <B extends Data> B toData(Object obj, DataType type, PartitioningStrategy strategy)
public PortableReader createPortableReader(Data data) throws IOException
IOException
public PortableContext getPortableContext()
public void registerClassDefinitions(Collection<ClassDefinition> classDefinitions, boolean checkClassDefErrors)
protected void registerClassDefinition(ClassDefinition cd, Map<Integer,ClassDefinition> classDefMap, boolean checkClassDefErrors)
public ObjectDataInput initDataSerializableInputAndSkipTheHeader(Data data) throws IOException
data
- data to initialize the ObjectDataInput with.IOException
public static SerializationServiceV1.Builder builder()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.