public VLongWritable(long value) { set(value); }
public VLongWritable readVLong(VLongWritable lw) throws IOException { if (lw == null) { lw = new VLongWritable(); } lw.set(in.readLong()); return lw; }
public void setNumberOfUniqueWords(long numUnique) { numberUnique.set(numUnique); }
public void setWordCount(long sum) { count.set(sum); }
public VLongWritable(long value) { set(value); }
public VLongWritable(long value) { set(value); }
public VLongWritable(long value) { set(value); }
public VLongWritable(long value) { set(value); }
public VLongWritable(long value) { set(value); }
public VLongWritable(long value) { set(value); }
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 map(Key key, Value data, Context context) throws IOException, InterruptedException { long r = Long.parseLong(key.getRow().toString(), 16); if (r < 0) throw new IllegalArgumentException(); try { ContinuousWalk.validate(key, data); } catch (BadChecksumException bce) { context.getCounter(Counts.CORRUPT).increment(1l); if (corrupt < 1000) { log.error("Bad checksum : " + key); } else if (corrupt == 1000) { System.out.println("Too many bad checksums, not printing anymore!"); } corrupt++; return; } row.set(r); context.write(row, DEF); byte[] val = data.get(); int offset = ContinuousWalk.getPrevRowOffset(val); if (offset > 0) { ref.set(Long.parseLong(new String(val, offset, 16, UTF_8), 16)); vrow.set(r); context.write(ref, vrow); } } }
result.getValueType() == ValueType.XS_INTEGER) { XSInteger intItem = (XSInteger)result.getItem(); ((VLongWritable)value).set(intItem.asLong()); } else if (valueClass.equals(BooleanWritable.class) && result.getValueType() == ValueType.XS_BOOLEAN) {