/** * Writes GGFS path to given data output. Can write {@code null} values. * * @param out Data output. * @param path Path to write. * @throws IOException If write failed. */ private void writePath(ObjectOutput out, @Nullable GridGgfsPath path) throws IOException { out.writeBoolean(path != null); if (path != null) path.writeExternal(out); }
/** * Writes GGFS path to given data output. Can write {@code null} values. * * @param out Data output. * @param path Path to write. * @throws IOException If write failed. */ private void writePath(ObjectOutput out, @Nullable GridGgfsPath path) throws IOException { out.writeBoolean(path != null); if (path != null) path.writeExternal(out); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(filesCnt); out.writeInt(dirCnt); out.writeLong(totalLen); path.writeExternal(out); }
/** * Writes object to data output. * * @param out Data output. */ @Override public void writeExternal(ObjectOutput out) throws IOException { path.writeExternal(out); out.writeInt(blockSize); out.writeLong(grpBlockSize); out.writeLong(len); U.writeStringMap(out, props); out.writeLong(accessTime); out.writeLong(modificationTime); }
/** * Writes object to data output. * * @param out Data output. */ @Override public void writeExternal(ObjectOutput out) throws IOException { path.writeExternal(out); out.writeInt(blockSize); out.writeLong(grpBlockSize); out.writeLong(len); U.writeStringMap(out, props); out.writeLong(accessTime); out.writeLong(modificationTime); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeStringMap(out, props); U.writeEnum0(out, dfltMode); if (pathModes != null) { out.writeBoolean(true); out.writeInt(pathModes.size()); for (T2<GridGgfsPath, GridGgfsMode> pathMode : pathModes) { pathMode.getKey().writeExternal(out); U.writeEnum0(out, pathMode.getValue()); } } else out.writeBoolean(false); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeStringMap(out, props); U.writeEnum0(out, dfltMode); if (pathModes != null) { out.writeBoolean(true); out.writeInt(pathModes.size()); for (T2<GridGgfsPath, GridGgfsMode> pathMode : pathModes) { pathMode.getKey().writeExternal(out); U.writeEnum0(out, pathMode.getValue()); } } else out.writeBoolean(false); }