dsg.smart
Interface Timeseries

All Known Subinterfaces:
IntTimeseries

public interface Timeseries

A client-side handle to a timeseries inside the Smart Database. Manipulation of this object on the client results in data being stored and retrieved in database.

Timeseries may be either regular --- defined by a delta parameter indiciating the period --- or irregular --- in which every measurement point comes with its own timestamp.


Method Summary
 java.util.Date getDate(int n)
          Gets date of the nth point
 int getDelta()
          Number of milliseconds between measurements; zero if irregular timeseries.
 java.util.Date getFirst()
          Timestamp of first datapoint in timeseries
 java.util.Date getLast()
          Timestamp of last datapoint in timesries
 int getNumPoints()
          # of datapoints in timeseries
 TimeseriesSpec getSpec()
          Description of what this timeseries records
 

Method Detail

getSpec

public TimeseriesSpec getSpec()
Description of what this timeseries records


getFirst

public java.util.Date getFirst()
Timestamp of first datapoint in timeseries


getLast

public java.util.Date getLast()
Timestamp of last datapoint in timesries


getNumPoints

public int getNumPoints()
# of datapoints in timeseries


getDelta

public int getDelta()
Number of milliseconds between measurements; zero if irregular timeseries.


getDate

public java.util.Date getDate(int n)
Gets date of the nth point