Example usage for org.apache.cassandra.dht AbstractBounds contains

List of usage examples for org.apache.cassandra.dht AbstractBounds contains

Introduction

In this page you can find the example usage for org.apache.cassandra.dht AbstractBounds contains.

Prototype

public abstract boolean contains(T start);

Source Link

Usage

From source file:com.stratio.cassandra.lucene.IndexPagingState.java

License:Apache License

private void clear(AbstractBounds<PartitionPosition> bounds) {
    List<DecoratedKey> keysToRemove = new LinkedList<>();
    for (Map.Entry<DecoratedKey, Clustering> entry : entries.entrySet()) {
        DecoratedKey key = entry.getKey();
        if (bounds.contains(key)) {
            keysToRemove.add(key);/*w w  w  .j ava2s  .  co  m*/
        }
    }
    keysToRemove.forEach(entries::remove);
}