@Override public void readFields(DataInput in) throws IOException { super.readFields(in); kvCount = in.readInt(); }
@Override protected Key newValue() throws IOException { Key key = new Key(); key.readFields(dis); return key; } }
@Override public void readFields(DataInput in) throws IOException { infiniteStartKey = in.readBoolean(); infiniteStopKey = in.readBoolean(); if (!infiniteStartKey) { start = new Key(); start.readFields(in); } else { start = null; } if (!infiniteStopKey) { stop = new Key(); stop.readFields(in); } else { stop = null; } startKeyInclusive = in.readBoolean(); stopKeyInclusive = in.readBoolean(); if (!infiniteStartKey && !infiniteStopKey && beforeStartKey(stop)) { throw new InvalidObjectException( "Start key must be less than end key in range (" + start + ", " + stop + ")"); } }
firstKey.readFields(in); } else { firstKey = null;
@Override public void readFields(DataInput in) throws IOException { key = new Key(); key.readFields(in); entries = in.readInt(); if (newFormat) { offset = Utils.readVLong(in); compressedSize = Utils.readVLong(in); rawSize = Utils.readVLong(in); } else { offset = -1; compressedSize = -1; rawSize = -1; } }
key.readFields(in); val.readFields(in);
@Override public void readFields(DataInput in) throws IOException { super.readFields(in); kvCount = in.readInt(); }
@Override public void readFields(DataInput in) throws IOException { super.readFields(in); kvCount = in.readInt(); }
@Override protected Key newValue() throws IOException { Key key = new Key(); key.readFields(dis); return key; } }
private Key deserializeKey(String k) throws Exception { String key64 = URLDecoder.decode(k, "UTF-8"); byte[] bKey = Base64.decode(key64); ByteArrayInputStream bais = new ByteArrayInputStream(bKey); DataInputStream in = new DataInputStream(bais); Key key = new Key(); key.readFields(in); return key; }
@Override public void readFields(DataInput in) throws IOException { infiniteStartKey = in.readBoolean(); infiniteStopKey = in.readBoolean(); if (!infiniteStartKey) { start = new Key(); start.readFields(in); } else { start = null; } if (!infiniteStopKey) { stop = new Key(); stop.readFields(in); } else { stop = null; } startKeyInclusive = in.readBoolean(); stopKeyInclusive = in.readBoolean(); if (!infiniteStartKey && !infiniteStopKey && beforeStartKey(stop)) { throw new InvalidObjectException( "Start key must be less than end key in range (" + start + ", " + stop + ")"); } }
/** * Deserialize the group, key, and value */ @Override public void readFields(final DataInput in) throws IOException { group.readFields(in); key.readFields(in); value.readFields(in); }
firstKey.readFields(in); } else { firstKey = null;
@Override public void readFields(DataInput in) throws IOException { key = new Key(); key.readFields(in); entries = in.readInt(); if (newFormat) { offset = Utils.readVLong(in); compressedSize = Utils.readVLong(in); rawSize = Utils.readVLong(in); } else { offset = -1; compressedSize = -1; rawSize = -1; } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { this.key = new Key(); key.readFields(in); Value val = new Value(); val.readFields(in); this.value = val.get(); }
key.readFields(in); val.readFields(in);
key.readFields(in); val.readFields(in);