Package com.cognite.client.stream
Interface Source<T>
-
- Type Parameters:
T- The type of the resulting object read from CDF.
public interface Source<T>An interface for API endpoints that supports iterating over a results stream based on aRequestspecification.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<List<T>>list(Request requestParameters)Returns allTobjects that matches the filters set in theRequest.
-
-
-
Method Detail
-
list
Iterator<List<T>> list(Request requestParameters)
Returns allTobjects that matches the filters set in theRequest. The results are paged through / iterated over via anIterator--the entire results set is not buffered in memory, but streamed in "pages" from the Cognite api. If you need to buffer the entire results set, then you have to stream these results into your own data structure.- Parameters:
requestParameters- the filters to use for retrieving the results objects- Returns:
- an
Iteratorto page through the results set.
-
-