Class IngestionJobsPager
- java.lang.Object
-
- com.ibm.cloud.watsonxdata.watsonx_data.v2.model.IngestionJobsPager
-
public class IngestionJobsPager extends java.lang.Object
IngestionJobsPager can be used to simplify the use of the "listIngestionJobs" method.
-
-
Constructor Summary
Constructors Constructor Description IngestionJobsPager(WatsonxData client, ListIngestionJobsOptions options)
Constructs a new IngestionJobsPager instance with the specified client and options model instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IngestionJob>
getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.java.util.List<IngestionJob>
getNext()
Returns the next page of results.boolean
hasNext()
Returns true if there are more results to be retrieved.
-
-
-
Constructor Detail
-
IngestionJobsPager
public IngestionJobsPager(WatsonxData client, ListIngestionJobsOptions options)
Constructs a new IngestionJobsPager instance with the specified client and options model instance.- Parameters:
client
- the WatsonxData instance to be used to invoke the "listIngestionJobs" methodoptions
- the ListIngestionJobsOptions instance to be used to invoke the "listIngestionJobs" method
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more results to be retrieved.- Returns:
- boolean
-
getNext
public java.util.List<IngestionJob> getNext()
Returns the next page of results.- Returns:
- a List<IngestionJob> that contains the next page of results
-
getAll
public java.util.List<IngestionJob> getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.- Returns:
- a List<IngestionJob> containing all results returned by the "listIngestionJobs" method
-
-