/* (non-Javadoc) * @see com.basho.riak.client.raw.RawClient#head(java.lang.String, java.lang.String) */ public RiakResponse head(String bucket, String key, FetchMeta fm) throws IOException { if (fm != null) { fm = FetchMeta.Builder.from(fm).headOnly(true).build(); } else { fm = FetchMeta.head(); } return fetch(bucket, key, fm); }
/* * (non-Javadoc) * * @see * com.basho.riak.client.raw.RawClient#fetch(com.basho.riak.newapi.bucket * .Bucket, java.lang.String, int) */ public RiakResponse fetch(String bucket, String key, int readQuorum) throws IOException { return fetch(bucket, key, FetchMeta.withR(readQuorum)); }