public static Set<String> getCellNames(ColumnFamily columnFamily) {
   Set<String> cellNames = new HashSet<>();
   CFMetaData metadata = columnFamily.metadata();
   for (Cell cell : columnFamily) {
     if (cell.value().remaining() > 0) {
       String cellName = metadata.comparator.getString(cell.name());
       cellNames.add(normalizeCellName(cellName));
     }
   }
   return cellNames;
 }
Exemplo n.º 2
0
 public List<ByteBuffer> serializedValues(List<Cell> cells) {
   List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(cells.size());
   for (Cell c : cells) bbs.add(c.value());
   return bbs;
 }