Class TagHistoryCache.TimeAlteredParams
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.history.cache.TagHistoryCache.TimeAlteredParams
-
- All Implemented Interfaces:
TagHistoryQueryParams
- Enclosing class:
- TagHistoryCache
protected static class TagHistoryCache.TimeAlteredParams extends java.lang.Object implements TagHistoryQueryParams
Parameters with a different time range, and a return size adjusted accordingly.
-
-
Constructor Summary
Constructors Constructor Description TimeAlteredParams(TagHistoryQueryParams core, long start, long end, java.lang.Double windowSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregate
getAggregationMode()
Specifies how aggregation should occur.java.util.List<java.lang.String>
getAliases()
If not null, must be a 1-to-1 list corresponding to tag paths.java.util.List<Aggregate>
getColumnAggregationModes()
If not null, must be 1-to-1 list corresponding to tag paths, specifying the aggregation mode for the column.java.util.Date
getEndDate()
The ending range of the query.java.util.List<? extends Path>
getPaths()
The paths to query.Flags
getQueryFlags()
Optional flags that provide additional query settings.ReturnFormat
getReturnFormat()
Specifies the desired format of the resulting dataset.int
getReturnSize()
How many results are desired.java.util.Date
getStartDate()
The starting range of the query.
-
-
-
Constructor Detail
-
TimeAlteredParams
public TimeAlteredParams(TagHistoryQueryParams core, long start, long end, java.lang.Double windowSize)
-
-
Method Detail
-
getPaths
public java.util.List<? extends Path> getPaths()
Description copied from interface:TagHistoryQueryParams
The paths to query. The "source" field of the tag path is the historical provider that contains the tag. Tags from multiple providers may be requested at the same time.- Specified by:
getPaths
in interfaceTagHistoryQueryParams
-
getAliases
public java.util.List<java.lang.String> getAliases()
Description copied from interface:TagHistoryQueryParams
If not null, must be a 1-to-1 list corresponding to tag paths. Specifies names that will be used when representing the tag instead of the tag path. In other words, these are the values that will be used for column names in Wide return mode, or "Tag names" in tall return mode.- Specified by:
getAliases
in interfaceTagHistoryQueryParams
-
getStartDate
public java.util.Date getStartDate()
Description copied from interface:TagHistoryQueryParams
The starting range of the query.- Specified by:
getStartDate
in interfaceTagHistoryQueryParams
-
getEndDate
public java.util.Date getEndDate()
Description copied from interface:TagHistoryQueryParams
The ending range of the query. If null, the query will be considered "realtime", and will cover up to the current time.- Specified by:
getEndDate
in interfaceTagHistoryQueryParams
-
getReturnSize
public int getReturnSize()
Description copied from interface:TagHistoryQueryParams
How many results are desired. -1 means "raw", 0 means "natural", and positive numbers are fixed rows. The definitions of "-1" and "0" may vary according to provider.- Specified by:
getReturnSize
in interfaceTagHistoryQueryParams
-
getAggregationMode
public Aggregate getAggregationMode()
Description copied from interface:TagHistoryQueryParams
Specifies how aggregation should occur. Aggregation is how data is handled when multiple values exist for a certain window of time. The window is defined as the time range divided by the number of results, and therefore this setting doesn't apply when using raw result mode.- Specified by:
getAggregationMode
in interfaceTagHistoryQueryParams
-
getColumnAggregationModes
public java.util.List<Aggregate> getColumnAggregationModes()
Description copied from interface:TagHistoryQueryParams
If not null, must be 1-to-1 list corresponding to tag paths, specifying the aggregation mode for the column. If the list is null, or a particular entry is null, the general aggregation mode will be used instead.- Specified by:
getColumnAggregationModes
in interfaceTagHistoryQueryParams
-
getReturnFormat
public ReturnFormat getReturnFormat()
Description copied from interface:TagHistoryQueryParams
Specifies the desired format of the resulting dataset. "Wide" results provide a column per row, "tall" instead has columns for path, time, value, and quality.- Specified by:
getReturnFormat
in interfaceTagHistoryQueryParams
-
getQueryFlags
public Flags getQueryFlags()
Description copied from interface:TagHistoryQueryParams
Optional flags that provide additional query settings. Tag provider dependent, though some reserved flags are defined inTagHistoryQueryFlags
- Specified by:
getQueryFlags
in interfaceTagHistoryQueryParams
-
-