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 classBuilder 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.Builderinstance for constructingAggregatedQueryOptions.builder(AggregatedQueryOptions options) Creates a newAggregatedQueryOptions.Builderinstance 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, getQualityLevelFilterMethods inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions
getExtendedProperties, getExtendedPropertyValue, getQueryKeys, getTimeRange
-
Method Details
-
builder
Creates a newAggregatedQueryOptions.Builderinstance for constructingAggregatedQueryOptions.- Returns:
- A new
AggregatedQueryOptions.Builder.
-
builder
Creates a newAggregatedQueryOptions.Builderinstance initialized with the values of an existingAggregatedQueryOptions.- Parameters:
options- The existingAggregatedQueryOptionsto copy.- Returns:
- A new
AggregatedQueryOptions.Builderinitialized 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:
getReturnSizein interfaceQueryOptions<AggregatedQueryKey,DataPointType> - Overrides:
getReturnSizein classAbstractQueryOptions<AggregatedQueryKey,DataPointType> - Returns:
- An
Optionalcontaining 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:
toStringin classDataPointQueryOptions<AggregatedQueryKey>- Returns:
- A string representation of the object.
-