Example usage for org.apache.cassandra.db ColumnFamilyStore estimateKeys

List of usage examples for org.apache.cassandra.db ColumnFamilyStore estimateKeys

Introduction

In this page you can find the example usage for org.apache.cassandra.db ColumnFamilyStore estimateKeys.

Prototype

public long estimateKeys() 

Source Link

Usage

From source file:com.protectwise.cassandra.db.compaction.BackupSinkForDeletingCompaction.java

License:Apache License

public BackupSinkForDeletingCompaction(ColumnFamilyStore cfs, File targetDirectory) {
    // TODO: Wow, this key estimate is probably grossly over-estimated...  Not sure how to get a better one here.
    this(cfs, targetDirectory, cfs.estimateKeys() / cfs.getLiveSSTableCount());
}