Tabnine Logo
FieldMapper$MultiFields.merge
Code IndexAdd Tabnine to your IDE (free)

How to use
merge
method
in
org.elasticsearch.index.mapper.FieldMapper$MultiFields

Best Java code snippets using org.elasticsearch.index.mapper.FieldMapper$MultiFields.merge (Showing top 5 results out of 315)

origin: org.elasticsearch/elasticsearch

/**
 * Merge changes coming from {@code mergeWith} in place.
 * @param updateAllTypes TODO
 */
protected void doMerge(Mapper mergeWith, boolean updateAllTypes) {
  if (!this.getClass().equals(mergeWith.getClass())) {
    String mergedType = mergeWith.getClass().getSimpleName();
    if (mergeWith instanceof FieldMapper) {
      mergedType = ((FieldMapper) mergeWith).contentType();
    }
    throw new IllegalArgumentException("mapper [" + fieldType().name() + "] of different type, current_type [" + contentType()
      + "], merged_type [" + mergedType + "]");
  }
  FieldMapper fieldMergeWith = (FieldMapper) mergeWith;
  multiFields = multiFields.merge(fieldMergeWith.multiFields);
  // apply changeable values
  this.fieldType = fieldMergeWith.fieldType;
  this.copyTo = fieldMergeWith.copyTo;
}
origin: apache/servicemix-bundles

/**
 * Merge changes coming from {@code mergeWith} in place.
 * @param updateAllTypes TODO
 */
protected void doMerge(Mapper mergeWith, boolean updateAllTypes) {
  if (!this.getClass().equals(mergeWith.getClass())) {
    String mergedType = mergeWith.getClass().getSimpleName();
    if (mergeWith instanceof FieldMapper) {
      mergedType = ((FieldMapper) mergeWith).contentType();
    }
    throw new IllegalArgumentException("mapper [" + fieldType().name() + "] of different type, current_type [" + contentType() + "], merged_type [" + mergedType + "]");
  }
  FieldMapper fieldMergeWith = (FieldMapper) mergeWith;
  multiFields = multiFields.merge(fieldMergeWith.multiFields);
  // apply changeable values
  this.fieldType = fieldMergeWith.fieldType;
  this.copyTo = fieldMergeWith.copyTo;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Merge changes coming from {@code mergeWith} in place.
 * @param updateAllTypes TODO
 */
protected void doMerge(Mapper mergeWith, boolean updateAllTypes) {
  if (!this.getClass().equals(mergeWith.getClass())) {
    String mergedType = mergeWith.getClass().getSimpleName();
    if (mergeWith instanceof FieldMapper) {
      mergedType = ((FieldMapper) mergeWith).contentType();
    }
    throw new IllegalArgumentException("mapper [" + fieldType().name() + "] of different type, current_type [" + contentType() + "], merged_type [" + mergedType + "]");
  }
  FieldMapper fieldMergeWith = (FieldMapper) mergeWith;
  multiFields = multiFields.merge(fieldMergeWith.multiFields);
  // apply changeable values
  this.fieldType = fieldMergeWith.fieldType;
  this.copyTo = fieldMergeWith.copyTo;
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Merge changes coming from {@code mergeWith} in place.
 * @param updateAllTypes TODO
 */
protected void doMerge(Mapper mergeWith, boolean updateAllTypes) {
  if (!this.getClass().equals(mergeWith.getClass())) {
    String mergedType = mergeWith.getClass().getSimpleName();
    if (mergeWith instanceof FieldMapper) {
      mergedType = ((FieldMapper) mergeWith).contentType();
    }
    throw new IllegalArgumentException("mapper [" + fieldType().name() + "] of different type, current_type [" + contentType() + "], merged_type [" + mergedType + "]");
  }
  FieldMapper fieldMergeWith = (FieldMapper) mergeWith;
  multiFields = multiFields.merge(fieldMergeWith.multiFields);
  // apply changeable values
  this.fieldType = fieldMergeWith.fieldType;
  this.copyTo = fieldMergeWith.copyTo;
}
origin: harbby/presto-connectors

/**
 * Merge changes coming from {@code mergeWith} in place.
 * @param updateAllTypes TODO
 */
protected void doMerge(Mapper mergeWith, boolean updateAllTypes) {
  if (!this.getClass().equals(mergeWith.getClass())) {
    String mergedType = mergeWith.getClass().getSimpleName();
    if (mergeWith instanceof FieldMapper) {
      mergedType = ((FieldMapper) mergeWith).contentType();
    }
    throw new IllegalArgumentException("mapper [" + fieldType().names().fullName() + "] of different type, current_type [" + contentType() + "], merged_type [" + mergedType + "]");
  }
  FieldMapper fieldMergeWith = (FieldMapper) mergeWith;
  multiFields = multiFields.merge(fieldMergeWith.multiFields);
  // apply changeable values
  this.fieldType = fieldMergeWith.fieldType;
  this.copyTo = fieldMergeWith.copyTo;
}
org.elasticsearch.index.mapperFieldMapper$MultiFieldsmerge

Popular methods of FieldMapper$MultiFields

  • empty
  • toXContent
  • <init>
  • iterator
  • parse
  • updateFieldType
  • create

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Kernel (java.awt.image)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best IntelliJ plugins
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