public class SearchOperation extends FutureOperation<SearchOperation.Response,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<RiakSearchPB.RpbSearchQueryResp> rawResponse) |
protected RiakMessage |
createChannelMessage() |
protected RiakSearchPB.RpbSearchQueryResp |
decode(RiakMessage rawMessage) |
BinaryValue |
getQueryInfo()
Returns information related to the operation performed.
|
addListener, await, await, cancel, cause, channelMessage, checkAndGetSingleResponse, done, get, get, getNow, isCancelled, isDone, isSuccess, processBatchMessage, processMessage, removeListener, setComplete, setResponse
protected SearchOperation.Response convert(List<RiakSearchPB.RpbSearchQueryResp> rawResponse)
convert
in class FutureOperation<SearchOperation.Response,RiakSearchPB.RpbSearchQueryResp,BinaryValue>
protected RiakMessage createChannelMessage()
createChannelMessage
in class FutureOperation<SearchOperation.Response,RiakSearchPB.RpbSearchQueryResp,BinaryValue>
protected RiakSearchPB.RpbSearchQueryResp decode(RiakMessage rawMessage)
decode
in class FutureOperation<SearchOperation.Response,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,RiakSearchPB.RpbSearchQueryResp,BinaryValue>
Copyright © 2016. All rights reserved.