use of org.apache.cassandra.db.composites.CellNameType in project stargate-core by tuplejump.
the class RowFetcher method getMetaColumn.
protected Cell getMetaColumn(Cell firstColumn, Float score) {
CellNameType cellNameType = table.getComparator();
ColumnDefinition columnDefinition = resultMapper.tableMapper.primaryColumnDefinition;
CellName cellName = cellNameType.create(firstColumn.name(), columnDefinition);
return new BufferCell(cellName, UTF8Type.instance.decompose("{\"score\":" + score.toString() + "}"));
}
Aggregations