public static class ColumnCounter.GroupByPrefix extends ColumnCounter
ColumnCounter.GroupByPrefix, ColumnCounter.GroupByPrefixReversed
Modifier and Type | Field and Description |
---|---|
protected java.nio.ByteBuffer[] |
previous |
protected boolean |
previousGroupIsStatic |
protected int |
toGroup |
protected CompositeType |
type |
live, timestamp, tombstones
Constructor and Description |
---|
ColumnCounter.GroupByPrefix(long timestamp,
CompositeType type,
int toGroup)
A column counter that count only 1 for all the columns sharing a
given prefix of the key.
|
Modifier and Type | Method and Description |
---|---|
void |
count(Column column,
DeletionInfo.InOrderTester tester) |
countAll, live, tombstones
protected final CompositeType type
protected final int toGroup
protected java.nio.ByteBuffer[] previous
protected boolean previousGroupIsStatic
public ColumnCounter.GroupByPrefix(long timestamp, CompositeType type, int toGroup)
type
- the type of the column name. This can be null if toGroup
is 0, otherwise it should be a composite.toGroup
- the number of composite components on which to group
column. If 0, all columns are grouped, otherwise we group
those for which the toGroup
first component are equals.public void count(Column column, DeletionInfo.InOrderTester tester)
count
in class ColumnCounter
Copyright © 2015 The Apache Software Foundation