public class TimeseriesPageIterator extends Object implements PageIterator<List<Timeseries>>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
TimeseriesPageIterator(TimeSeriesClient timeseriesClient,
String entity,
String propertySetName,
String from,
String to)
Returns an TimeseriesPageIterator instance initialized with the timeseriesClient
|
TimeseriesPageIterator(TimeSeriesClient timeseriesClient,
String entity,
String propertySetName,
String from,
String to,
Integer pageSize)
Returns an TimeseriesPageIterator instance initialized with the timeseriesClient
|
TimeseriesPageIterator(TimeSeriesClient timeseriesClient,
String entity,
String propertySetName,
String from,
String to,
Integer pageSize,
String select)
Returns an TimeseriesPageIterator instance initialized with the timeseriesClient
|
| Modifier and Type | Method and Description |
|---|---|
List<Timeseries> |
getPage(int pageNumber)
Returns the list of TimeseriesData at a requested page number
|
List<Timeseries> |
next()
Returns the list of TimeseriesData at next page of TimeseriesData
|
List<Timeseries> |
previous()
Returns the list of TimeseriesData at previous page of TimeseriesData
|
public TimeseriesPageIterator(TimeSeriesClient timeseriesClient, String entity, String propertySetName, String from, String to) throws MindsphereClientException
timeseriesClient - timeseriesClient that will be used to make API calls to fetch the timeseries dataentity - Unique identifier of the entitypropertySetName - Name of the propertysetfrom - Beginning of the time range to read (exclusive)to - End of the time range to read (inclusive)MindsphereClientException - thrown if error encountered while creating the instancepublic TimeseriesPageIterator(TimeSeriesClient timeseriesClient, String entity, String propertySetName, String from, String to, Integer pageSize) throws MindsphereClientException
timeseriesClient - timeseriesClient that will be used to make API calls to fetch the timeseries dataentity - Unique identifier of the entitypropertySetName - Name of the propertysetfrom - Beginning of the time range to read (exclusive)to - End of the time range to read (inclusive)pageSize - number of records that should be available in each page. Default is 2000MindsphereClientException - thrown if error encountered while creating the instancepublic TimeseriesPageIterator(TimeSeriesClient timeseriesClient, String entity, String propertySetName, String from, String to, Integer pageSize, String select) throws MindsphereClientException
timeseriesClient - timeseriesClient that will be used to make API calls to fetch the timeseries dataentity - Unique identifier of the entitypropertySetName - Name of the propertysetfrom - Beginning of the time range to read (exclusive)to - End of the time range to read (inclusive)pageSize - number of records that should be available in each page. Default is 2000select - Select fields to returnMindsphereClientException - thrown if error encountered while creating the instancepublic List<Timeseries> next() throws MindsphereException
next in interface PageIterator<List<Timeseries>>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic List<Timeseries> previous() throws MindsphereException
previous in interface PageIterator<List<Timeseries>>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic List<Timeseries> getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<List<Timeseries>>MindsphereException - thrown if an error occurs while attempting to invoke the API