Tabnine Logo
PutMappingRequestBuilder.setTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
setTimeout
method
in
org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder

Best Java code snippets using org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder.setTimeout (Showing top 5 results out of 315)

origin: org.elasticsearch/elasticsearch

private PutMappingRequestBuilder updateMappingRequest(Index index, String type, Mapping mappingUpdate, final TimeValue timeout) {
  if (type.equals(MapperService.DEFAULT_MAPPING)) {
    throw new IllegalArgumentException("_default_ mapping should not be updated");
  }
  return client.preparePutMapping().setConcreteIndex(index).setType(type).setSource(mappingUpdate.toString(), XContentType.JSON)
      .setMasterNodeTimeout(timeout).setTimeout(timeout);
}
origin: harbby/presto-connectors

private PutMappingRequestBuilder updateMappingRequest(String index, String type, Mapping mappingUpdate, final TimeValue timeout) {
  if (type.equals(MapperService.DEFAULT_MAPPING)) {
    throw new IllegalArgumentException("_default_ mapping should not be updated");
  }
  return client.preparePutMapping(index).setType(type).setSource(mappingUpdate.toString())
    .setMasterNodeTimeout(timeout).setTimeout(timeout);
}
origin: apache/servicemix-bundles

private PutMappingRequestBuilder updateMappingRequest(Index index, String type, Mapping mappingUpdate, final TimeValue timeout) {
  if (type.equals(MapperService.DEFAULT_MAPPING)) {
    throw new IllegalArgumentException("_default_ mapping should not be updated");
  }
  return client.preparePutMapping().setConcreteIndex(index).setType(type).setSource(mappingUpdate.toString(), XContentType.JSON)
      .setMasterNodeTimeout(timeout).setTimeout(timeout);
}
origin: com.strapdata.elasticsearch/elasticsearch

private PutMappingRequestBuilder updateMappingRequest(Index index, String type, Mapping mappingUpdate, final TimeValue timeout) {
  if (type.equals(MapperService.DEFAULT_MAPPING)) {
    throw new IllegalArgumentException("_default_ mapping should not be updated");
  }
  return client.preparePutMapping().setConcreteIndex(index).setType(type).setSource(mappingUpdate.toString())
      .setMasterNodeTimeout(timeout).setTimeout(timeout);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

private PutMappingRequestBuilder updateMappingRequest(Index index, String type, Mapping mappingUpdate, final TimeValue timeout) {
  if (type.equals(MapperService.DEFAULT_MAPPING)) {
    throw new IllegalArgumentException("_default_ mapping should not be updated");
  }
  return client.preparePutMapping().setConcreteIndex(index).setType(type).setSource(mappingUpdate.toString(), XContentType.JSON)
      .setMasterNodeTimeout(timeout).setTimeout(timeout);
}
org.elasticsearch.action.admin.indices.mapping.putPutMappingRequestBuildersetTimeout

Popular methods of PutMappingRequestBuilder

  • setSource
    A specialized simplified mapping source method, takes the form of simple properties definition: ("fi
  • setType
    The type of the mappings.
  • execute
  • get
  • setIgnoreConflicts
  • setIndices
  • <init>
  • setMasterNodeTimeout
  • setConcreteIndex
  • setUpdateAllTypes
    True if all fields that span multiple types should be updated, false otherwise

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top plugins for WebStorm
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