com.basho.riak.pbc.mapreduce
Class MapReduceResponse

java.lang.Object
  extended by com.basho.riak.pbc.mapreduce.MapReduceResponse

public class MapReduceResponse
extends Object

The results of executing a map/reduce query, wraps the PBC message response


Field Summary
 Integer phase
           
 com.google.protobuf.ByteString response
           
 
Constructor Summary
MapReduceResponse(RPB.RpbMapRedResp resp, com.google.protobuf.ByteString contentType2)
           
 
Method Summary
 com.google.protobuf.ByteString getContent()
           
 String getContentType()
           
 JSONArray getJSON()
           
 Integer getPhase()
           
 boolean hasPhase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phase

public final Integer phase

response

public final com.google.protobuf.ByteString response
Constructor Detail

MapReduceResponse

public MapReduceResponse(RPB.RpbMapRedResp resp,
                         com.google.protobuf.ByteString contentType2)
Method Detail

getJSON

public JSONArray getJSON()
                  throws JSONException
Throws:
JSONException

getContent

public com.google.protobuf.ByteString getContent()

getContentType

public String getContentType()

hasPhase

public boolean hasPhase()

getPhase

public Integer getPhase()


Copyright © 2012. All Rights Reserved.