Package com.aerospike.client

Examples of com.aerospike.client.Key


   * @return          {@link ClResultCode result status}
   */
  public ClResultCode setDigest(String namespace, byte[] digest,
      Map<String, Object> bins, ClOptions opts, ClWriteOptions wOpts) {
    try {
      super.put(getWritePolicy(opts, wOpts), new Key(namespace, digest), getBins(bins));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here


   * @param value        value to append
   * @return          {@link ClResultCode result status}
   */
  public ClResultCode append(Object key, Object value) {
    try {
      super.append(defaultWritePolicy, new Key(mDefaultNamespace, "", Value.get(key)), new Bin(null, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode append(Object key, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.append(getWritePolicy(opts, wOpts), new Key(mDefaultNamespace, "", Value.get(key)), new Bin(null, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   */
  public ClResultCode append(String namespace, String set, Object key,
      String binName, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.append(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), new Bin(binName, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode append(String namespace, String set, Object key,
      Collection<ClBin> bins, ClOptions opts, ClWriteOptions wOpts) {
    try {
      super.append(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), getBins(bins));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode append(String namespace, String set, Object key,
      Map<String, Object> bins, ClOptions opts, ClWriteOptions wOpts) {
    try {
      super.append(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), getBins(bins));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @param value        value to prepend
   * @return          {@link ClResultCode result status}
   */
  public ClResultCode prepend(Object key, Object value) {
    try {
      super.prepend(defaultWritePolicy, new Key(mDefaultNamespace, "", Value.get(key)), new Bin(null, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode prepend(Object key, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.prepend(getWritePolicy(opts, wOpts), new Key(mDefaultNamespace, "", Value.get(key)), new Bin(null, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   */
  public ClResultCode prepend(String namespace, String set, Object key,
      String binName, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.prepend(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), new Bin(binName, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode prepend(String namespace, String set, Object key,
      Collection<ClBin> bins, ClOptions opts, ClWriteOptions wOpts) {
    try {
      super.prepend(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), getBins(bins));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

TOP

Related Classes of com.aerospike.client.Key

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.