S
- the type being used for the query.public abstract class SecondaryIndexQuery<T,S extends SecondaryIndexQuery.Response<T,?>,U extends SecondaryIndexQuery> extends StreamableRiakCommand<S,U,SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
Serves as a base class for all 2i queries.
Modifier and Type | Class and Description |
---|---|
static interface |
SecondaryIndexQuery.GatherableResponseCreator<T,R extends SecondaryIndexQuery.Response<T,?>> |
protected static interface |
SecondaryIndexQuery.IndexConverter<T> |
static class |
SecondaryIndexQuery.Init<S,T extends SecondaryIndexQuery.Init<S,T>> |
static class |
SecondaryIndexQuery.Response<T,E extends SecondaryIndexQuery.Response.Entry<T>>
Base class for all 2i responses.
|
static interface |
SecondaryIndexQuery.StreamableResponseCreator<T,R extends SecondaryIndexQuery.Response<T,?>> |
static class |
SecondaryIndexQuery.Type |
StreamableRiakCommand.StreamableResponse<T,S>, StreamableRiakCommand.StreamableRiakCommandWithSameInfo<R extends StreamableRiakCommand.StreamableResponse,I,CoreR>
GenericRiakCommand.GenericRiakCommandWithSameInfo<R,I,CoreR>
Modifier and Type | Field and Description |
---|---|
protected BinaryValue |
continuation |
protected byte[] |
coverageContext |
protected T |
end |
protected String |
indexName |
protected T |
match |
protected Integer |
maxResults |
protected Namespace |
namespace |
protected boolean |
paginationSort |
protected boolean |
returnBody |
protected boolean |
returnTerms |
protected T |
start |
protected String |
termFilter |
protected Integer |
timeout |
Modifier | Constructor and Description |
---|---|
protected |
SecondaryIndexQuery(SecondaryIndexQuery.Init<T,?> builder,
SecondaryIndexQuery.StreamableResponseCreator<T,S> streamableCreator,
SecondaryIndexQuery.GatherableResponseCreator<T,S> gatherableResponseCreator) |
Modifier and Type | Method and Description |
---|---|
protected SecondaryIndexQueryOperation |
buildCoreOperation(boolean streamResults) |
protected U |
convertInfo(SecondaryIndexQueryOperation.Query coreInfo) |
protected S |
convertResponse(FutureOperation<SecondaryIndexQueryOperation.Response,?,SecondaryIndexQueryOperation.Query> request,
SecondaryIndexQueryOperation.Response coreResponse) |
protected S |
createResponse(int timeout,
StreamingRiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> coreFuture) |
boolean |
equals(Object o) |
BinaryValue |
getContinuation()
Get the continuation supplied for this query.
|
protected abstract SecondaryIndexQuery.IndexConverter<T> |
getConverter() |
String |
getIndexName()
Get the full index name for this query.
|
T |
getMatchValue()
Get the match value supplied for this query.
|
Integer |
getMaxResults()
Get the max number of results for this query.
|
Namespace |
getNamespace()
Get the location for this query.
|
boolean |
getPaginationSort()
Get the pagination sort setting.
|
T |
getRangeEnd()
Get the range end value for this query.
|
T |
getRangeStart()
Get the range start value for this query.
|
boolean |
getReturnKeyAndIndex()
Get whether this query will return both index keys and object keys.
|
String |
getTermFilter()
Get the regex term filter for this query.
|
Integer |
getTimeout()
Get the timeout value for this query.
|
int |
hashCode() |
String |
toString() |
buildCoreOperation, executeAsyncStreaming
executeAsync
execute, execute
protected final Namespace namespace
protected final String indexName
protected final BinaryValue continuation
protected final T match
protected final T start
protected final T end
protected final Integer maxResults
protected final boolean returnTerms
protected final boolean paginationSort
protected final String termFilter
protected Integer timeout
protected final byte[] coverageContext
protected final boolean returnBody
protected SecondaryIndexQuery(SecondaryIndexQuery.Init<T,?> builder, SecondaryIndexQuery.StreamableResponseCreator<T,S> streamableCreator, SecondaryIndexQuery.GatherableResponseCreator<T,S> gatherableResponseCreator)
protected abstract SecondaryIndexQuery.IndexConverter<T> getConverter()
public Namespace getNamespace()
public String getIndexName()
public T getMatchValue()
public T getRangeStart()
public T getRangeEnd()
public Integer getMaxResults()
public boolean getReturnKeyAndIndex()
public boolean getPaginationSort()
public String getTermFilter()
public BinaryValue getContinuation()
public Integer getTimeout()
protected SecondaryIndexQueryOperation buildCoreOperation(boolean streamResults)
buildCoreOperation
in class StreamableRiakCommand<S extends SecondaryIndexQuery.Response<T,?>,U extends SecondaryIndexQuery,SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
protected S convertResponse(FutureOperation<SecondaryIndexQueryOperation.Response,?,SecondaryIndexQueryOperation.Query> request, SecondaryIndexQueryOperation.Response coreResponse)
convertResponse
in class GenericRiakCommand<S extends SecondaryIndexQuery.Response<T,?>,U extends SecondaryIndexQuery,SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
protected U convertInfo(SecondaryIndexQueryOperation.Query coreInfo)
convertInfo
in class GenericRiakCommand<S extends SecondaryIndexQuery.Response<T,?>,U extends SecondaryIndexQuery,SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
protected S createResponse(int timeout, StreamingRiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> coreFuture)
createResponse
in class StreamableRiakCommand<S extends SecondaryIndexQuery.Response<T,?>,U extends SecondaryIndexQuery,SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
Copyright © 2016. All rights reserved.