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

How to use
writeOptionalString
method
in
org.elasticsearch.common.io.stream.StreamOutput

Best Java code snippets using org.elasticsearch.common.io.stream.StreamOutput.writeOptionalString (Showing top 20 results out of 315)

Refine searchRefine arrow

  • StreamOutput.writeBoolean
  • StreamOutput.writeString
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(this.id);
  out.writeOptionalString(this.relocationId);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeOptionalString(format);
  boolean hasGapPolicy = gapPolicy != null;
  out.writeBoolean(hasGapPolicy);
  if (hasGapPolicy) {
    gapPolicy.writeTo(out);
  }
  out.writeOptionalString(units);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(index);
  out.writeOptionalString(type);
  out.writeString(id);
  out.writeOptionalString(routing);
  out.writeOptionalString(parent);
  out.writeOptionalStringArray(storedFields);
  out.writeLong(version);
  out.writeByte(versionType.getValue());
  out.writeOptionalWriteable(fetchSourceContext);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  if (supplier != null) {
    throw new IllegalStateException("supplier must be null, can't serialize suppliers, missing a rewriteAndFetch?");
  }
  out.writeString(fieldName);
  boolean hasShape = shape != null;
  out.writeBoolean(hasShape);
  if (hasShape) {
    out.writeNamedWriteable(shape);
  } else {
    out.writeOptionalString(indexedShapeId);
    out.writeOptionalString(indexedShapeType);
    out.writeOptionalString(indexedShapeIndex);
    out.writeOptionalString(indexedShapePath);
    if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
      out.writeOptionalString(indexedShapeRouting);
    } else if (indexedShapeRouting != null) {
      throw new IllegalStateException("indexed shape routing cannot be serialized to older nodes");
    }
  }
  relation.writeTo(out);
  out.writeOptionalWriteable(strategy);
  out.writeBoolean(ignoreUnmapped);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(type);
  out.writeString(id);
  out.writeOptionalString(routing);
  out.writeOptionalString(parent);
  out.writeOptionalString(preference);
  out.writeBoolean(refresh);
  out.writeOptionalStringArray(storedFields);
  out.writeBoolean(realtime);
  out.writeByte(versionType.getValue());
  out.writeLong(version);
  out.writeOptionalWriteable(fetchSourceContext);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeStringArrayNullable(indices);
  indicesOptions.writeIndicesOptions(out);
  out.writeOptionalString(type);
  out.writeString(source);
  out.writeBoolean(updateAllTypes);
  out.writeOptionalWriteable(concreteIndex);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeVInt(indices.length);
  for (String index : indices) {
    out.writeString(index);
  }
  out.writeOptionalString(routing);
  out.writeOptionalString(preference);
  if (out.getVersion().onOrBefore(Version.V_5_1_1)) {
    //types
    out.writeStringArray(Strings.EMPTY_ARRAY);
  }
  indicesOptions.writeIndicesOptions(out);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeStringArray(text);
  out.writeOptionalString(analyzer);
  out.writeOptionalWriteable(tokenizer);
  out.writeList(tokenFilters);
  out.writeList(charFilters);
  out.writeOptionalString(field);
  out.writeBoolean(explain);
  out.writeStringArray(attributes);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta1)) {
    out.writeOptionalString(normalizer);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
    out.writeOptionalString(index);
  } else {
    out.writeString(index);
  }
  if (out.getVersion().onOrAfter(Version.V_5_4_0)) {
    out.writeInt(shard);
  }
  out.writeBoolean(valid);
  out.writeOptionalString(explanation);
  out.writeOptionalString(error);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeString(value);
  out.writeOptionalString(rewrite);
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeBoolean(valid);
    out.writeOptionalString(explanation);
    out.writeOptionalString(error);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(snapshot);
  out.writeString(repository);
  out.writeStringArray(indices);
  indicesOptions.writeIndicesOptions(out);
  out.writeOptionalString(renamePattern);
  out.writeOptionalString(renameReplacement);
  out.writeBoolean(waitForCompletion);
  out.writeBoolean(includeGlobalState);
  out.writeBoolean(partial);
  out.writeBoolean(includeAliases);
  writeSettingsToStream(settings, out);
  writeSettingsToStream(indexSettings, out);
  out.writeStringArray(ignoreIndexSettings);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeByte(searchType.id());
  out.writeVInt(indices.length);
  for (String index : indices) {
    out.writeString(index);
  }
  out.writeOptionalString(routing);
  out.writeOptionalString(preference);
  out.writeOptionalWriteable(scroll);
  out.writeOptionalWriteable(source);
  out.writeStringArray(types);
  indicesOptions.writeIndicesOptions(out);
  out.writeOptionalBoolean(requestCache);
  out.writeVInt(batchedReduceSize);
  if (out.getVersion().onOrAfter(Version.V_5_6_0)) {
    out.writeVInt(maxConcurrentShardRequests);
    out.writeVInt(preFilterShardSize);
  }
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeOptionalBoolean(allowPartialSearchResults);
  }        
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(type);
  out.writeString(id);
  out.writeOptionalString(routing);
  out.writeOptionalString(preference);
  out.writeNamedWriteable(query);
  filteringAlias.writeTo(out);
  out.writeOptionalStringArray(storedFields);
  out.writeOptionalWriteable(fetchSourceContext);
  out.writeVLong(nowInMillis);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(this.fieldName);
  out.writeGenericValue(this.text);
  highFreqOperator.writeTo(out);
  lowFreqOperator.writeTo(out);
  out.writeOptionalString(analyzer);
  out.writeOptionalString(lowFreqMinimumShouldMatch);
  out.writeOptionalString(highFreqMinimumShouldMatch);
  if (out.getVersion().before(Version.V_6_0_0_alpha1)) {
    out.writeBoolean(true); // disable_coord
  }
  out.writeFloat(cutoffFrequency);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeString(value);
  out.writeOptionalString(rewrite);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeOptionalString(encoder);
  out.writeBoolean(useExplicitFieldOrder);
  out.writeList(fields);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeOptionalString(index);
  out.writeOptionalString(type);
  out.writeBoolean(doc != null);
  if (doc != null) {
    out.writeGenericValue(doc);
    if (out.getVersion().onOrAfter(Version.V_5_3_0)) {
      out.writeEnum(xContentType);
    }
  } else {
    out.writeString(id);
  }
  out.writeOptionalStringArray(fields);
  out.writeGenericValue(perFieldAnalyzer);
  out.writeOptionalString(routing);
  out.writeLong(version);
  versionType.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(this.fieldName);
  out.writeGenericValue(this.value);
  this.fuzziness.writeTo(out);
  out.writeVInt(this.prefixLength);
  out.writeVInt(this.maxExpansions);
  out.writeBoolean(this.transpositions);
  out.writeOptionalString(this.rewrite);
}
origin: org.elasticsearch/elasticsearch

@Override
public final void writeTo(StreamOutput out) throws IOException {
  out.writeString(field);
  out.writeOptionalString(text);
  out.writeOptionalString(prefix);
  out.writeOptionalString(regex);
  out.writeOptionalString(analyzer);
  out.writeOptionalVInt(size);
  out.writeOptionalVInt(shardSize);
  doWriteTo(out);
}
org.elasticsearch.common.io.streamStreamOutputwriteOptionalString

Javadoc

Writes a string array, for nullable string, writes false.

Popular methods of StreamOutput

  • writeString
  • writeVInt
    Writes an int in a variable-length format. Writes between one and five bytes. Smaller values take fe
  • writeBoolean
    Writes a boolean.
  • writeVLong
    Writes a non-negative long in a variable-length format. Writes between one and ten bytes. Smaller va
  • writeInt
    Writes an int as four bytes.
  • getVersion
    The version of the node on the other side of this stream.
  • writeBytesReference
    Writes the bytes reference, including a length header.
  • writeLong
    Writes a long as eight bytes.
  • writeMap
    Write a Map of K-type keys to V-type. Map map = ...; out.writeMap(map, StreamOutpu
  • writeStringArray
  • writeGenericValue
    Notice: when serialization a map, the stream out map with the stream in map maybe have the different
  • writeOptionalWriteable
  • writeGenericValue,
  • writeOptionalWriteable,
  • writeByte,
  • writeFloat,
  • writeOptionalStreamable,
  • writeOptionalBytesReference,
  • write,
  • writeNamedWriteable,
  • writeStringArrayNullable

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Github Copilot alternatives
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