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()
StreamingOperation
getAll
in interface StreamingOperation<IndexEntry>
public void cancel()
StreamingOperation
cancel
in interface StreamingOperation<IndexEntry>
public boolean hasContinuation()
StreamingOperation
hasContinuation
in interface StreamingOperation<IndexEntry>
public String getContinuation()
StreamingOperation
getContinuation
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 © 2013. All Rights Reserved.