use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class WebSessionEntity method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(final BinaryWriter writer) throws BinaryObjectException {
final BinaryRawWriter rawWriter = writer.rawWriter();
rawWriter.writeString(id);
rawWriter.writeLong(createTime);
rawWriter.writeLong(accessTime);
rawWriter.writeInt(maxInactiveInterval);
rawWriter.writeMap(attrs);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class WebSessionAttributeProcessor method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(final BinaryWriter writer) throws BinaryObjectException {
final BinaryRawWriter rawWriter = writer.rawWriter();
rawWriter.writeMap(updatesMap);
rawWriter.writeLong(accessTime);
rawWriter.writeBoolean(maxIntervalChanged);
if (maxIntervalChanged)
rawWriter.writeInt(maxInactiveInterval);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class GridBinaryMarshalerAwareTestClass method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
writer.writeString("s", s);
BinaryRawWriter raw = writer.rawWriter();
raw.writeString(sRaw);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class BinaryTreeMap method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter rawWriter = writer.rawWriter();
rawWriter.writeObject(map.comparator());
int size = map.size();
rawWriter.writeInt(size);
for (Map.Entry<Object, Object> entry : ((TreeMap<Object, Object>) map).entrySet()) {
rawWriter.writeObject(entry.getKey());
rawWriter.writeObject(entry.getValue());
}
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class IgfsMetaDirectoryListingAddProcessor method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter out = writer.rawWriter();
out.writeString(fileName);
IgfsUtils.writeListingEntry(out, entry);
}
Aggregations