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:TagHistoryQueryInterfaceReturns 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:
getAvailableAggregatesin interfaceTagHistoryQueryInterface
-
browse
- Specified by:
browsein interfaceTagHistoryQueryInterface
-
queryAnnotations
public List<Annotation> queryAnnotations(List<QualifiedPath> paths, Date start, Date end, TypeFilter filter, String queryId) throws Exception - Specified by:
queryAnnotationsin interfaceTagHistoryQueryInterface- Throws:
Exception
-
createQuery
public HistoryQueryExecutor createQuery(List<ColumnQueryDefinition> paths, QueryController controller) - Specified by:
createQueryin interfaceTagHistoryQueryInterface
-
queryDensity
public TimelineSet queryDensity(List<QualifiedPath> paths, Date start, Date end, String queryId) throws Exception - Specified by:
queryDensityin interfaceTagHistoryQueryInterface- Throws:
Exception
-