Example usage for org.apache.cassandra.db.partitions PartitionUpdate partitionKey

List of usage examples for org.apache.cassandra.db.partitions PartitionUpdate partitionKey

Introduction

In this page you can find the example usage for org.apache.cassandra.db.partitions PartitionUpdate partitionKey.

Prototype

public DecoratedKey partitionKey() 

Source Link

Usage

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));
    }
}