Example usage for org.apache.cassandra.db.rows UnfilteredRowIterator partitionKey

List of usage examples for org.apache.cassandra.db.rows UnfilteredRowIterator partitionKey

Introduction

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

Prototype

public DecoratedKey partitionKey();

Source Link

Document

The partition key of the partition this in an iterator over.

Usage

From source file:com.jeffjirsa.cassandra.db.compaction.writers.CleaningTimeWindowCompactionWriter.java

License:Apache License

@Override
public boolean realAppend(UnfilteredRowIterator partition) {
    if (Range.isInRanges(partition.partitionKey().getToken(), sortedRanges)) {
        RowIndexEntry rie = sstableWriter.append(partition);
        return rie != null;
    } else {/* ww w.  ja v  a2 s.  c  o  m*/
        cfs.invalidateCachedPartition(partition.partitionKey());
        cfs.indexManager.deletePartition(partition, nowInSec);
        return false;
    }
}