public class RawIndexQuery extends SecondaryIndexQuery<BinaryValue,RawIndexQuery.Response,RawIndexQuery>
A RawIndexQuery is used when you are using raw bytes for your 2i keys. The parameters are provided as BinaryValue objects.
byte[] bytes = new byte[] { 1,2,3,4};
BinaryValue key = BinaryValue.create(bytes);
Namespace ns = new Namespace("my_type", "my_bucket");
RawIndexQuery q = new RawIndexQuery.Builder(ns, "my_index", Type._BIN, key).build();
RawIndexquery.Response resp = client.execute(q);
Modifier and Type | Class and Description |
---|---|
static class |
RawIndexQuery.Builder
Builder used to construct a RawIndexQuery command.
|
protected class |
RawIndexQuery.RawQueryFuture |
static class |
RawIndexQuery.Response |
SecondaryIndexQuery.IndexConverter<T>, SecondaryIndexQuery.Init<S,T extends SecondaryIndexQuery.Init<S,T>>, SecondaryIndexQuery.Type
continuation, end, indexName, match, maxResults, namespace, paginationSort, returnTerms, start, termFilter, timeout
Modifier | Constructor and Description |
---|---|
protected |
RawIndexQuery(SecondaryIndexQuery.Init<BinaryValue,?> builder) |
Modifier and Type | Method and Description |
---|---|
protected RiakFuture<RawIndexQuery.Response,RawIndexQuery> |
executeAsync(RiakCluster cluster) |
protected SecondaryIndexQuery.IndexConverter<BinaryValue> |
getConverter() |
createCoreQuery, executeCoreAsync, getContinuation, getIndexName, getMatchValue, getMaxResults, getNamespace, getPaginationSort, getRangeEnd, getRangeStart, getReturnKeyAndIndex, getTermFilter, getTimeout
execute
protected RawIndexQuery(SecondaryIndexQuery.Init<BinaryValue,?> builder)
protected SecondaryIndexQuery.IndexConverter<BinaryValue> getConverter()
getConverter
in class SecondaryIndexQuery<BinaryValue,RawIndexQuery.Response,RawIndexQuery>
protected RiakFuture<RawIndexQuery.Response,RawIndexQuery> executeAsync(RiakCluster cluster)
executeAsync
in class RiakCommand<RawIndexQuery.Response,RawIndexQuery>
Copyright © 2014. All rights reserved.