Package com.aerospike.client

Examples of com.aerospike.client.Bin


   * @param value        single-bin value
   * @return          {@link ClResultCode result status}
   */
  public ClResultCode set(Object key, Object value) {
    try {
      super.put(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 set(Object key, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.put(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 set(String namespace, String set, Object key,
      String binName, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.put(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

   */
  public ClResultCode setDigest(String namespace, byte[] digest,
      String binName, Object value, ClOptions opts,
      ClWriteOptions wOpts) {
    try {
      super.put(getWritePolicy(opts, wOpts), new Key(namespace, digest), new Bin(binName, value));
      return ClResultCode.OK;
    }
    catch (AerospikeException ae) {
      return getResultCode(ae);
    }
View Full Code Here

   * @return          {@link ClResultCode result status}
   */
  public ClResultCode setDigest(String namespace, byte[] digest, ClBin bin,
      ClOptions opts, ClWriteOptions wOpts) {
    try {
      super.put(getWritePolicy(opts, wOpts), new Key(namespace, digest), new Bin(bin.name, bin.value));
      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

   * @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

TOP

Related Classes of com.aerospike.client.Bin

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.