Пример #1
0
  /* (non-Javadoc)
   * @see com.basho.riak.client.HttpRiakObject#fetch(com.basho.riak.client.request.RequestMeta)
   */
  public FetchResponse fetch(RequestMeta meta) {
    if (riak == null)
      throw new IllegalStateException("Cannot fetch an object without a RiakClient");

    FetchResponse r = riak.fetch(bucket, key, meta);
    if (r.getObject() != null) {
      RiakObject other = r.getObject();
      shallowCopy(other);
      r.setObject(this);
    }
    return r;
  }