Package com.aerospike.client

Examples of com.aerospike.client.Record


    int resultCode = byteBuffer.get(5) & 0xFF;

        if (resultCode == 0) {
          int generation = byteBuffer.getInt(6);
        int expiration = byteBuffer.getInt(10);
        record = new Record(null, null, generation, expiration);
        }
        else {
          if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
            record = null;
          }
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

    int resultCode = dataBuffer[13] & 0xFF;

        if (resultCode == 0) {
        int generation = Buffer.bytesToInt(dataBuffer, 14);
        int expiration = Buffer.bytesToInt(dataBuffer, 18);
          record = new Record(null, null, generation, expiration);        
        }
        else {
      if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
        record = null;
      }
View Full Code Here

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

    int resultCode = dataBuffer[13] & 0xFF;

        if (resultCode == 0) {
        int generation = Buffer.bytesToInt(dataBuffer, 14);
        int expiration = Buffer.bytesToInt(dataBuffer, 18);
          record = new Record(null, null, generation, expiration);        
        }
        else {
      if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
        record = null;
      }
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

      if (duplicates != null) {
          while (duplicates.remove(null)) {
            ;
          }
      }
      return new Record(bins, duplicates, generation, expiration);     
  }
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

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.