public class IgniteStatisticsHelper extends Object
| Constructor and Description |
|---|
IgniteStatisticsHelper(UUID locNodeId,
SchemaManager schemaMgr,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ObjectStatisticsImpl |
aggregateLocalStatistics(GridH2Table tbl,
StatisticsObjectConfiguration cfg,
Collection<? extends ObjectStatisticsImpl> stats,
IgniteLogger log)
Aggregate partition level statistics to local level one or local statistics to global one.
|
ObjectStatisticsImpl |
aggregateLocalStatistics(StatisticsObjectConfiguration cfg,
Collection<? extends ObjectStatisticsImpl> stats)
Aggregate specified partition level statistics to local level statistics.
|
static StatisticsObjectConfiguration[] |
buildDefaultConfigurations(StatisticsTarget... targets)
Build object configurations array with all default parameters from specified targets.
|
static long |
calculateRowCount(StatisticsObjectConfiguration cfg,
long actualRowCount)
Calculate effective row count.
|
static org.gridgain.internal.h2.table.Column[] |
filterColumns(org.gridgain.internal.h2.table.Column[] cols,
@Nullable Collection<String> colNames)
Filter columns by specified names.
|
public IgniteStatisticsHelper(UUID locNodeId, SchemaManager schemaMgr, Function<Class<?>,IgniteLogger> logSupplier)
locNodeId - Local node id.schemaMgr - Schema manager.logSupplier - Ignite logger supplier to get logger from.public ObjectStatisticsImpl aggregateLocalStatistics(StatisticsObjectConfiguration cfg, Collection<? extends ObjectStatisticsImpl> stats)
cfg - Statistics object configuration.stats - Collection of all local partition level or local level statistics by specified key to aggregate.public static ObjectStatisticsImpl aggregateLocalStatistics(GridH2Table tbl, StatisticsObjectConfiguration cfg, Collection<? extends ObjectStatisticsImpl> stats, IgniteLogger log)
tbl - Table to aggregate statistics by.cfg - Statistics object configuration.stats - Collection of partition level or local level statistics to aggregate.log - Logger.public static long calculateRowCount(StatisticsObjectConfiguration cfg, long actualRowCount)
cfg - Statistics configuration to dig overrides row count from.actualRowCount - Actual row count.public static StatisticsObjectConfiguration[] buildDefaultConfigurations(StatisticsTarget... targets)
targets - Targets to build configurations from.public static org.gridgain.internal.h2.table.Column[] filterColumns(org.gridgain.internal.h2.table.Column[] cols,
@Nullable
@Nullable Collection<String> colNames)
cols - Columns to filter.colNames - Column names.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025