com.basho.riak.pbc
Class FetchResponse
java.lang.Object
com.basho.riak.pbc.FetchResponse
public class FetchResponse
- extends Object
Encapsulates greater detail about the result of a fetch.
- Author:
- russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FetchResponse
protected FetchResponse(RiakObject[] objects,
boolean unchanged,
byte[] vclock)
- Parameters:
objects
- the set of riak sibling valuesunchanged
- is this an 'unchanged' response to a conditional fetchvclock
- the vclock in the response (if any)
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.