public class GridPortableMarshaller extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
ARR_LIST |
static byte |
BOOLEAN |
static byte |
BOOLEAN_ARR |
static byte |
BYTE |
static byte |
BYTE_ARR |
static byte |
CHAR |
static byte |
CHAR_ARR |
static byte |
CLASS |
static byte |
COL |
static byte |
CONC_HASH_MAP |
static byte |
CONC_LINKED_QUEUE |
static byte |
CONC_SKIP_LIST_SET |
static byte |
DATE |
static byte |
DATE_ARR |
static byte |
DECIMAL |
static byte |
DECIMAL_ARR |
static byte |
DFLT_HDR_LEN |
static byte |
DOUBLE |
static byte |
DOUBLE_ARR |
static byte |
ENUM |
static byte |
ENUM_ARR |
static int |
FLAGS_POS
Flags position in header.
|
static byte |
FLOAT |
static byte |
FLOAT_ARR |
static byte |
HANDLE |
static int |
HASH_CODE_POS |
static byte |
HASH_MAP |
static byte |
HASH_SET |
static byte |
INT |
static byte |
INT_ARR |
static ThreadLocal<Boolean> |
KEEP_PORTABLES |
static byte |
LINKED_HASH_MAP |
static byte |
LINKED_HASH_SET |
static byte |
LINKED_LIST |
static byte |
LONG |
static byte |
LONG_ARR |
static byte |
MAP |
static byte |
MAP_ENTRY |
static byte |
NULL |
static byte |
OBJ |
static byte |
OBJ_ARR |
static int |
OBJECT_TYPE_ID |
static byte |
PORTABLE_OBJ |
static byte |
PROPERTIES_MAP |
static byte |
PROTO_VER
Protocol version.
|
static int |
PROTO_VER_POS
Protocol version position.
|
static int |
SCHEMA_ID_POS |
static int |
SCHEMA_OR_RAW_OFF_POS
Schema or raw offset position.
|
static byte |
SHORT |
static byte |
SHORT_ARR |
static byte |
STRING |
static byte |
STRING_ARR |
static byte |
TIMESTAMP
Timestamp.
|
static byte |
TIMESTAMP_ARR
Timestamp array.
|
static int |
TOTAL_LEN_POS |
static byte |
TREE_MAP |
static byte |
TREE_SET |
static int |
TYPE_ID_POS |
static int |
UNREGISTERED_TYPE_ID |
static byte |
USER_COL |
static byte |
USER_SET |
static byte |
UUID |
static byte |
UUID_ARR |
| Constructor and Description |
|---|
GridPortableMarshaller(PortableContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
PortableContext |
context() |
<T> T |
deserialize(byte[] arr,
ClassLoader ldr) |
byte[] |
marshal(Object obj) |
<T> T |
unmarshal(byte[] bytes,
ClassLoader clsLdr) |
<T> T |
unmarshal(PortableInputStream in) |
BinaryWriterExImpl |
writer(PortableOutputStream out)
Gets writer for the given output stream.
|
public static final ThreadLocal<Boolean> KEEP_PORTABLES
public static final byte BYTE
public static final byte SHORT
public static final byte INT
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte CHAR
public static final byte BOOLEAN
public static final byte DECIMAL
public static final byte STRING
public static final byte UUID
public static final byte DATE
public static final byte BYTE_ARR
public static final byte SHORT_ARR
public static final byte INT_ARR
public static final byte LONG_ARR
public static final byte FLOAT_ARR
public static final byte DOUBLE_ARR
public static final byte CHAR_ARR
public static final byte BOOLEAN_ARR
public static final byte DECIMAL_ARR
public static final byte STRING_ARR
public static final byte UUID_ARR
public static final byte DATE_ARR
public static final byte OBJ_ARR
public static final byte COL
public static final byte MAP
public static final byte MAP_ENTRY
public static final byte PORTABLE_OBJ
public static final byte ENUM
public static final byte ENUM_ARR
public static final byte CLASS
public static final byte TIMESTAMP
public static final byte TIMESTAMP_ARR
public static final byte NULL
public static final byte HANDLE
public static final byte OBJ
public static final byte USER_SET
public static final byte USER_COL
public static final byte ARR_LIST
public static final byte LINKED_LIST
public static final byte HASH_SET
public static final byte LINKED_HASH_SET
public static final byte TREE_SET
public static final byte CONC_SKIP_LIST_SET
public static final byte CONC_LINKED_QUEUE
public static final byte HASH_MAP
public static final byte LINKED_HASH_MAP
public static final byte TREE_MAP
public static final byte CONC_HASH_MAP
public static final byte PROPERTIES_MAP
public static final int OBJECT_TYPE_ID
public static final int UNREGISTERED_TYPE_ID
public static final byte PROTO_VER
public static final int PROTO_VER_POS
public static final int FLAGS_POS
public static final int TYPE_ID_POS
public static final int HASH_CODE_POS
public static final int TOTAL_LEN_POS
public static final int SCHEMA_ID_POS
public static final int SCHEMA_OR_RAW_OFF_POS
public static final byte DFLT_HDR_LEN
public GridPortableMarshaller(PortableContext ctx)
ctx - Context.public byte[] marshal(@Nullable Object obj) throws BinaryObjectException
obj - Object to marshal.BinaryObjectException - In case of error.@Nullable public <T> T unmarshal(byte[] bytes, @Nullable ClassLoader clsLdr) throws BinaryObjectException
bytes - Bytes array.BinaryObjectException - In case of error.@Nullable public <T> T unmarshal(PortableInputStream in) throws BinaryObjectException
in - Input stream.BinaryObjectException - In case of error.@Nullable public <T> T deserialize(byte[] arr, @Nullable ClassLoader ldr) throws BinaryObjectException
arr - Byte array.ldr - Class loader.BinaryObjectException - In case of error.public BinaryWriterExImpl writer(PortableOutputStream out)
out - Output stream.public PortableContext context()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015