public class SecondaryIndexQueryOperation extends FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
Modifier and Type | Class and Description |
---|---|
static class |
SecondaryIndexQueryOperation.Builder
Builder that constructs a QueryOperation.
|
static class |
SecondaryIndexQueryOperation.Query |
static class |
SecondaryIndexQueryOperation.Response |
Modifier and Type | Method and Description |
---|---|
protected SecondaryIndexQueryOperation.Response |
convert(List<com.basho.riak.protobuf.RiakKvPB.RpbIndexResp> rawResponse) |
protected RiakMessage |
createChannelMessage() |
protected com.basho.riak.protobuf.RiakKvPB.RpbIndexResp |
decode(RiakMessage rawMessage) |
protected boolean |
done(com.basho.riak.protobuf.RiakKvPB.RpbIndexResp msg)
Detect when the streaming operation is finished
|
SecondaryIndexQueryOperation.Query |
getQueryInfo()
Returns information related to the operation performed.
|
addListener, await, await, cancel, cause, channelMessage, get, get, getNow, isCancelled, isDone, isSuccess, removeListener, setResponse
protected SecondaryIndexQueryOperation.Response convert(List<com.basho.riak.protobuf.RiakKvPB.RpbIndexResp> rawResponse)
convert
in class FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
protected RiakMessage createChannelMessage()
createChannelMessage
in class FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
protected com.basho.riak.protobuf.RiakKvPB.RpbIndexResp decode(RiakMessage rawMessage)
decode
in class FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
protected boolean done(com.basho.riak.protobuf.RiakKvPB.RpbIndexResp msg)
FutureOperation
done
in class FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
msg
- raw messagepublic SecondaryIndexQueryOperation.Query getQueryInfo()
RiakFuture
Useful in async operations when you want to know what operation this future refers to.
getQueryInfo
in interface RiakFuture<SecondaryIndexQueryOperation.Response,SecondaryIndexQueryOperation.Query>
getQueryInfo
in class FutureOperation<SecondaryIndexQueryOperation.Response,com.basho.riak.protobuf.RiakKvPB.RpbIndexResp,SecondaryIndexQueryOperation.Query>
Copyright © 2014. All rights reserved.