/** * Writes fields to provided writer. * * @param writer Writer. * @throws BinaryObjectException If fails. */ public void writeRawBinary(BinaryRawWriter writer) throws BinaryObjectException { BinaryUtils.writeIgniteUuid(writer, affKey); writer.writeInt(status); writer.writeLong(startOff); writer.writeLong(endOff); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter rawWriter = writer.rawWriter(); IgfsUtils.writePath(rawWriter, path); rawWriter.writeInt(blockSize); rawWriter.writeLong(grpBlockSize); rawWriter.writeLong(len); IgfsUtils.writeProperties(rawWriter, props); rawWriter.writeLong(accessTime); rawWriter.writeLong(modificationTime); rawWriter.writeByte(flags); }
/** {@inheritDoc} */ @Override public void writeBinary0(BinaryRawWriter writer) throws BinaryObjectException { BinaryUtils.writeIgniteUuid(writer, fileId); BinaryUtils.writeIgniteUuid(writer, lockId); writer.writeLong(modificationTime); writer.writeBoolean(updateSpace); if (updateSpace) writer.writeLong(space); IgfsUtils.writeFileAffinityRange(writer, affRange); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeLong(space); out.writeObject(affRange); }
/** {@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(); out.writeLong(accessTime); out.writeLong(modificationTime); IgfsUtils.writeProperties(out, props); out.writeInt(blockSize); BinaryUtils.writeIgniteUuid(out, affKey); BinaryUtils.writeIgniteUuid(out, lockId); out.writeBoolean(evictExclude); out.writeLong(len); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); out.writeLong(accessTime); out.writeLong(modificationTime); IgfsUtils.writeProperties(out, props); out.writeString(childName); if (childName != null) IgfsUtils.writeListingEntry(out, childEntry); }
/** {@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); }
/** * Writes to a binary writer. * * @param writer Binary writer. */ public void writeBinary(BinaryRawWriter writer) { writer.writeBoolean(success); if (success) data.writeBinary(writer); writer.writeTimestamp(lockTime); writer.writeLong(lockId); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { final BinaryRawWriter raw = writer.rawWriter(); raw.writeString(query); if (versions != null) { raw.writeInt(versions.length); for (long ver : versions) raw.writeLong(ver); } else raw.writeInt(-1); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter rawWriter = writer.rawWriter(); rawWriter.writeInt(filesCnt); rawWriter.writeInt(dirCnt); rawWriter.writeLong(totalLen); IgfsUtils.writePath(rawWriter, path); }
/** {@inheritDoc} */ @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException { BinaryRawWriter out = writer.rawWriter(); BinaryUtils.writeIgniteUuid(out, fileId); BinaryUtils.writeIgniteUuid(out, affKey); out.writeBoolean(evictExclude); out.writeLong(blockId); }
/** {@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); }
/** * Writes query metrics. * * @param writer Writer. * @param metrics Metrics. */ public static void writeQueryMetrics(BinaryRawWriter writer, QueryMetrics metrics) { assert writer != null; assert metrics != null; writer.writeLong(metrics.minimumTime()); writer.writeLong(metrics.maximumTime()); writer.writeDouble(metrics.averageTime()); writer.writeInt(metrics.executions()); writer.writeInt(metrics.fails()); }
/** {@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); }