Search in sources :

Example 6 with ClusteringIndexSliceFilter

use of org.apache.cassandra.db.filter.ClusteringIndexSliceFilter in project cassandra by apache.

the class SSTableScannerTest method dataRange.

private static DataRange dataRange(TableMetadata metadata, PartitionPosition start, boolean startInclusive, PartitionPosition end, boolean endInclusive) {
    Slices.Builder sb = new Slices.Builder(metadata.comparator);
    ClusteringIndexSliceFilter filter = new ClusteringIndexSliceFilter(sb.build(), false);
    return new DataRange(AbstractBounds.bounds(start, startInclusive, end, endInclusive), filter);
}
Also used : ClusteringIndexSliceFilter(org.apache.cassandra.db.filter.ClusteringIndexSliceFilter) Slices(org.apache.cassandra.db.Slices) RowUpdateBuilder(org.apache.cassandra.db.RowUpdateBuilder) DataRange(org.apache.cassandra.db.DataRange)

Aggregations

ClusteringIndexSliceFilter (org.apache.cassandra.db.filter.ClusteringIndexSliceFilter)6 ColumnFilter (org.apache.cassandra.db.filter.ColumnFilter)3 UnfilteredPartitionIterator (org.apache.cassandra.db.partitions.UnfilteredPartitionIterator)3 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)2 Row (org.apache.cassandra.db.rows.Row)2 UnfilteredRowIterator (org.apache.cassandra.db.rows.UnfilteredRowIterator)2 DataInputBuffer (org.apache.cassandra.io.util.DataInputBuffer)2 DataOutputBuffer (org.apache.cassandra.io.util.DataOutputBuffer)2 ByteBuffer (java.nio.ByteBuffer)1 DataRange (org.apache.cassandra.db.DataRange)1 RowUpdateBuilder (org.apache.cassandra.db.RowUpdateBuilder)1 Slices (org.apache.cassandra.db.Slices)1 ClusteringIndexFilter (org.apache.cassandra.db.filter.ClusteringIndexFilter)1 ClusteringIndexNamesFilter (org.apache.cassandra.db.filter.ClusteringIndexNamesFilter)1 RowFilter (org.apache.cassandra.db.filter.RowFilter)1 PartitionIterator (org.apache.cassandra.db.partitions.PartitionIterator)1 UnfilteredPartitionIterators (org.apache.cassandra.db.partitions.UnfilteredPartitionIterators)1 RowIterator (org.apache.cassandra.db.rows.RowIterator)1 Unfiltered (org.apache.cassandra.db.rows.Unfiltered)1