public class GridClientZipOptimizedMarshaller extends GridClientOptimizedMarshaller
OptimizedMarshaller to GridClientMarshaller interface.| Modifier and Type | Field and Description |
|---|---|
static byte |
ID
ID.
|
opMarsh| Constructor and Description |
|---|
GridClientZipOptimizedMarshaller(GridClientMarshaller dfltMarsh,
@Nullable List<PluginProvider> plugins)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GridClientMarshaller |
defaultMarshaller()
Default marshaller that will be used in case of backward compatibility.
|
ByteBuffer |
marshal(Object obj,
int off)
Marshals object to byte array.
|
<T> T |
unmarshal(byte[] bytes)
Unmarshals object from byte array.
|
static byte[] |
zipBytes(byte[] input)
Zips bytes.
|
public static final byte ID
public GridClientZipOptimizedMarshaller(GridClientMarshaller dfltMarsh, @Nullable @Nullable List<PluginProvider> plugins)
dfltMarsh - Marshaller to fallback to.plugins - Plugins.public GridClientMarshaller defaultMarshaller()
public static byte[] zipBytes(byte[] input)
throws IOException
input - Input bytes.IOException - If failed.public ByteBuffer marshal(Object obj, int off) throws IOException
marshal in interface GridClientMarshallermarshal in class GridClientOptimizedMarshallerobj - Object to marshal.off - Start offset.IOException - If marshalling failed.public <T> T unmarshal(byte[] bytes)
throws IOException
unmarshal in interface GridClientMarshallerunmarshal in class GridClientOptimizedMarshallerbytes - Byte array.IOException - If unmarshalling failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020