public final class LogicalStatistics extends Object
LogicalStatistic
class.Modifier and Type | Field and Description |
---|---|
static CounterDefinition |
AUTO_SORTED_DATA_SETS
This is a planning statistic that indicates the number of datasets that were automatically sorted.
|
static String |
CATEGORY_PLAN
The name of the category for static planning statistics
|
static String |
CATEGORY_ROW_COUNT
The name of the category for row count statistics
|
static CounterDefinition |
NON_PARALLEL_OPERATIONS
This is a planning statistic that indicates the number of non-parallel operations.
|
static CounterDefinition |
READ_ROW_COUNT
A connection statistic that provides the number of rows read by the downstream operator.
|
static CounterDefinition |
REDISTRIBUTED_DATA_SETS
This is a planning statistic that indicates the number of redistributed,
scattered, or gathered datasets.
|
static List<CounterDefinition> |
ROW_COUNTS
Returns a list consisting of the various row count statistics:
WRITE_ROW_COUNT
SORT_ROW_COUNT
READ_ROW_COUNT
|
static CounterDefinition |
SORT_ROW_COUNT
A connection statistic that provides the number of rows implicitly sorted due to metadata mismatch.
|
static CounterDefinition |
STAGED_DATA_SETS
This is a planning statistic that indicates the number of staged datasets.
|
static CounterDefinition |
WRITE_ROW_COUNT
A connection statistic that provides the number of rows staged
(usually due to repartitioning in a cluster or due to forced staging).
|
Modifier and Type | Method and Description |
---|---|
static StatisticsMap |
aggregate(List<LogicalStatistic> details)
Performs aggregation across logical statistic by the standard
aggregation defined for each
StatisticDefinition . |
static StatisticsMap |
aggregate(LogicalGraphInstanceView graph)
Performs aggregation across all statistics within a graph
|
static StatisticsMap |
aggregateMinOfSumsOfCounts(List<LogicalStatistic> details)
Performs aggregation across the given list of statistics for
the special case monitoring counter progress for a composite
port.
|
static List<LogicalStatistic> |
filter(List<LogicalStatistic> stats,
StatisticDefinition<?> definition)
Utility method to select all statistics that match the given definition.
|
static <T extends StatisticSupplier> |
filterSuppliers(List<LogicalStatistic> stats,
StatisticDefinition<T> definition)
Utility method to select all statistics suppliers that match the given definition.
|
static List<RuntimeStatistic<?>> |
statistics(List<LogicalStatistic> logicalStatistics)
Utility method to select each of the
LogicalStatistic.statistic() 's from
the specified list. |
public static final String CATEGORY_PLAN
public static final String CATEGORY_ROW_COUNT
public static final CounterDefinition STAGED_DATA_SETS
public static final CounterDefinition REDISTRIBUTED_DATA_SETS
public static final CounterDefinition AUTO_SORTED_DATA_SETS
public static final CounterDefinition NON_PARALLEL_OPERATIONS
public static CounterDefinition WRITE_ROW_COUNT
StatisticState#FINISHED
when the port
reaches end-of-data. This statistic aggregates by summation.
Use the utility method aggregateMinOfSumsOfCounts(List)
to compute
slowest writer across a set of ports underlying a composite port. This provides
a simple measure of progress across partitions and across children of the
composite.public static CounterDefinition READ_ROW_COUNT
StatisticState#FINISHED
when the port
reaches end-of-data. This statistic aggregates by summation.
Use the utility method aggregateMinOfSumsOfCounts(List)
to compute
slowest writer across a set of ports underlying a composite port. This provides
a simple measure of progress across partitions and across children of the
composite.public static CounterDefinition SORT_ROW_COUNT
StatisticState#FINISHED
when the port
reaches end-of-data. This statistic aggregates by summation.
Use the utility method aggregateMinOfSumsOfCounts(List)
to compute
slowest writer across a set of ports underlying a composite port. This provides
a simple measure of progress across partitions and across children of the
composite.public static final List<CounterDefinition> ROW_COUNTS
public static List<LogicalStatistic> filter(List<LogicalStatistic> stats, StatisticDefinition<?> definition)
stats
- the original statisticsdefinition
- the type of statisticspublic static <T extends StatisticSupplier> List<T> filterSuppliers(List<LogicalStatistic> stats, StatisticDefinition<T> definition)
T
- the type of StatisticSupplierstats
- the original statisticsdefinition
- the type of statisticspublic static List<RuntimeStatistic<?>> statistics(List<LogicalStatistic> logicalStatistics)
LogicalStatistic.statistic()
's from
the specified list.logicalStatistics
- the list of logical statisticspublic static StatisticsMap aggregate(List<LogicalStatistic> details)
StatisticDefinition
. Statistics
are first grouped by definition and then aggregated.details
- the list of statistics to aggregatepublic static StatisticsMap aggregateMinOfSumsOfCounts(List<LogicalStatistic> details)
LogicalStatistic.definition()
and LogicalStatistic.path()
and aggregated by
summation.
They are then grouped by LogicalStatistic.definition()
and aggregated
by applying minimum.
The end result is then a mapping from definition to value such that
there is a single value per-statistic type.details
- the non-aggregated statistics.public static StatisticsMap aggregate(LogicalGraphInstanceView graph)
graph
- the graphCopyright © 2019 Actian Corporation. All rights reserved.