Class AssociatedHistoryQueryInterface
java.lang.Object
com.inductiveautomation.ignition.gateway.historian.AssociatedHistoryQueryInterface
- All Implemented Interfaces:
TagHistoryQueryInterface
This class provides a TagHistoryQueryInterface for an associated historical provider. This means we know
the provider's name, and a way to transform paths to it, and then we can query through it as necessary.
-
Constructor Summary
ConstructorsConstructorDescriptionAssociatedHistoryQueryInterface
(GatewayContext context, String historyProvider, QualifiedPathTransform transform) -
Method Summary
Modifier and TypeMethodDescriptionbrowse
(QualifiedPath root, BrowseFilter filter) createQuery
(List<ColumnQueryDefinition> paths, QueryController controller) protected Optional<TagHistoryQueryInterface>
get()
Returns a list of aggregate functions that can be used with the server.queryAnnotations
(List<QualifiedPath> paths, Date start, Date end, TypeFilter filter, String queryId) queryDensity
(List<QualifiedPath> paths, Date start, Date end, String queryId)
-
Constructor Details
-
AssociatedHistoryQueryInterface
public AssociatedHistoryQueryInterface(GatewayContext context, String historyProvider, QualifiedPathTransform transform)
-
-
Method Details
-
get
-
getAvailableAggregates
Description copied from interface:TagHistoryQueryInterface
Returns a list of aggregate functions that can be used with the server. Only expected to be valid if the server is enabled and available. Also, should only return null if the aggregates can not be retrieved for some reason. If the server simply does not support any aggregate functions, an empty list should be returned.- Specified by:
getAvailableAggregates
in interfaceTagHistoryQueryInterface
-
browse
- Specified by:
browse
in interfaceTagHistoryQueryInterface
-
queryAnnotations
public List<Annotation> queryAnnotations(List<QualifiedPath> paths, Date start, Date end, TypeFilter filter, String queryId) throws Exception - Specified by:
queryAnnotations
in interfaceTagHistoryQueryInterface
- Throws:
Exception
-
createQuery
public HistoryQueryExecutor createQuery(List<ColumnQueryDefinition> paths, QueryController controller) - Specified by:
createQuery
in interfaceTagHistoryQueryInterface
-
queryDensity
public TimelineSet queryDensity(List<QualifiedPath> paths, Date start, Date end, String queryId) throws Exception - Specified by:
queryDensity
in interfaceTagHistoryQueryInterface
- Throws:
Exception
-