@Override public String getValueString() { try { DataStream valueStream = this.iterator.getValueStream(); int count = valueStream.readInt(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < count; i++) { byte[] term = new byte[valueStream.readInt()]; valueStream.readFully(term); if (i > 0) { sb.append(",").append(ByteUtil.toString(term)); } else { sb.append(ByteUtil.toString(term)); } } return sb.toString(); } catch (IOException e) { return "Unknown"; } }
@Override public String getKeyString() { return ByteUtil.toString(getKey()); }