public int getValueID(int col) { return BytesUtil.readUnsigned(buf, digest.offset(col), digest.length(col)); }
public void setValueMetrics(int col, LongWritable value) { digest.codec(col).write(value, buf, digest.offset(col)); }
public void setValueID(int col, int id) { BytesUtil.writeUnsigned(id, buf, digest.offset(col), digest.length(col)); }
public void getValueBytes(int col, ImmutableBytesWritable bytes) { bytes.set(buf, digest.offset(col), digest.length(col)); }
public void setValueBytes(int col, ImmutableBytesWritable bytes) { System.arraycopy(bytes.get(), bytes.getOffset(), buf, digest.offset(col), digest.length(col)); }
public String getValueMetric(int col) { digest.codec(col).read(buf, digest.offset(col)); return (String) digest.codec(col).getValue(); }
public final int offset(int col) { return digest.offset(col); }
public String getValueStringWithoutDictionary(int col) { int offset = info.digest.offset(col); int length = info.digest.length(col); byte[] bytes = rawRecord.getBytes(); int i; for (i = 0; i < length; ++i) { if (bytes[offset + i] == ROWKEY_PLACE_HOLDER_BYTE) { break; } } return new String(bytes, offset, i); }
public void setValueStringWithoutDictionary(int col, String value) { int offset = info.digest.offset(col); int length = info.digest.length(col); byte[] src = value.getBytes(); if (length >= src.length) { byte[] dst = rawRecord.getBytes(); System.arraycopy(src, 0, dst, offset, src.length); Arrays.fill(dst, offset + src.length, offset + length, ROWKEY_PLACE_HOLDER_BYTE); } else { byte[] dst = rawRecord.getBytes(); System.arraycopy(src, 0, dst, offset, length); } }
public int getValueID(int col) { return BytesUtil.readUnsigned(buf, digest.offset(col), digest.length(col)); }
public void setValueID(int col, int id) { BytesUtil.writeUnsigned(id, buf, digest.offset(col), digest.length(col)); }
public void setValueMetrics(int col, LongMutable value) { digest.codec(col).write(value, buf, digest.offset(col)); }
public void setValueBytes(int col, ImmutableBytesWritable bytes) { System.arraycopy(bytes.get(), bytes.getOffset(), buf, digest.offset(col), digest.length(col)); }
public String getValueMetric(int col) { digest.codec(col).read(buf, digest.offset(col)); return (String) digest.codec(col).getValue(); }