public class StatisticsUtils extends Object
| Constructor and Description |
|---|
StatisticsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static StatisticsTarget |
statisticsTarget(StatisticsKeyMessage msg)
Create statistics target from statistics key message.
|
static ColumnStatistics |
toColumnStatistics(GridKernalContext ctx,
StatisticsColumnData data)
Convert statistics column data message to column statistics object.
|
static StatisticsColumnData |
toMessage(ColumnStatistics stat)
Convert ColumnStatistics to StaticColumnData message.
|
static StatisticsKeyMessage |
toMessage(String schema,
String obj,
String... colNames)
Build stats key message.
|
static StatisticsObjectData |
toObjectData(StatisticsKeyMessage keyMsg,
StatisticsType type,
ObjectStatisticsImpl stat)
Build statistics object data from values.
|
static ObjectPartitionStatisticsImpl |
toObjectPartitionStatistics(GridKernalContext ctx,
StatisticsObjectData objData)
Convert StatsObjectData message to ObjectPartitionStatistics.
|
static ObjectStatisticsImpl |
toObjectStatistics(GridKernalContext ctx,
StatisticsObjectData data)
Convert statistics object data message to object statistics impl.
|
public static StatisticsColumnData toMessage(ColumnStatistics stat) throws IgniteCheckedException
stat - Column statistics to convert.IgniteCheckedException - In case of errors.public static ColumnStatistics toColumnStatistics(GridKernalContext ctx, StatisticsColumnData data) throws IgniteCheckedException
ctx - Kernal context.data - Statistics column data message to convert.IgniteCheckedException - In case of errors.public static StatisticsObjectData toObjectData(StatisticsKeyMessage keyMsg, StatisticsType type, ObjectStatisticsImpl stat) throws IgniteCheckedException
keyMsg - Statistics key.type - Statistics type.stat - Object statistics to convert.IgniteCheckedException - In case of errors.public static StatisticsKeyMessage toMessage(String schema, String obj, String... colNames)
schema - Schema name.obj - Object name.colNames - Column names or null.public static ObjectPartitionStatisticsImpl toObjectPartitionStatistics(GridKernalContext ctx, StatisticsObjectData objData) throws IgniteCheckedException
ctx - Kernal context to use during conversion.objData - StatsObjectData to convert.IgniteCheckedException - In case of errors.public static ObjectStatisticsImpl toObjectStatistics(GridKernalContext ctx, StatisticsObjectData data) throws IgniteCheckedException
ctx - Kernal context to use during conversion.data - Statistics object data message to convert.IgniteCheckedException - In case of errors.public static StatisticsTarget statisticsTarget(StatisticsKeyMessage msg)
msg - Source statistics key message;
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025