Examples of BatchItem


Examples of com.aerospike.client.command.BatchItem

  protected void parseRow(Key key) throws AerospikeException {   
    if (opCount > 0) {
      throw new AerospikeException.Parse("Received bins that were not requested!");
    }     

    BatchItem item = keyMap.get(key);
   
    if (item != null) {
      int index = item.getIndex();
      existsArray[index] = resultCode == 0;
    }
    else {
      if (Log.debugEnabled()) {
        Log.debug("Unexpected batch key returned: " + key.namespace + ',' + Buffer.bytesToHexString(key.digest));
View Full Code Here

Examples of com.aerospike.client.command.BatchItem

    this.records = records;
  }
   
  @Override
  protected void parseRow(Key key) throws AerospikeException {   
    BatchItem item = keyMap.get(key);
   
    if (item != null) {       
      if (resultCode == 0) {
        int index = item.getIndex();
        records[index] = parseRecordWithDuplicates();
      }
    }
    else {
      if (Log.debugEnabled()) {
View Full Code Here

Examples of com.aerospike.client.command.BatchItem

  protected void parseRow(Key key) throws AerospikeException {   
    if (opCount > 0) {
      throw new AerospikeException.Parse("Received bins that were not requested!");
    }     

    BatchItem item = keyMap.get(key);
   
    if (item != null) {
      int index = item.getIndex();
      existsArray[index] = resultCode == 0;
    }
    else {
      if (Log.debugEnabled()) {
        Log.debug("Unexpected batch key returned: " + key.namespace + ',' + Buffer.bytesToHexString(key.digest));
View Full Code Here

Examples of com.aerospike.client.command.BatchItem

    setBatchGet(batchNamespace, binNames, readAttr);
  }

  @Override
  protected void parseRow(Key key) throws AerospikeException {   
    BatchItem item = keyMap.get(key);
   
    if (item != null) {       
      if (resultCode == 0) {
        int index = item.getIndex();
        records[index] = parseRecordWithDuplicates();
      }
    }
    else {
      if (Log.debugEnabled()) {
View Full Code Here

Examples of com.aerospike.client.command.BatchItem

  protected void parseRow(Key key) throws AerospikeException {   
    if (opCount > 0) {
      throw new AerospikeException.Parse("Received bins that were not requested!");
    }     

    BatchItem item = keyMap.get(key);
   
    if (item != null) {
      int index = item.getIndex();
      existsArray[index] = resultCode == 0;
    }
    else {
      if (Log.debugEnabled()) {
        Log.debug("Unexpected batch key returned: " + key.namespace + ',' + Buffer.bytesToHexString(key.digest));
View Full Code Here

Examples of com.aerospike.client.command.BatchItem

    setBatchGet(batchNamespace, binNames, readAttr);
  }

  @Override
  protected void parseRow(Key key) throws AerospikeException {   
    BatchItem item = keyMap.get(key);
   
    if (item != null) {       
      if (resultCode == 0) {
        int index = item.getIndex();
        records[index] = parseRecordWithDuplicates();
      }
    }
    else {
      if (Log.debugEnabled()) {
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.PipelinedData.BatchItem

    PipelinedData.Batch batch = pipelinedData.getBatch(expressions, elResolver);
    assertFalse(pipelinedData.needsViewer());
    assertFalse(pipelinedData.needsOwner());
   
    assertEquals(1, batch.getPreloads().size());
    BatchItem output = batch.getPreloads().get("key");
    assertEquals(BatchType.VARIABLE, output.getType());
    assertEquals(2L, output.getData());
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.PipelinedData.BatchItem

    PipelinedData.Batch batch = pipelinedData.getBatch(expressions, elResolver);
    assertFalse(pipelinedData.needsViewer());
    assertFalse(pipelinedData.needsOwner());
   
    assertEquals(1, batch.getPreloads().size());
    BatchItem output = batch.getPreloads().get("key");
    assertEquals(BatchType.HTTP, output.getType());
    RequestAuthenticationInfo preload = (RequestAuthenticationInfo) output.getData();
    assertEquals(AuthType.NONE, preload.getAuthType());
    assertEquals(Uri.parse("http://example.org/example.html"), preload.getHref());   
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.PipelinedData.BatchItem

    PipelinedData.Batch batch = pipelinedData.getBatch(expressions, elResolver);
    assertTrue(pipelinedData.needsViewer());
    assertFalse(pipelinedData.needsOwner());
   
    assertEquals(1, batch.getPreloads().size());
    BatchItem output = batch.getPreloads().get("key");
    assertEquals(BatchType.HTTP, output.getType());
    RequestAuthenticationInfo preload = (RequestAuthenticationInfo) output.getData();
    assertEquals(AuthType.SIGNED, preload.getAuthType());
    assertTrue(preload.isSignViewer());
    assertFalse(preload.isSignOwner());
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.PipelinedData.BatchItem

    PipelinedData.Batch batch = pipelinedData.getBatch(expressions, elResolver);
    assertFalse(pipelinedData.needsViewer());
    assertFalse(pipelinedData.needsOwner());
   
    assertEquals(1, batch.getPreloads().size());
    BatchItem output = batch.getPreloads().get("key");
    assertEquals(BatchType.VARIABLE, output.getType());
    assertEquals(2L, output.getData());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.