Codota Logo
InnerHitBuilder.writeToParentChildBWC
Code IndexAdd Codota to your IDE (free)

How to use
writeToParentChildBWC
method
in
org.elasticsearch.index.query.InnerHitBuilder

Best Java code snippets using org.elasticsearch.index.query.InnerHitBuilder.writeToParentChildBWC (Showing top 6 results out of 315)

  • Common ways to obtain InnerHitBuilder
private void myMethod () {
InnerHitBuilder i =
  • Codota IconXContentParser parser;InnerHitBuilder.fromXContent(parser)
  • Codota IconStreamInput streamInput;streamInput.readOptionalWriteable(InnerHitBuilder::new)
  • Smart code suggestions by Codota
}
origin: org.codelibs.elasticsearch.module/parent-join

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeBoolean(score);
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: org.elasticsearch.plugin/parent-join-client

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeBoolean(score);
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: com.strapdata.elasticsearch.plugin/parent-join

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeBoolean(score);
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: com.strapdata.elasticsearch.plugin/parent-join

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeInt(minChildren);
  out.writeInt(maxChildren);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: org.codelibs.elasticsearch.module/parent-join

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeInt(minChildren);
  out.writeInt(maxChildren);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: org.elasticsearch.plugin/parent-join-client

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(type);
  out.writeInt(minChildren);
  out.writeInt(maxChildren);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToParentChildBWC(out, query, type);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
org.elasticsearch.index.queryInnerHitBuilderwriteToParentChildBWC

Javadoc

BWC serialization for parent/child InnerHitBuilder. Should only be used to send hasParent or hasChild inner hits to nodes pre 5.5.

Popular methods of InnerHitBuilder

  • fromXContent
  • getName
  • isIgnoreUnmapped
    Whether to include inner hits in the search response hits if required mappings is missing
  • <init>
    Read from a stream.
  • setIgnoreUnmapped
  • getDocValueFields
    Gets the docvalue fields.
  • getFetchSourceContext
  • getFrom
  • getHighlightBuilder
  • getScriptFields
  • getSize
  • getSorts
  • getSize,
  • getSorts,
  • getStoredFieldsContext,
  • isExplain,
  • isTrackScores,
  • isVersion,
  • setStoredFieldNames,
  • toXContent,
  • writeToBWC,
  • writeToCollapseBWC

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reference (javax.naming)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now