public interface InternalSerializationService extends SerializationService, Disposable
Modifier and Type | Field and Description |
---|---|
static byte |
VERSION_1 |
Modifier and Type | Method and Description |
---|---|
<B extends Data> |
convertData(Data data,
DataType type) |
BufferObjectDataInput |
createObjectDataInput(byte[] data) |
BufferObjectDataInput |
createObjectDataInput(Data data) |
BufferObjectDataOutput |
createObjectDataOutput() |
BufferObjectDataOutput |
createObjectDataOutput(int size) |
PortableReader |
createPortableReader(Data data) |
void |
disposeData(Data data) |
ByteOrder |
getByteOrder() |
ClassLoader |
getClassLoader() |
PortableContext |
getPortableContext() |
byte |
getVersion() |
<T> T |
readObject(ObjectDataInput in) |
<T> T |
readObject(ObjectDataInput in,
Class aClass) |
byte[] |
toBytes(Object obj)
Writes the obj to a byte array.
|
byte[] |
toBytes(Object obj,
int leftPadding,
boolean insertPartitionHash)
Writes an object to a byte-array.
|
<B extends Data> |
toData(Object obj,
DataType type) |
<B extends Data> |
toData(Object obj,
DataType type,
PartitioningStrategy strategy) |
void |
writeObject(ObjectDataOutput out,
Object obj) |
getManagedContext, toData, toData, toObject, toObject
dispose
static final byte VERSION_1
byte[] toBytes(Object obj)
SerializationService.toData(Object)
and
then calling Data.toByteArray()
. But it doesn't force a HeapData object being created.byte[] toBytes(Object obj, int leftPadding, boolean insertPartitionHash)
<B extends Data> B toData(Object obj, DataType type, PartitioningStrategy strategy)
void writeObject(ObjectDataOutput out, Object obj)
<T> T readObject(ObjectDataInput in)
<T> T readObject(ObjectDataInput in, Class aClass)
void disposeData(Data data)
BufferObjectDataInput createObjectDataInput(byte[] data)
BufferObjectDataInput createObjectDataInput(Data data)
BufferObjectDataOutput createObjectDataOutput(int size)
BufferObjectDataOutput createObjectDataOutput()
PortableReader createPortableReader(Data data) throws IOException
IOException
PortableContext getPortableContext()
ClassLoader getClassLoader()
ByteOrder getByteOrder()
byte getVersion()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.