use of org.apache.cassandra.db.composites.CType in project stargate-core by tuplejump.
the class RowIndexSupport method addPartitionKeyFields.
private void addPartitionKeyFields(ByteBuffer rowKey, long timestamp, IndexEntryBuilder builder) {
CType keyCType = tableMapper.cfMetaData.getKeyValidatorAsCType();
Composite compoundRowKey = keyCType.fromByteBuffer(rowKey);
for (Map.Entry<String, ColumnDefinition> entry : options.partitionKeysIndexed.entrySet()) {
ByteBuffer value = compoundRowKey.get(entry.getValue().position());
addKeyField(timestamp, entry, value, builder);
}
}
Aggregations