public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
new VLongWritable((Long) val).write(out); return;
@Test public void testVLong() { writableTypeToJson(new VLongWritable(Long.MAX_VALUE)); }
VLongWritable vlong = new VLongWritable(); vlong.readFields(in); return vlong.get();
return new VLongWritable((Long) object);
public DiscoveredThing(String term, String field, String type, String date, String columnVisibility, long count, MapWritable countsByColumnVisibility) { this.term = term; this.field = field; this.type = type; this.date = date; this.columnVisibility = columnVisibility; this.count = new VLongWritable(count); this.countsByColumnVisibility = countsByColumnVisibility; }
public IndexStatsRecord() { numberUnique = new VLongWritable(); count = new VLongWritable(); averageWordLength = new FloatWritable(); }
public DiscoveredThing() { count = new VLongWritable(); countsByColumnVisibility = new MapWritable(); }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
@Override public void write(DataOutput out) throws IOException { out.writeUTF(name); VLongWritable vlaw = new VLongWritable(); vlaw.set(start); vlaw.write(out); vlaw.set(end); vlaw.write(out); }
@Override public void readFields(DataInput in) throws IOException { name = in.readUTF(); VLongWritable vlaw = new VLongWritable(); vlaw.readFields(in); start = vlaw.get(); vlaw.readFields(in); end = vlaw.get(); }
@Override public void write(DataOutput out) throws IOException { out.writeUTF(getFileName()); new VLongWritable(getEventCount()).write(out); makeWritable(phases, Phase.class).write(out); }
@Override public void readFields(DataInput in) throws IOException { areDurationsReady = false; fileName = in.readUTF(); VLongWritable eventCount = new VLongWritable(); eventCount.readFields(in); this.eventCount = eventCount.get(); ArrayWritable phases = new ArrayWritable(Phase.class); phases.readFields(in); this.phases = makeList(phases.get()); }
@Override public void write(DataOutput out) throws IOException { new VLongWritable(count).write(out); new VIntWritable(uids.size()).write(out); for (IndexMatch uid : uids) uid.write(out); }
@Override public void readFields(DataInput in) throws IOException { VLongWritable count = new VLongWritable(); count.readFields(in); this.count = count.get(); VIntWritable nUidsReader = new VIntWritable(); nUidsReader.readFields(in); final int nUids = nUidsReader.get(); ImmutableSortedSet.Builder<IndexMatch> setBuilder = ImmutableSortedSet.naturalOrder(); for (int i = 0; i < nUids; ++i) { IndexMatch index = new IndexMatch(); index.readFields(in); setBuilder.add(index); } this.uids = setBuilder.build(); }