Examples of GetResponse


Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse

  public static Result get(final ClientService.BlockingInterface client,
      final byte[] regionName, final Get get) throws IOException {
    GetRequest request =
      RequestConverter.buildGetRequest(regionName, get);
    try {
      GetResponse response = client.get(null, request);
      if (response == null) return null;
      return toResult(response.getResult());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse

      final byte[] family) throws IOException {
    GetRequest request =
      RequestConverter.buildGetRowOrBeforeRequest(
        regionName, row, family);
    try {
      GetResponse response = client.get(null, request);
      if (!response.hasResult()) return null;
      return toResult(response.getResult());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse

  public static Result get(final ClientService.BlockingInterface client,
      final byte[] regionName, final Get get) throws IOException {
    GetRequest request =
      RequestConverter.buildGetRequest(regionName, get);
    try {
      GetResponse response = client.get(null, request);
      if (response == null) return null;
      return toResult(response.getResult());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse

      final byte[] family) throws IOException {
    GetRequest request =
      RequestConverter.buildGetRowOrBeforeRequest(
        regionName, row, family);
    try {
      GetResponse response = client.get(null, request);
      if (!response.hasResult()) return null;
      return toResult(response.getResult());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse

  public static Result get(final ClientService.BlockingInterface client,
      final byte[] regionName, final Get get) throws IOException {
    GetRequest request =
      RequestConverter.buildGetRequest(regionName, get);
    try {
      GetResponse response = client.get(null, request);
      if (response == null) return null;
      return toResult(response.getResult());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
View Full Code Here

Examples of org.dmd.dmp.server.extended.GetResponse

  ///////////////////////////////////////////////////////////////////////////
  // Request handling methods
 
  public GetResponse handleGetRequest(GetRequest request){
    GetResponse rc = request.getResponse();
    rc.setLastResponse(false);
   
    request.setOriginatorID(cacheRegistration.getID());
       
    logger.trace("Passing request to get processor");
View Full Code Here

Examples of org.elasticsearch.action.get.GetResponse

    public ResultMessage get(String messageId, String index) throws IndexMissingException, DocumentNotFoundException {
    GetRequestBuilder grb = new GetRequestBuilder(c, index);
    grb.setId(messageId);

    GetResponse r = c.get(grb.request()).actionGet();
   
    if (!r.isExists()) {
      throw new DocumentNotFoundException();
    }
   
    return ResultMessage.parseFromSource(r);
  }
View Full Code Here

Examples of org.elasticsearch.action.get.GetResponse

            indexType = getEndpoint().getConfig().getIndexType();
        }

        String indexId = exchange.getIn().getBody(String.class);

        GetResponse response = client.prepareGet(indexName, indexType, indexId).execute().actionGet();
        exchange.getIn().setBody(response);
    }
View Full Code Here

Examples of org.elasticsearch.action.get.GetResponse

        sendBody("direct:index", map);
        String indexId = template.requestBody("direct:index", map, String.class);
        assertNotNull("indexId should be set", indexId);

        //now, verify GET succeeded
        GetResponse response = template.requestBody("direct:get", indexId, GetResponse.class);
        assertNotNull("response should not be null", response);
        assertNotNull("response source should not be null", response.getSource());
    }
View Full Code Here

Examples of org.elasticsearch.action.get.GetResponse

        sendBody("direct:index", map);
        String indexId = template.requestBody("direct:index", map, String.class);
        assertNotNull("indexId should be set", indexId);

        //now, verify GET succeeded
        GetResponse response = template.requestBody("direct:get", indexId, GetResponse.class);
        assertNotNull("response should not be null", response);
        assertNotNull("response source should not be null", response.getSource());

        //now, perform DELETE
        DeleteResponse deleteResponse = template.requestBody("direct:delete", indexId, DeleteResponse.class);
        assertNotNull("response should not be null", deleteResponse);

        //now, verify GET fails to find the indexed value
        response = template.requestBody("direct:get", indexId, GetResponse.class);
        assertNotNull("response should not be null", response);
        assertNull("response source should be null", response.getSource());
    }
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.