public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
@Override public void readFields(DataInput arg0) throws IOException { password = WritableUtils.readCompressedByteArray(arg0); }
@Override public void readFields(final DataInput input) throws IOException { final ByteArrayInputStream bais = new ByteArrayInputStream(WritableUtils.readCompressedByteArray(input)); this.t = KryoShimServiceLoader.readClassAndObject(bais); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.essentialCF = WritableUtils.readCompressedByteArray(input); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.essentialCF = WritableUtils.readCompressedByteArray(input); }
@Override public void readFields(final DataInput input) throws IOException { this.vertex = null; final ByteArrayInputStream bais = new ByteArrayInputStream(WritableUtils.readCompressedByteArray(input)); this.vertex = ((StarGraph)KryoShimServiceLoader.readClassAndObject(bais)).getStarVertex(); // read the star graph; }
@Override public void readFields(DataInput input) throws IOException { this.emptyCFName = WritableUtils.readCompressedByteArray(input); int familyMapSize = WritableUtils.readVInt(input); assert familyMapSize > 0; columnsTracker = new TreeMap<ImmutableBytesPtr, NavigableSet<ImmutableBytesPtr>>(); while (familyMapSize > 0) { byte[] cf = WritableUtils.readCompressedByteArray(input); int qualifiersSize = WritableUtils.readVInt(input); NavigableSet<ImmutableBytesPtr> qualifiers = null; if (qualifiersSize > 0) { qualifiers = new TreeSet<ImmutableBytesPtr>(); while (qualifiersSize > 0) { qualifiers.add(new ImmutableBytesPtr(WritableUtils.readCompressedByteArray(input))); qualifiersSize--; } } columnsTracker.put(new ImmutableBytesPtr(cf), qualifiers); familyMapSize--; } int conditionOnlyCfsSize = WritableUtils.readVInt(input); usesEncodedColumnNames = conditionOnlyCfsSize > 0; emptyKVQualifier = EncodedColumnsUtil.getEmptyKeyValueInfo(usesEncodedColumnNames).getFirst(); conditionOnlyCfsSize = Math.abs(conditionOnlyCfsSize) - 1; // restore to the actual value. this.conditionOnlyCfs = new TreeSet<byte[]>(Bytes.BYTES_COMPARATOR); while (conditionOnlyCfsSize > 0) { this.conditionOnlyCfs.add(WritableUtils.readCompressedByteArray(input)); conditionOnlyCfsSize--; } }
@Override public void readFields(DataInput input) throws IOException { this.emptyCFName = WritableUtils.readCompressedByteArray(input); int bitsetLongArraySize = WritableUtils.readVInt(input); long[] bitsetLongArray = new long[bitsetLongArraySize]; for (int i = 0; i < bitsetLongArraySize; i++) { bitsetLongArray[i] = WritableUtils.readVLong(input); } this.trackedColumns = BitSet.valueOf(bitsetLongArray); this.encodingScheme = QualifierEncodingScheme.values()[WritableUtils.readVInt(input)]; int conditionOnlyCfsSize = WritableUtils.readVInt(input); this.conditionOnlyCfs = new TreeSet<byte[]>(Bytes.BYTES_COMPARATOR); while (conditionOnlyCfsSize > 0) { this.conditionOnlyCfs.add(WritableUtils.readCompressedByteArray(input)); conditionOnlyCfsSize--; } }
ProjectionType type = ProjectionType.values()[t]; if (type == ProjectionType.TABLE) { byte[] tablePrefix = WritableUtils.readCompressedByteArray(input); return new ScanProjector(type, tablePrefix, null, null); Map<ImmutableBytesPtr, byte[]> cfMap = new HashMap<ImmutableBytesPtr, byte[]>(); for (int i = 0; i < count; i++) { byte[] cf = WritableUtils.readCompressedByteArray(input); byte[] renamed = WritableUtils.readCompressedByteArray(input); cfMap.put(new ImmutableBytesPtr(cf), renamed); new HashMap<ImmutableBytesPtr, Map<ImmutableBytesPtr, Pair<byte[], byte[]>>>(); for (int i = 0; i < count; i++) { byte[] cf = WritableUtils.readCompressedByteArray(input); int nQuals = WritableUtils.readVInt(input); Map<ImmutableBytesPtr, Pair<byte[], byte[]>> map = new HashMap<ImmutableBytesPtr, Pair<byte[], byte[]>>(); for (int j = 0; j < nQuals; j++) { byte[] cq = WritableUtils.readCompressedByteArray(input); byte[] renamedCf = WritableUtils.readCompressedByteArray(input); byte[] renamedCq = WritableUtils.readCompressedByteArray(input); map.put(new ImmutableBytesPtr(cq), new Pair<byte[], byte[]>(renamedCf, renamedCq));
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
public static String readCompressedString(DataInput in) throws IOException { byte[] bytes = readCompressedByteArray(in); if (bytes == null) return null; return new String(bytes, "UTF-8"); }
@Override public void readFields(final DataInput input) throws IOException { final ByteArrayInputStream bais = new ByteArrayInputStream(WritableUtils.readCompressedByteArray(input)); this.t = KryoShimServiceLoader.readClassAndObject(bais); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.essentialCF = WritableUtils.readCompressedByteArray(input); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.essentialCF = WritableUtils.readCompressedByteArray(input); }
@Override public void readFields(final DataInput input) throws IOException { this.vertex = null; final ByteArrayInputStream bais = new ByteArrayInputStream(WritableUtils.readCompressedByteArray(input)); this.vertex = ((StarGraph)KryoShimServiceLoader.readClassAndObject(bais)).getStarVertex(); // read the star graph; }
@Override public void readFields(DataInput in) throws IOException { readMetadata(in); content = new FieldValueCardinality(); content.lower = WritableUtils.readString(in); content.upper = WritableUtils.readString(in); byte[] cardArray = WritableUtils.readCompressedByteArray(in); content.estimate = HyperLogLogPlus.Builder.build(cardArray); }