List of usage examples for org.apache.cassandra.db.partitions PartitionUpdate partitionKey
public DecoratedKey partitionKey()
From source file:com.stratio.cassandra.lucene.IndexService.java
License:Apache License
/** * Ensures that values present in the specified {@link PartitionUpdate} are valid according to the {@link Schema}. * * @param update the partition update containing the values to be validated *//*w w w . ja va 2s . com*/ public void validate(PartitionUpdate update) { DecoratedKey key = update.partitionKey(); for (Row row : update) { schema.validate(columns(key, row)); } }