Class AggregatedQueryOptions
java.lang.Object
com.inductiveautomation.historian.common.model.options.AbstractQueryOptions<K,DataPointType>
com.inductiveautomation.historian.common.model.options.DataPointQueryOptions<AggregatedQueryKey>
com.inductiveautomation.historian.common.model.options.AggregatedQueryOptions
- All Implemented Interfaces:
QueryOptions<AggregatedQueryKey,
DataPointType>
Represents the options for querying aggregated data points.
This class extends DataPointQueryOptions
and provides additional
functionality specific to aggregated queries, such as defining a time window
and calculating the number of windows within a given time range.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for constructing instances ofAggregatedQueryOptions
.Nested classes/interfaces inherited from class com.inductiveautomation.historian.common.model.options.DataPointQueryOptions
DataPointQueryOptions.DataQueryBuilder<K extends DataPointQueryKey,
B extends DataPointQueryOptions.DataQueryBuilder<K, B>> Nested classes/interfaces inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions
AbstractQueryOptions.BaseBuilder<K extends QueryKey<T>,
T extends TemporalPointType & QueryablePointType<T>, B extends AbstractQueryOptions.BaseBuilder<K, T, B>> -
Field Summary
Fields inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions
extendedProperties, queryKeys, returnSize, timeRange
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newAggregatedQueryOptions.Builder
instance for constructingAggregatedQueryOptions
.builder
(AggregatedQueryOptions options) Creates a newAggregatedQueryOptions.Builder
instance initialized with the values of an existingAggregatedQueryOptions
.Retrieves the type of the data point.Retrieves the return size for the query.Retrieves the time window used for the aggregation.toString()
Returns a string representation of the aggregated query options.Methods inherited from class com.inductiveautomation.historian.common.model.options.DataPointQueryOptions
areObservationsExcluded, getQualityLevelFilter
Methods inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions
getExtendedProperties, getExtendedPropertyValue, getQueryKeys, getTimeRange
-
Method Details
-
builder
Creates a newAggregatedQueryOptions.Builder
instance for constructingAggregatedQueryOptions
.- Returns:
- A new
AggregatedQueryOptions.Builder
.
-
builder
Creates a newAggregatedQueryOptions.Builder
instance initialized with the values of an existingAggregatedQueryOptions
.- Parameters:
options
- The existingAggregatedQueryOptions
to copy.- Returns:
- A new
AggregatedQueryOptions.Builder
initialized with the values of the given options.
-
getTimeWindow
Retrieves the time window used for the aggregation.- Returns:
- The
TimeWindow
.
-
getReturnSize
Retrieves the return size for the query.Overrides the base implementation to return the calculated window count instead of the configured return size.
- Specified by:
getReturnSize
in interfaceQueryOptions<AggregatedQueryKey,
DataPointType> - Overrides:
getReturnSize
in classAbstractQueryOptions<AggregatedQueryKey,
DataPointType> - Returns:
- An
Optional
containing the window count.
-
getPointType
Retrieves the type of the data point.- Returns:
- The
DataPointType
, which is alwaysStandardDataPointType.AGGREGATED
.
-
toString
Returns a string representation of the aggregated query options.- Overrides:
toString
in classDataPointQueryOptions<AggregatedQueryKey>
- Returns:
- A string representation of the object.
-