public class IndexSource extends Object implements StreamingOperation<IndexEntry>
| Constructor and Description |
|---|
IndexSource(IndexResponseV2 indexResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the operation and cleans up the underlying network connection
|
List<IndexEntry> |
getAll()
Retrieve all elements from the operation and return them in a List
|
String |
getContinuation()
Get the continuation value
|
boolean |
hasContinuation()
If this is a paginated operation, a "continuation" value may be available
|
boolean |
hasNext() |
Iterator<IndexEntry> |
iterator() |
IndexEntry |
next() |
void |
remove() |
public IndexSource(IndexResponseV2 indexResponse)
public List<IndexEntry> getAll()
StreamingOperationgetAll in interface StreamingOperation<IndexEntry>public void cancel()
StreamingOperationcancel in interface StreamingOperation<IndexEntry>public boolean hasContinuation()
StreamingOperationhasContinuation in interface StreamingOperation<IndexEntry>public String getContinuation()
StreamingOperationgetContinuation in interface StreamingOperation<IndexEntry>public Iterator<IndexEntry> iterator()
iterator in interface Iterable<IndexEntry>public boolean hasNext()
hasNext in interface Iterator<IndexEntry>public IndexEntry next()
next in interface Iterator<IndexEntry>public void remove()
remove in interface Iterator<IndexEntry>Copyright © 2014. All Rights Reserved.