public static class ColumnCounter.GroupByPrefix extends ColumnCounter
ColumnCounter.GroupByPrefix, ColumnCounter.GroupByPrefixReversed
Modifier and Type | Field and Description |
---|---|
protected boolean |
countPartitionsWithOnlyStaticData |
protected CellName |
previous |
protected int |
toGroup |
protected CellNameType |
type |
live, timestamp, tombstones
Constructor and Description |
---|
GroupByPrefix(long timestamp,
CellNameType type,
int toGroup,
boolean countPartitionsWithOnlyStaticData)
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, getCellIterator, live, tombstones
protected final CellNameType type
protected final int toGroup
protected final boolean countPartitionsWithOnlyStaticData
protected CellName previous
public GroupByPrefix(long timestamp, CellNameType type, int toGroup, boolean countPartitionsWithOnlyStaticData)
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.countPartitionsWithOnlyStaticData
- if true
the partitions with only static data should be
counted as 1 valid row.public boolean count(Cell cell, DeletionInfo.InOrderTester tester)
count
in class ColumnCounter
Copyright © 2020 The Apache Software Foundation