use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.ByteBufferEntry in project titan by thinkaurelius.
the class CassandraThriftKeyColumnValueStore method excludeLastColumn.
private static List<Entry> excludeLastColumn(List<ColumnOrSuperColumn> row, ByteBuffer lastColumn) {
List<Entry> entries = new ArrayList<Entry>();
for (ColumnOrSuperColumn r : row) {
Column c = r.getColumn();
// Skip column if it is equal to columnEnd because columnEnd is exclusive
if (lastColumn.equals(c.bufferForName()))
break;
entries.add(new ByteBufferEntry(c.bufferForName(), c.bufferForValue()));
}
return entries;
}
Aggregations