com.basho.riak.pbc
Class FetchResponse

java.lang.Object
  extended by com.basho.riak.pbc.FetchResponse

public class FetchResponse
extends Object

Encapsulates greater detail about the result of a fetch.

Author:
russell

Constructor Summary
protected FetchResponse(RiakObject[] objects, boolean unchanged, byte[] vclock)
           
 
Method Summary
 RiakObject[] getObjects()
           
 byte[] getVClock()
           
 boolean hasSiblings()
           
 boolean isUnchanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchResponse

protected FetchResponse(RiakObject[] objects,
                        boolean unchanged,
                        byte[] vclock)
Parameters:
objects - the set of riak sibling values
unchanged - is this an 'unchanged' response to a conditional fetch
vclock - the vclock in the response (if any)
Method Detail

getObjects

public RiakObject[] getObjects()
Returns:
the objects

isUnchanged

public boolean isUnchanged()
Returns:
true if Riak PB API returned unchanged in response to a conditional fetch, false otherwise

getVClock

public byte[] getVClock()
Returns:
the vclock (if one is present) from the response.

hasSiblings

public boolean hasSiblings()
Returns:
true if there are sibling values in this fetch response, false otherwise


Copyright © 2012. All Rights Reserved.