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 int |
CLS_NAME_POS |
static byte |
COL |
static byte |
CONC_HASH_MAP |
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 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 |
RAW_DATA_OFF_POS |
static byte |
SHORT |
static byte |
SHORT_ARR |
static byte |
STRING |
static byte |
STRING_ARR |
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,
int off) |
PortableReaderExImpl |
reader(PortableInputStream in)
Gets reader for the given input stream.
|
<T> T |
unmarshal(byte[] bytes,
ClassLoader clsLdr) |
<T> T |
unmarshal(PortableInputStream in) |
PortableWriterExImpl |
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 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 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 int TYPE_ID_POS
public static final int HASH_CODE_POS
public static final int TOTAL_LEN_POS
public static final byte RAW_DATA_OFF_POS
public static final int CLS_NAME_POS
public static final byte DFLT_HDR_LEN
public GridPortableMarshaller(PortableContext ctx)
ctx - Context.public byte[] marshal(@Nullable Object obj, int off) throws PortableException
obj - Object to marshal.off - Offset.PortableException - In case of error.@Nullable public <T> T unmarshal(byte[] bytes, @Nullable ClassLoader clsLdr) throws PortableException
bytes - Bytes array.PortableException - In case of error.@Nullable public <T> T unmarshal(PortableInputStream in) throws PortableException
in - Input stream.PortableException - In case of error.@Nullable public <T> T deserialize(byte[] arr, @Nullable ClassLoader ldr) throws PortableException
arr - Byte array.ldr - Class loader.PortableException - In case of error.public PortableWriterExImpl writer(PortableOutputStream out)
out - Output stream.public PortableReaderExImpl reader(PortableInputStream in)
in - Input stream.public PortableContext context()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015