congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CountRequest.terminateAfter
Code IndexAdd Tabnine to your IDE (free)

How to use
terminateAfter
method
in
org.elasticsearch.action.count.CountRequest

Best Java code snippets using org.elasticsearch.action.count.CountRequest.terminateAfter (Showing top 3 results out of 315)

origin: harbby/presto-connectors

public CountRequestBuilder setTerminateAfter(int terminateAfter) {
  request().terminateAfter(terminateAfter);
  return this;
}
origin: harbby/presto-connectors

  public SearchRequest toSearchRequest() {
    SearchRequest searchRequest = new SearchRequest(indices());
    searchRequest.indicesOptions(indicesOptions());
    searchRequest.types(types());
    searchRequest.routing(routing());
    searchRequest.preference(preference());
    searchRequest.source(source());
    SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
    searchSourceBuilder.size(0);
    if (minScore() != DEFAULT_MIN_SCORE) {
      searchSourceBuilder.minScore(minScore());
    }
    if (terminateAfter() != DEFAULT_TERMINATE_AFTER) {
      searchSourceBuilder.terminateAfter(terminateAfter());
    }
    searchRequest.extraSource(searchSourceBuilder);
    return searchRequest;
  }
}
origin: harbby/presto-connectors

  throw new IllegalArgumentException("terminateAfter must be > 0");
} else if (terminateAfter > 0) {
  countRequest.terminateAfter(terminateAfter);
org.elasticsearch.action.countCountRequestterminateAfter

Javadoc

Upon reaching terminateAfter counts, the count request will early terminate

Popular methods of CountRequest

  • <init>
    Constructs a new count request against the provided indices. No indices provided means it will run a
  • indices
  • minScore
    The minimum score of the documents to include in the count. Defaults to -1 which means all documents
  • preference
  • routing
    The routing values to control the shards that the search will be executed on.
  • types
    The types of documents the query will run against. Defaults to all types.
  • indicesOptions
  • query
  • source
    The source to execute.
  • toSearchRequest

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now