Package com.aerospike.client

Examples of com.aerospike.client.Record


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


    receiveOffset = Command.MSG_REMAINING_HEADER_SIZE;
           
        if (resultCode == 0) {
            if (opCount == 0) {
              // Bin data was not returned.
              record = new Record(null, null, generation, expiration);
            }
            else {
              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

    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

    dataOffset = Command.MSG_REMAINING_HEADER_SIZE;
           
        if (resultCode == 0) {
            if (opCount == 0) {
              // Bin data was not returned.
              record = new Record(null, null, generation, expiration);
            }
            else {
              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

    setScan(policy, namespace, setName, binNames);
  }

  @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

    setBatchGet(batchNamespace, binNames, readAttr);
  }

  @Override
  protected void parseRow(Key key) throws AerospikeException {   
    Record record = parseRecordWithDuplicates();
    listener.onRecord(key, record);
  }
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.