Package org.elasticsearch.action.count

Examples of org.elasticsearch.action.count.CountRequestBuilder.execute()


    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  @Override
  public Long getCount(String appid, String type, Map<String, ?> terms) {
    if (StringUtils.isBlank(appid) || terms == null || terms.isEmpty()) {
View Full Code Here


    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  /**
   * Extracts the routing value from the appid.
   * The appid might contain a routing prefix like:
View Full Code Here

            // Log
            LOGGER.debug( "Will count Entities: {}", request );

            // Execute
            CountResponse count = request.execute().actionGet();

            return count.getCount();
        }

        private static AndFilterBuilder baseFilters( Class<?> resultType )
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  @Override
  public Long getCount(String appid, String type, Map<String, ?> terms) {
    if (StringUtils.isBlank(appid) || terms == null || terms.isEmpty()) {
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  /**
   * Extracts the routing value from the appid.
   * The appid might contain a routing prefix like:
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  @Override
  public Long getCount(String appid, String type, Map<String, ?> terms) {
    if (StringUtils.isBlank(appid) || terms == null || terms.isEmpty()) {
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  //////////////////////////////////////////////////////////////

  @Override
View Full Code Here

      final String type = typeMapping.getTypeAlias();

      CountRequestBuilder builder = client.prepareCount(indexName).setTypes(type).setQuery(_query);

      return builder.execute();
    }

  }

  private static final class MultiGet implements Esi4JOperation<ListenableActionFuture<MultiGetResponse>> {
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  @Override
  public Long getCount(String appid, String type, Map<String, ?> terms) {
    if (StringUtils.isBlank(appid) || terms == null || terms.isEmpty()) {
View Full Code Here

    if (type != null) {
      crb.setTypes(type);
    }

    return crb.execute().actionGet().getCount();
  }

  //////////////////////////////////////////////////////////////

  @Override
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.