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

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

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

Refine searchRefine arrow

  • Version
  • ShardId
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(uid);
  out.writeEnum(type);
  out.writeString(issueDate);
  out.writeString(expiryDate);
  out.writeString(issuedTo);
  out.writeString(issuer);
  out.writeString(startDate);
  out.writeOptionalVInt(majorVersion);
  out.writeString(clusterName);
  out.writeInt(allowedNodeCount);
  out.writeStringList(msgs);
  out.writeLong(expiresInDays);
  out.writeBoolean(isExpired);
  out.writeBoolean(valid);
  out.writeString(action);
  out.writeString(prodUsage);
  out.writeArray(StreamOutput::writeEnum, features==null?new Feature[0]:features);
}

origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeStringArray(updatedConfigTypes);
  out.writeOptionalString(message);
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeStringList(new ArrayList<String>(roles));
  out.writeString(requestedTenant);
  out.writeMap(attributes, StreamOutput::writeString, StreamOutput::writeString);
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeEnum(moduleType);
  out.writeString(classname);
  out.writeString(classpath);
  out.writeString(version);
  out.writeString(buildTime);
  out.writeString(gitsha1);
}

origin: org.elasticsearch/elasticsearch

/**
 * Write this object's fields to a {@linkplain StreamOutput}.
 */
@Override
public void writeTo(final StreamOutput out) throws IOException {
  out.writeOptionalString(path);
  out.writeOptionalNamedWriteable(filter);
  out.writeOptionalWriteable(nestedSort);
  if (out.getVersion().onOrAfter(Version.V_6_5_0)) {
    out.writeVInt(maxChildren);
  }
}
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

private void write(final StreamOutput out) throws IOException {
  out.writeVInt(SERIALIZATION_FORMAT);
  out.writeString(id);
  out.writeString(type);
  out.writeBytesReference(source);
  out.writeOptionalString(routing);
  out.writeOptionalString(parent);
  out.writeLong(version);
  out.writeByte(versionType.getValue());
  out.writeLong(autoGeneratedIdTimestamp);
  out.writeLong(seqNo);
  out.writeLong(primaryTerm);
}
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 void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeLong(recoveryId);
    shardId.writeTo(out);
    out.writeVInt(totalTranslogOps);
    if (out.getVersion().before(Version.V_6_0_0_alpha1)) {
      out.writeLong(IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP); // maxUnsafeAutoIdTimestamp
    }
    if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
      out.writeBoolean(fileBasedRecovery);
    }
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  shardId.writeTo(out);
  out.writeString(allocationId);
  out.writeVLong(primaryTerm);
  out.writeString(message);
  out.writeException(failure);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeBoolean(markAsStale);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVInt(userData.size());
  for (Map.Entry<String, String> entry : userData.entrySet()) {
    out.writeString(entry.getKey());
    out.writeString(entry.getValue());
  }
  out.writeLong(generation);
  out.writeOptionalString(id);
  out.writeInt(numDocs);
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeInt(threads);
    out.writeBoolean(ignoreIdleThreads);
    out.writeString(type);
    out.writeTimeValue(interval);
    out.writeInt(snapshots);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  shardId.writeTo(out);
  out.writeString(type);
  out.writeString(id);
  out.writeZLong(version);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeZLong(seqNo);
    out.writeVLong(primaryTerm);
  }
  out.writeBoolean(forcedRefresh);
  result.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(id);
  out.writeBytesReference(config);
  if (out.getVersion().onOrAfter(Version.V_5_3_0)) {
    out.writeEnum(xContentType);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
    out.writeString(key);
  } else {
    out.writeOptionalString(key);
  }
  out.writeDouble(from);
  out.writeDouble(to);
  out.writeVLong(docCount);
  aggregations.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeLong(recoveryId);
  shardId.writeTo(out);
  out.writeString(targetAllocationId);
  sourceNode.writeTo(out);
  targetNode.writeTo(out);
  metadataSnapshot.writeTo(out);
  out.writeBoolean(primaryRelocation);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeLong(startingSeqNo);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeOptionalString(id);
  out.writeBoolean(verbose);
  out.writeBytesReference(source);
  if (out.getVersion().onOrAfter(Version.V_5_3_0)) {
    out.writeEnum(xContentType);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  if (seed != null) {
    out.writeBoolean(true);
    out.writeInt(seed);
  } else {
    out.writeBoolean(false);
  }
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta1)) {
    out.writeOptionalString(field);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeVInt(features.length);
  for (Feature feature : features) {
    out.writeByte(feature.id);
  }
  out.writeBoolean(humanReadable);
  if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
    out.writeBoolean(includeDefaults);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected void writeAdditionalFields(StreamOutput out) throws IOException {
  if (out.getVersion().onOrAfter(Version.V_6_5_0)) {
    out.writeBoolean(bootstrapNewHistoryUUID);
  }
}
org.elasticsearch.common.io.streamStreamOutput

Javadoc

A stream from another node to this node. Technically, it can also be streamed from a byte array but that is mostly for testing. This class's methods are optimized so you can put the methods that read and write a class next to each other and you can scan them visually for differences. That means that most variables should be read and written in a single line so even large objects fit both reading and writing on the screen. It also means that the methods on this class are named very similarly to StreamInput. Finally it means that the "barrier to entry" for adding new methods to this class is relatively low even though it is a shared class with code everywhere. That being said, this class deals primarily with Lists rather than Arrays. For the most part calls should adapt to lists, either by storing Lists internally or just converting to and from a List when calling. This comment is repeated on StreamInput.

Most used methods

  • 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
  • writeGenericValue
    Notice: when serialization a map, the stream out map with the stream in map maybe have the different
  • writeStringArray,
  • writeGenericValue,
  • writeOptionalWriteable,
  • writeByte,
  • writeFloat,
  • writeOptionalStreamable,
  • writeOptionalBytesReference,
  • write,
  • writeNamedWriteable,
  • writeStringArrayNullable

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer 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