Class SimpleTimeseriesQuery
java.lang.Object
de.iip_ecosphere.platform.connectors.events.SimpleTimeseriesQuery
- All Implemented Interfaces:
ConnectorTriggerQuery
Represents a simple timeseries query given by start/end time assuming that the connector knows
from where to get the data.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTime value interpretations. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate SimpleTimeseriesQuery.TimeKindprivate intprivate SimpleTimeseriesQuery.TimeKind -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind) Creates a simple time series query with start time point and unspecified end.SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind) Creates a simple time series query.SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind, int delay) Creates a simple time series query. -
Method Summary
-
Field Details
-
start
private int start -
startKind
-
end
private int end -
endKind
-
delay
private int delay
-
-
Constructor Details
-
SimpleTimeseriesQuery
Creates a simple time series query with start time point and unspecified end.- Parameters:
start- the start timestartKind- the start kind as interpretation ofstart
-
SimpleTimeseriesQuery
public SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind) Creates a simple time series query.- Parameters:
start- the start timestartKind- the start kind as interpretation ofstartend- the end timeendKind- the end kind as interpretation ofstart
-
SimpleTimeseriesQuery
public SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind, int delay) Creates a simple time series query.- Parameters:
start- the start timestartKind- the start kind as interpretation ofstartend- the end timeendKind- the end kind as interpretation ofstartdelay- the fixed absolute delay of a result timeseries in ms, 0 for none
-
-
Method Details
-
getStart
public int getStart()Returns the start time.- Returns:
- the start time, interpretation see
getStartKind()
-
getStartKind
Returns the interpretation of the start time.- Returns:
- the the start kind
-
getEnd
public int getEnd()Returns the end time.- Returns:
- the end time, interpretation see
getEndKind()
-
getEndKind
Returns the interpretation of the end time.- Returns:
- the end kind
-
delay
public int delay()Description copied from interface:ConnectorTriggerQueryDelay for multiple-data streamed result.- Specified by:
delayin interfaceConnectorTriggerQuery- Returns:
- delay between two result data points in ms, none/existing timing if not positive
-