use of org.apache.cassandra.db.PartitionRangeReadCommand in project cassandra by apache.
the class RangeCommandsTest method testEstimateResultsPerRange.
private static void testEstimateResultsPerRange(Keyspace keyspace, ColumnFamilyStore cfs, int rf, int commandEstimate, Integer indexEstimate, float expectedEstimate) {
PartitionRangeReadCommand command = command(cfs, Integer.MAX_VALUE, commandEstimate, indexEstimate);
assertEquals(expectedEstimate / rf, RangeCommands.estimateResultsPerRange(command, keyspace), 0);
}
Aggregations