public class MapReduceOperation extends PBStreamingFutureOperation<MapReduceOperation.Response,RiakKvPB.RpbMapRedResp,BinaryValue>
Modifier and Type | Class and Description |
---|---|
static class |
MapReduceOperation.Builder |
static class |
MapReduceOperation.Response |
reqBuilder, reqMessageCode
Modifier and Type | Method and Description |
---|---|
protected MapReduceOperation.Response |
convert(List<RiakKvPB.RpbMapRedResp> rawResponse) |
protected boolean |
done(RiakKvPB.RpbMapRedResp message)
Detect when the streaming operation is finished
|
BinaryValue |
getQueryInfo()
Returns information related to the operation performed.
|
protected MapReduceOperation.Response |
processStreamingChunk(RiakKvPB.RpbMapRedResp rawResponseChunk) |
getResultsQueue, processMessage
createChannelMessage, decode
addListener, await, await, cancel, cause, channelMessage, checkAndGetSingleResponse, get, get, getNow, isCancelled, isDone, isSuccess, processBatchMessage, removeListener, setComplete, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, await, await, cancel, cause, get, get, getNow, isCancelled, isDone, isSuccess, removeListener
protected MapReduceOperation.Response convert(List<RiakKvPB.RpbMapRedResp> rawResponse)
convert
in class FutureOperation<MapReduceOperation.Response,RiakKvPB.RpbMapRedResp,BinaryValue>
protected boolean done(RiakKvPB.RpbMapRedResp message)
FutureOperation
done
in class FutureOperation<MapReduceOperation.Response,RiakKvPB.RpbMapRedResp,BinaryValue>
message
- raw messagepublic BinaryValue getQueryInfo()
RiakFuture
Useful in async operations when you want to know what operation this future refers to.
getQueryInfo
in interface RiakFuture<MapReduceOperation.Response,BinaryValue>
getQueryInfo
in class FutureOperation<MapReduceOperation.Response,RiakKvPB.RpbMapRedResp,BinaryValue>
protected MapReduceOperation.Response processStreamingChunk(RiakKvPB.RpbMapRedResp rawResponseChunk)
processStreamingChunk
in class PBStreamingFutureOperation<MapReduceOperation.Response,RiakKvPB.RpbMapRedResp,BinaryValue>
Copyright © 2016. All rights reserved.