public class TableStats extends Object
Constructor and Description |
---|
TableStats(Schema tableSchema) |
Modifier and Type | Method and Description |
---|---|
void |
addRecord(Record record)
Adds the stats for a new record.
|
Histogram |
getHistogram(int index)
Get the histogram for a particular column.
|
int |
getNumRecords() |
void |
removeRecord(Record record)
Remove the stats for an existing record.
|
public TableStats(Schema tableSchema)
public void addRecord(Record record)
record
- the new recordpublic void removeRecord(Record record)
record
- the new recordpublic int getNumRecords()
public Histogram getHistogram(int index)
index
- the index of the columnCopyright © 2017. All rights reserved.