Tabnine Logo
StreamOutput.writeGenericValue
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeBoolean(fetchFields);
  if (fetchFields) {
    out.writeGenericValue(fieldNames);
  }
}
origin: org.elasticsearch/elasticsearch

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

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVInt(sortValues.length);
  for (Object fieldValue : sortValues) {
    out.writeGenericValue(fieldValue);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVInt(values.length);
  for (int i = 0; i < values.length; i++) {
    out.writeGenericValue(values[i]);
  }
}
origin: org.elasticsearch/elasticsearch

public void writeMap(@Nullable Map<String, Object> map) throws IOException {
  writeGenericValue(map);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeVInt(values.size());
  for (Object obj : values) {
    out.writeGenericValue(obj);
  }
}
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);
  out.writeOptionalWriteable(termsLookup);
  out.writeGenericValue(values);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  script.writeTo(out);
  gapPolicy.writeTo(out);
  out.writeGenericValue(bucketsPathsMap);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeOptionalWriteable(reduceScript);
  out.writeGenericValue(aggregation());
}
origin: org.elasticsearch/elasticsearch

@Override
public final void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeGenericValue(metaData);
  out.writeNamedWriteableList(pipelineAggregators);
  doWriteTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  script.writeTo(out);
  out.writeNamedWriteable(formatter);
  gapPolicy.writeTo(out);
  out.writeGenericValue(bucketsPathsMap);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeGenericValue(missing);
  out.writeOptionalWriteable(script);
  out.writeOptionalTimeZone(timeZone);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeLong(timestamp);
  out.writeLong(sinceTime);
  out.writeGenericValue(restUsage);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeGenericValue(values);
  out.writeOptionalString(minimumShouldMatchField);
  out.writeOptionalWriteable(minimumShouldMatchScript);
}
origin: org.elasticsearch/elasticsearch

private static void writeMissingValue(StreamOutput out, Object missingValue) throws IOException {
  if (missingValue == SortField.STRING_FIRST) {
    out.writeByte((byte) 1);
  } else if (missingValue == SortField.STRING_LAST) {
    out.writeByte((byte) 2);
  } else {
    out.writeByte((byte) 0);
    out.writeGenericValue(missingValue);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeGenericValue(value);
  out.writeVInt(slop);
  out.writeVInt(maxExpansions);
  out.writeOptionalString(analyzer);
}
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
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeGenericValue(value);
  out.writeVInt(slop);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    zeroTermsQuery.writeTo(out);
  }
  out.writeOptionalString(analyzer);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeOptionalNamedWriteable(nestedFilter);
  out.writeOptionalString(nestedPath);
  out.writeGenericValue(missing);
  out.writeOptionalWriteable(order);
  out.writeOptionalWriteable(sortMode);
  out.writeOptionalString(unmappedType);
  if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
    out.writeOptionalWriteable(nestedSort);
  }
}
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);
}
org.elasticsearch.common.io.streamStreamOutputwriteGenericValue

Javadoc

Notice: when serialization a map, the stream out map with the stream in map maybe have the different key-value orders, they will maybe have different stream order. If want to keep stream out map and stream in map have the same stream order when stream, can use writeMapWithConsistentOrder

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.
  • writeOptionalString
  • 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
  • writeOptionalWriteable
  • writeStringArray,
  • writeOptionalWriteable,
  • writeByte,
  • writeFloat,
  • writeOptionalStreamable,
  • writeOptionalBytesReference,
  • write,
  • writeNamedWriteable,
  • writeStringArrayNullable

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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