public class SimpleStatsCollector extends Object
Constructor and Description |
---|
SimpleStatsCollector(RowType rowType) |
SimpleStatsCollector(RowType rowType,
SimpleColStatsCollector.Factory[] collectorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
collect(InternalRow row)
Update the statistics with a new row data.
|
SimpleColStats[] |
extract() |
boolean |
isDisabled() |
public SimpleStatsCollector(RowType rowType)
public SimpleStatsCollector(RowType rowType, SimpleColStatsCollector.Factory[] collectorFactory)
public boolean isDisabled()
public void collect(InternalRow row)
IMPORTANT: Fields of this row should NOT be reused, as they're directly stored in the collector.
public SimpleColStats[] extract()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.