Class BasicTagHistoryQueryParams
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.history.BasicTagHistoryQueryParams
- All Implemented Interfaces:
TagHistoryQueryParams
,Serializable
- Direct Known Subclasses:
RealtimeTagHistoryQueryParams
public class BasicTagHistoryQueryParams
extends Object
implements TagHistoryQueryParams, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicTagHistoryQueryParams
(TagHistoryQueryParams base, List<? extends Path> newPaths) BasicTagHistoryQueryParams
(List<? extends Path> paths, Date startDate, Date endDate, int returnSize, Aggregate aggregationMode, ReturnFormat returnFormat, List<String> aliases, List<Aggregate> columnAggregationModes) This constructor is for non-inteval based returns: on change, natural, or fixed.BasicTagHistoryQueryParams
(List<? extends Path> paths, Date startDate, Date endDate, int intervalLength, TimeUnits intervalUnits, Aggregate aggregationMode, ReturnFormat returnFormat, List<String> aliases, List<Aggregate> columnAggregationModes) This constructor is for interval based returns. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies how aggregation should occur.If not null, must be a 1-to-1 list corresponding to tag paths.If not null, must be 1-to-1 list corresponding to tag paths, specifying the aggregation mode for the column.The ending range of the query.getPaths()
The paths to query.Optional flags that provide additional query settings.Specifies the desired format of the resulting dataset.int
How many results are desired.The starting range of the query.int
hashCode()
void
setAggregationMode
(Aggregate aggregationMode) void
setAliases
(List<String> aliases) void
setColumnAggregationModes
(List<Aggregate> modes) void
setEndDate
(Date endDate) void
void
setQueryFlags
(Flags queryFlags) void
setReturnFormat
(ReturnFormat returnFormat) void
setReturnSize
(int returnSize) void
setStartDate
(Date startDate) toString()
-
Constructor Details
-
BasicTagHistoryQueryParams
public BasicTagHistoryQueryParams() -
BasicTagHistoryQueryParams
-
BasicTagHistoryQueryParams
-
BasicTagHistoryQueryParams
public BasicTagHistoryQueryParams(List<? extends Path> paths, Date startDate, Date endDate, int returnSize, Aggregate aggregationMode, ReturnFormat returnFormat, List<String> aliases, List<Aggregate> columnAggregationModes) This constructor is for non-inteval based returns: on change, natural, or fixed. -
BasicTagHistoryQueryParams
public BasicTagHistoryQueryParams(List<? extends Path> paths, Date startDate, Date endDate, int intervalLength, TimeUnits intervalUnits, Aggregate aggregationMode, ReturnFormat returnFormat, List<String> aliases, List<Aggregate> columnAggregationModes) This constructor is for interval based returns. It will calculate the appropriate return size, and adjust the end date to be a perfect multiple.
-
-
Method Details
-
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
-
setPaths
-
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
-
setAliases
-
getStartDate
Description copied from interface:TagHistoryQueryParams
The starting range of the query.- Specified by:
getStartDate
in interfaceTagHistoryQueryParams
-
setStartDate
-
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
-
setEndDate
-
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
-
setReturnSize
public void setReturnSize(int returnSize) -
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
-
setAggregationMode
-
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
-
setReturnFormat
-
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
-
setQueryFlags
-
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
-
setColumnAggregationModes
-
equals
-
hashCode
public int hashCode() -
toString
-