Package io.stargate.sdk.data.domain
Interface ResultIterable<DOC>
- Type Parameters:
DOC- parameterized type
- All Superinterfaces:
Iterable<DOC>
Building an Iterable to interact with Api.
-
Method Summary
Modifier and TypeMethodDescriptionall()Return all elements.batchSize(int batchSize) Enable to change the Batch Size.booleanReturn the first element.default <U> ResultIterable<U> Map the result to another type.default DOCone()Return the first element.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
batchSize
Enable to change the Batch Size.- Parameters:
batchSize- batch size- Returns:
- current instance
-
one
Return the first element.- Returns:
- first element
-
all
Return all elements.- Returns:
- all elements
-
isFullyFetched
boolean isFullyFetched()Return the first element.- Returns:
- first element
-
map
Map the result to another type.- Type Parameters:
U- new type- Parameters:
mapper- mapper- Returns:
- new instance
-