T
- The type contained in the resposne.public static class SecondaryIndexQuery.Response<T,E extends SecondaryIndexQuery.Response.Entry<T>> extends StreamableRiakCommand.StreamableResponse<E,SecondaryIndexQueryOperation.Response.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
SecondaryIndexQuery.Response.Entry<T> |
Modifier and Type | Field and Description |
---|---|
protected SecondaryIndexQuery.IndexConverter<T> |
converter |
protected SecondaryIndexQueryOperation.Response |
coreResponse |
protected Namespace |
queryLocation |
chunkedResponseIterator
Modifier | Constructor and Description |
---|---|
protected |
Response(Namespace queryLocation,
SecondaryIndexQuery.IndexConverter<T> converter,
int timeout,
StreamingRiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> coreFuture) |
protected |
Response(Namespace queryLocation,
SecondaryIndexQueryOperation.Response coreResponse,
SecondaryIndexQuery.IndexConverter<T> converter) |
Modifier and Type | Method and Description |
---|---|
protected E |
createEntry(Location location,
SecondaryIndexQueryOperation.Response.Entry coreEntry,
SecondaryIndexQuery.IndexConverter<T> converter) |
protected E |
createEntry(Namespace namespace,
SecondaryIndexQueryOperation.Response.Entry coreEntry,
SecondaryIndexQuery.IndexConverter<T> converter) |
BinaryValue |
getContinuation()
Get the continuation from this response.
|
List<E> |
getEntries()
Get a list of the result entries for this response.
|
boolean |
hasContinuation()
Check if this response has a continuation.
|
boolean |
hasEntries()
Check is this response contains any entries.
|
Iterator<E> |
iterator()
Get an iterator over the result data.
|
isStreaming
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected final SecondaryIndexQuery.IndexConverter<T> converter
protected final SecondaryIndexQueryOperation.Response coreResponse
protected final Namespace queryLocation
protected Response(Namespace queryLocation, SecondaryIndexQuery.IndexConverter<T> converter, int timeout, StreamingRiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> coreFuture)
protected Response(Namespace queryLocation, SecondaryIndexQueryOperation.Response coreResponse, SecondaryIndexQuery.IndexConverter<T> converter)
public Iterator<E> iterator()
Thread.isInterrupted()
in environments where thread interrupts must be obeyed.iterator
in interface Iterable<E extends SecondaryIndexQuery.Response.Entry<T>>
iterator
in class StreamableRiakCommand.StreamableResponse<E extends SecondaryIndexQuery.Response.Entry<T>,SecondaryIndexQueryOperation.Response.Entry>
public boolean hasContinuation()
public BinaryValue getContinuation()
public boolean hasEntries()
Thread.isInterrupted()
in environments where thread interrupts must be obeyed.public final List<E> getEntries()
IllegalStateException
- when called while using the streaming API.protected E createEntry(Location location, SecondaryIndexQueryOperation.Response.Entry coreEntry, SecondaryIndexQuery.IndexConverter<T> converter)
protected final E createEntry(Namespace namespace, SecondaryIndexQueryOperation.Response.Entry coreEntry, SecondaryIndexQuery.IndexConverter<T> converter)
Copyright © 2016. All rights reserved.