T - the data type of valuespublic interface ValueAccessMethods<T> extends DatabaseMethods
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteValue(UpdatableSeries<T> series,
ch.agent.t2.time.TimeIndex t,
ChronicleUpdatePolicy policy)
Delete the value at the time index, if the policy allows.
|
ch.agent.t2.timeseries.Observation<T> |
getFirst(Series<T> series,
ch.agent.t2.time.TimeIndex time)
Return the observation at the time index or the first following one or null.
|
ch.agent.t2.timeseries.Observation<T> |
getLast(Series<T> series,
ch.agent.t2.time.TimeIndex time)
Return the observation at the time index or the last preceding one or null.
|
ch.agent.t2.time.Range |
getRange(Series<T> series)
Return the range of values of a series.
|
long |
getValues(Series<T> series,
ch.agent.t2.time.Range range,
ch.agent.t2.timeseries.TimeAddressable<T> ts)
Load values into the time series in the range specified.
|
boolean |
updateSeries(UpdatableSeries<T> series,
ch.agent.t2.time.Range range,
ChronicleUpdatePolicy policy)
Reduce the range of the series, if the policy allows.
|
long |
updateValues(UpdatableSeries<T> series,
ch.agent.t2.timeseries.TimeAddressable<T> values,
ChronicleUpdatePolicy policy)
Update the series with the values in the time series, if the policy allows.
|
makeSurrogate, makeSurrogatech.agent.t2.time.Range getRange(Series<T> series) throws T2DBException
series - a seriesT2DBExceptionlong getValues(Series<T> series, ch.agent.t2.time.Range range, ch.agent.t2.timeseries.TimeAddressable<T> ts) throws T2DBException
series - a seriesrange - a range or nullts - a time seriesT2DBExceptionch.agent.t2.timeseries.Observation<T> getFirst(Series<T> series, ch.agent.t2.time.TimeIndex time) throws T2DBException
series - a seriestime - a time indexT2DBExceptionch.agent.t2.timeseries.Observation<T> getLast(Series<T> series, ch.agent.t2.time.TimeIndex time) throws T2DBException
series - a seriestime - a time indexT2DBExceptionboolean deleteValue(UpdatableSeries<T> series, ch.agent.t2.time.TimeIndex t, ChronicleUpdatePolicy policy) throws T2DBException
series - a seriest - a time indexpolicy - a policyT2DBExceptionboolean updateSeries(UpdatableSeries<T> series, ch.agent.t2.time.Range range, ChronicleUpdatePolicy policy) throws T2DBException
series - a seriesrange - a rangepolicy - a policyT2DBExceptionlong updateValues(UpdatableSeries<T> series, ch.agent.t2.timeseries.TimeAddressable<T> values, ChronicleUpdatePolicy policy) throws T2DBException
series - a seriesvalues - a time series of valuespolicy - a policyT2DBExceptionCopyright © 2017. All rights reserved.