public static class ColumnCounter.GroupByPrefix extends ColumnCounter
ColumnCounter.GroupByPrefix
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 |
---|---|
boolean |
count(Cell cell,
DeletionInfo.InOrderTester tester) |
countAll, live, tombstones
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 boolean count(Cell cell, DeletionInfo.InOrderTester tester)
count
in class ColumnCounter
Copyright © 2015 The Apache Software Foundation