Binary Types
This is a legacy Apache Ignite documentationThe new documentation is hosted here: https://ignite.apache.org/docs/latest/
Thin client fully supports Ignite Binary Object API described in the Binary Marshaller section.
Use CacheClient#withKeepBinary() to switch the cache to binary mode and start working directly with Ignite binary objects avoiding serialisation/deserialisation.
Use IgniteClient#binary() to get an instance of IgniteBinary and build an object from scratch.
IgniteBinary binary = client.binary();
BinaryObject val = binary.builder("Person")
.setField("id", 1, int.class)
.setField("name", "Joe", String.class)
.build();
ClientCache<Integer, BinaryObject> cache = client.cache("persons").withKeepBinary();
cache.put(1, val);
BinaryObject cachedVal = cache.get(1);Updated 10 months ago
