public static int writeCompressedString(DataOutput out, String s) throws IOException { return writeCompressedByteArray(out, (s != null) ? s.getBytes("UTF-8") : null); }
@Override public void write(DataOutput arg0) throws IOException { WritableUtils.writeCompressedByteArray(arg0, password); }
@Override public void write(final DataOutput output) throws IOException { final byte serialized[] = KryoShimServiceLoader.writeClassAndObjectToBytes(this.t); WritableUtils.writeCompressedByteArray(output, serialized); }
@Override public void write(DataOutput output) throws IOException { super.write(output); WritableUtils.writeCompressedByteArray(output, this.essentialCF); }
@Override public void write(DataOutput output) throws IOException { super.write(output); WritableUtils.writeCompressedByteArray(output, this.essentialCF); } }
@Override public void write(DataOutput output) throws IOException { WritableUtils.writeCompressedByteArray(output, this.emptyCFName); WritableUtils.writeVInt(output, this.columnsTracker.size()); for (Entry<ImmutableBytesPtr, NavigableSet<ImmutableBytesPtr>> entry : this.columnsTracker.entrySet()) { // write family name WritableUtils.writeCompressedByteArray(output, entry.getKey().copyBytes()); int qaulsSize = entry.getValue() == null ? 0 : entry.getValue().size(); WritableUtils.writeVInt(output, qaulsSize); if (qaulsSize > 0) { for (ImmutableBytesPtr cq : entry.getValue()) { // write qualifier name WritableUtils.writeCompressedByteArray(output, cq.copyBytes()); } } } // Encode usesEncodedColumnNames in conditionOnlyCfs size. WritableUtils.writeVInt(output, (this.conditionOnlyCfs.size() + 1) * (usesEncodedColumnNames ? 1 : -1)); for (byte[] f : this.conditionOnlyCfs) { WritableUtils.writeCompressedByteArray(output, f); } }
@Override public void write(final DataOutput output) throws IOException { final byte serialized[] = KryoShimServiceLoader.writeClassAndObjectToBytes(this.vertex.graph()); WritableUtils.writeCompressedByteArray(output, serialized); }
switch (projector.type) { case TABLE: WritableUtils.writeCompressedByteArray(output, projector.tablePrefix); break; case CF: WritableUtils.writeVInt(output, projector.cfProjectionMap.size()); for (Map.Entry<ImmutableBytesPtr, byte[]> entry : projector.cfProjectionMap.entrySet()) { WritableUtils.writeCompressedByteArray(output, entry.getKey().get()); WritableUtils.writeCompressedByteArray(output, entry.getValue()); for (Map.Entry<ImmutableBytesPtr, Map<ImmutableBytesPtr, Pair<byte[], byte[]>>> entry : projector.cqProjectionMap.entrySet()) { WritableUtils.writeCompressedByteArray(output, entry.getKey().get()); Map<ImmutableBytesPtr, Pair<byte[], byte[]>> map = entry.getValue(); WritableUtils.writeVInt(output, map.size()); for (Map.Entry<ImmutableBytesPtr, Pair<byte[], byte[]>> e : map.entrySet()) { WritableUtils.writeCompressedByteArray(output, e.getKey().get()); WritableUtils.writeCompressedByteArray(output, e.getValue().getFirst()); WritableUtils.writeCompressedByteArray(output, e.getValue().getSecond());
@Override public void write(DataOutput output) throws IOException { WritableUtils.writeCompressedByteArray(output, this.emptyCFName); long[] longArrayOfBitSet = trackedColumns.toLongArray(); WritableUtils.writeVInt(output, longArrayOfBitSet.length); for (Long l : longArrayOfBitSet) { WritableUtils.writeVLong(output, l); } WritableUtils.writeVInt(output, encodingScheme.ordinal()); WritableUtils.writeVInt(output, this.conditionOnlyCfs.size()); for (byte[] f : this.conditionOnlyCfs) { WritableUtils.writeCompressedByteArray(output, f); } }
@Override public void write(DataOutput arg0) throws IOException { WritableUtils.writeCompressedByteArray(arg0, password); }
public static int writeCompressedString(DataOutput out, String s) throws IOException { return writeCompressedByteArray(out, (s != null) ? s.getBytes("UTF-8") : null); }
public static int writeCompressedString(DataOutput out, String s) throws IOException { return writeCompressedByteArray(out, (s != null) ? s.getBytes("UTF-8") : null); }
@Override public void write(DataOutput output) throws IOException { super.write(output); WritableUtils.writeCompressedByteArray(output, this.essentialCF); }
@Override public void write(final DataOutput output) throws IOException { final byte[] serialized = ValueUtils.serialize(this.t); WritableUtils.writeCompressedByteArray(output, serialized); }
@Override public void write(final DataOutput output) throws IOException { final byte serialized[] = KryoShimServiceLoader.writeClassAndObjectToBytes(this.t); WritableUtils.writeCompressedByteArray(output, serialized); }
@Override public void write(DataOutput output) throws IOException { super.write(output); WritableUtils.writeCompressedByteArray(output, this.essentialCF); }
@Override public void write(final DataOutput output) throws IOException { final byte serialized[] = KryoShimServiceLoader.writeClassAndObjectToBytes(this.vertex.graph()); WritableUtils.writeCompressedByteArray(output, serialized); }
@Override public void write(DataOutput out, boolean reducedResponse) throws IOException { writeMetadata(out, reducedResponse); WritableUtils.writeCompressedByteArray(out, write()); }
@Override public void write(DataOutput output) throws IOException { WritableUtils.writeCompressedByteArray(output, this.emptyCFName); long[] longArrayOfBitSet = trackedColumns.toLongArray(); WritableUtils.writeVInt(output, longArrayOfBitSet.length); for (Long l : longArrayOfBitSet) { WritableUtils.writeVLong(output, l); } WritableUtils.writeVInt(output, encodingScheme.ordinal()); WritableUtils.writeVInt(output, this.conditionOnlyCfs.size()); for (byte[] f : this.conditionOnlyCfs) { WritableUtils.writeCompressedByteArray(output, f); } }
@Override public void write(DataOutput out, boolean reducedResponse) throws IOException { writeMetadata(out, reducedResponse); WritableUtils.writeString(out, content.lower); WritableUtils.writeString(out, content.upper); WritableUtils.writeCompressedByteArray(out, content.estimate.getBytes()); }