List of usage examples for org.apache.cassandra.dht AbstractBounds contains
public abstract boolean contains(T start);
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); }