Package com.aerospike.client

Examples of com.aerospike.client.Record


   * @return          {@link ClResult} containing bin name/value pairs
   */
  public ClResult getAllDigest(String namespace, byte[] digest,
      ClOptions opts) {
    try {
      Record record = super.get(getPolicy(opts), new Key(namespace, digest));
      return getResult(record);
    }
    catch (AerospikeException ae) {
      return getResult(ae);
    }
View Full Code Here


    for (String binName : readBinNames) {
      operations[count++] = Operation.get(binName);
    }
   
    try {
      Record record = super.operate(getWritePolicy(opts, wOpts), new Key(namespace, set, Value.get(key)), operations);
      return getResult(record);
    }
    catch (AerospikeException ae) {
      return getResult(ae);
    }
View Full Code Here

      if (duplicates != null) {
          while (duplicates.remove(null)) {
            ;
          }
      }
      return new Record(bins, duplicates, generation, expiration);     
  }
View Full Code Here

          bins = new HashMap<String,Object>();
        }
        bins.put(name, value);
        }
     
      Record record = new Record(bins, null, generation, expiration);
     
      if (! valid) {
        throw new AerospikeException.QueryTerminated();
      }
     
View Full Code Here

          throw new AerospikeException(resultCode);
        }
                 
        if (opCount == 0) {
          // Bin data was not returned.
          record = new Record(null, null, generation, expiration);
          return;
        }
        record = parseRecord(opCount, fieldCount, generation, expiration);           
  }
View Full Code Here

      if (duplicates != null) {
          while (duplicates.remove(null)) {
            ;
          }
      }
      return new Record(bins, duplicates, generation, expiration);
  }
View Full Code Here

      if (! valid) {
        throw new AerospikeException.ScanTerminated();
      }
     
      // Call the callback function.
      callback.scanCallback(key, new Record(bins, null, generation, expiration));
    }
    return true;
  }
View Full Code Here

    this.listener = listener;
  }
   
  @Override
  protected void parseRow(Key key) throws AerospikeException {   
    Record record = parseRecord();
    listener.onRecord(key, record);
  }
View Full Code Here

      if (duplicates != null) {
          while (duplicates.remove(null)) {
            ;
          }
      }
      return new Record(bins, duplicates, generation, expiration);     
  }
View Full Code Here

      if (bins == null) {
        bins = new HashMap<String,Object>();
      }
      bins.put(name, value);
      }
      return new Record(bins, null, generation, expiration);     
  }
View Full Code Here

TOP

Related Classes of com.aerospike.client.Record

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.