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(GridQueryTypeDescriptor 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 List<T2<Integer,String>> |
filterColumns(GridQueryTypeDescriptor typeDescriptor,
@Nullable Collection<String> colNames)
Filter columns by specified names.
|
List<StatisticsAddressedRequest> |
generateGatheringRequests(StatisticsTarget target,
StatisticsObjectConfiguration cfg)
Generate local statistics requests.
|
CacheGroupContext |
groupContext(StatisticsKey key)
Get cache group context by specified statistics key.
|
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 CacheGroupContext groupContext(StatisticsKey key) throws IgniteCheckedException
key - Statistics key to get context by.IgniteCheckedException - If unable to find table by specified key.public List<StatisticsAddressedRequest> generateGatheringRequests(StatisticsTarget target, StatisticsObjectConfiguration cfg) throws IgniteCheckedException
target - Statistics target to request local statistics by.cfg - Statistics configuration.IgniteCheckedExceptionpublic 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(GridQueryTypeDescriptor 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 List<T2<Integer,String>> filterColumns(GridQueryTypeDescriptor typeDescriptor, @Nullable @Nullable Collection<String> colNames)
typeDescriptor - Table descriptor.colNames - Column names.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023