public static class ColumnCounter.GroupByPrefix extends ColumnCounter
ColumnCounter.GroupByPrefix, ColumnCounter.GroupByPrefixReversed| Modifier and Type | Field and Description |
|---|---|
protected CellName |
previous |
protected int |
toGroup |
protected CellNameType |
type |
live, timestamp, tombstones| Constructor and Description |
|---|
GroupByPrefix(long timestamp,
CellNameType 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(Cell cell,
DeletionInfo.InOrderTester tester) |
countAll, live, tombstonesprotected final CellNameType type
protected final int toGroup
protected CellName previous
public GroupByPrefix(long timestamp,
CellNameType 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(Cell cell, DeletionInfo.InOrderTester tester)
count in class ColumnCounterCopyright © 2015 The Apache Software Foundation