@Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter rawWriter = writer.rawWriter(); rawWriter.writeObject(job); rawWriter.writeObject(arg); }
raw.writeEnum(enumValRaw); raw.writeEnumArray(enumArrRaw); raw.writeObject(simpleRaw); raw.writeObject(binaryRaw);
/** {@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()); } }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeObject(range); }
@Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { writer.rawWriter().writeObject(r); }
@Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { writer.rawWriter().writeObject(c); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter rawWriter = writer.rawWriter(); rawWriter.writeObject(set.comparator()); int size = set.size(); rawWriter.writeInt(size); for (Object val : set) rawWriter.writeObject(val); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); if (ranges == null) out.writeInt(-1); else { assert !ranges.isEmpty(); out.writeInt(ranges.size()); for (IgfsFileAffinityRange range : ranges) out.writeObject(range); } }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeObject(range); out.writeInt(status); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeLong(space); out.writeObject(affRange); }
/** * Writes mutable entry and entry processor to the stream. * * @param entry Entry to process. * @param writer Writer. */ private void writeEntryAndProcessor(MutableEntry entry, BinaryRawWriter writer) { if (ptr != 0) { // Execute locally - we have a pointer to native processor. writer.writeBoolean(true); writer.writeLong(ptr); } else { // We are on a remote node. Send processor holder back to native. writer.writeBoolean(false); writer.writeObject(proc); } writer.writeObject(entry.getKey()); writer.writeObject(entry.getValue()); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeLong(modificationTime); if (updateSpace) { out.writeBoolean(true); out.writeLong(space); out.writeObject(affRange); } else out.writeBoolean(false); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); writeBinary(out); out.writeInt(blockSize); out.writeLong(len); BinaryUtils.writeIgniteUuid(out, lockId); BinaryUtils.writeIgniteUuid(out, affKey); out.writeObject(fileMap); out.writeBoolean(evictExclude); }
writer.writeBoolean(keyFields != null && keyFields.contains(field.getKey())); writer.writeBoolean(notNullFields != null && notNullFields.contains(field.getKey())); writer.writeObject(defVals != null ? defVals.get(field.getKey()) : null);
out.writeBoolean(f0.isExcludeNeighbors()); out.writeByte((byte) 0); // override flags out.writeObject(null); // user func out.writeBoolean(((RendezvousAffinityFunction) baseFunc).isExcludeNeighbors()); out.writeByte(f0.getOverrideFlags()); out.writeObject(f0.getUserFunc()); out.writeBoolean(false); // exclude neighbors out.writeByte(f0.getOverrideFlags()); out.writeObject(f0.getUserFunc());
w.writeBoolean(qf.isKey()); w.writeBoolean(qf.isNotNull()); w.writeObject(qf.getDefaultValue());
writer.writeObject(((PlatformDotNetCacheStoreFactoryNative)ccfg.getCacheStoreFactory()).getNativeFactory()); else writer.writeObject(null); if (cfg instanceof PlatformCachePluginConfiguration) { writer.writeBoolean(false); // Pure platform plugin. writer.writeObject(((PlatformCachePluginConfiguration) cfg).nativeCfg());
w.writeObject(cfg.getConsistentId()); w.writeObject(e.getValue());
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter rawWriter = writer.rawWriter(); rawWriter.writeObject(set.comparator()); int size = set.size(); rawWriter.writeInt(size); for (Object val : set) rawWriter.writeObject(val); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeLong(space); out.writeObject(affRange); }