public class SearchOperation extends FutureOperation<SearchOperation.Response,com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp,BinaryValue>
Due to the nature of both Riak Search and Yokozuna, all Strings must be UTF-8 encoded.
This operation will fail if search is not enabled or the index does not exist.
Modifier and Type | Class and Description |
---|---|
static class |
SearchOperation.Builder |
static class |
SearchOperation.Response |
Modifier and Type | Method and Description |
---|---|
protected SearchOperation.Response |
convert(List<com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp> rawResponse) |
protected RiakMessage |
createChannelMessage() |
protected com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp |
decode(RiakMessage rawMessage) |
BinaryValue |
getQueryInfo()
Returns information related to the operation performed.
|
addListener, await, await, cancel, cause, channelMessage, done, get, get, getNow, isCancelled, isDone, isSuccess, removeListener, setResponse
protected SearchOperation.Response convert(List<com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp> rawResponse)
convert
in class FutureOperation<SearchOperation.Response,com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp,BinaryValue>
protected RiakMessage createChannelMessage()
createChannelMessage
in class FutureOperation<SearchOperation.Response,com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp,BinaryValue>
protected com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp decode(RiakMessage rawMessage)
decode
in class FutureOperation<SearchOperation.Response,com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp,BinaryValue>
public BinaryValue getQueryInfo()
RiakFuture
Useful in async operations when you want to know what operation this future refers to.
getQueryInfo
in interface RiakFuture<SearchOperation.Response,BinaryValue>
getQueryInfo
in class FutureOperation<SearchOperation.Response,com.basho.riak.protobuf.RiakSearchPB.RpbSearchQueryResp,BinaryValue>
Copyright © 2014. All rights reserved.