S
- the type being used for the query.public abstract class SecondaryIndexQuery<T,S,U> extends RiakCommand<S,U>
Serves as a base class for all 2i queries.
Modifier and Type | Class and Description |
---|---|
protected static interface |
SecondaryIndexQuery.IndexConverter<T> |
static class |
SecondaryIndexQuery.Init<S,T extends SecondaryIndexQuery.Init<S,T>> |
static class |
SecondaryIndexQuery.Response<T>
Base class for all 2i responses.
|
static class |
SecondaryIndexQuery.Type |
Modifier and Type | Field and Description |
---|---|
protected BinaryValue |
continuation |
protected T |
end |
protected String |
indexName |
protected T |
match |
protected Integer |
maxResults |
protected Namespace |
namespace |
protected boolean |
paginationSort |
protected boolean |
returnTerms |
protected T |
start |
protected String |
termFilter |
protected Integer |
timeout |
Modifier | Constructor and Description |
---|---|
protected |
SecondaryIndexQuery(SecondaryIndexQuery.Init<T,?> builder) |
Modifier and Type | Method and Description |
---|---|
protected SecondaryIndexQueryOperation.Query |
createCoreQuery() |
protected RiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> |
executeCoreAsync(RiakCluster cluster) |
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.
|
execute, executeAsync
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 SecondaryIndexQuery(SecondaryIndexQuery.Init<T,?> builder)
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 final SecondaryIndexQueryOperation.Query createCoreQuery()
protected RiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query> executeCoreAsync(RiakCluster cluster)
Copyright © 2014. All rights reserved.