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

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

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

origin: floragunncom/search-guard

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    out.writeStringList(new ArrayList<>(aliases));
    out.writeStringList(new ArrayList<>(indices));
    out.writeStringList(new ArrayList<>(allIndices));
    out.writeStringList(new ArrayList<>(types));
  }
}
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.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: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(cause);
  out.writeString(name);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(indexPatterns);
  } else {
    out.writeString(indexPatterns.size() > 0 ? indexPatterns.get(0) : "");
  }
  out.writeInt(order);
  out.writeBoolean(create);
  writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (Map.Entry<String, String> entry : mappings.entrySet()) {
    out.writeString(entry.getKey());
    out.writeString(entry.getValue());
  }
  if (out.getVersion().before(Version.V_6_5_0)) {
    out.writeVInt(0);
  }
  out.writeVInt(aliases.size());
  for (Alias alias : aliases) {
    alias.writeTo(out);
  }
  out.writeOptionalVInt(version);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeVInt(size);
  out.writeStringList(sourceNames);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    for (DocValueFormat format : formats) {
      out.writeNamedWriteable(format);
    }
  }
  out.writeIntArray(reverseMuls);
  out.writeList(buckets);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeBoolean(afterKey != null);
    if (afterKey != null) {
      afterKey.writeTo(out);
    }
  }
}
origin: com.floragunn/search-guard-6

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    out.writeStringList(new ArrayList<>(aliases));
    out.writeStringList(new ArrayList<>(indices));
    out.writeStringList(new ArrayList<>(allIndices));
    out.writeStringList(new ArrayList<>(types));
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeInt(order);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(patterns);
  } else {
    out.writeString(patterns.get(0));
  }
  Settings.writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (ObjectObjectCursor<String, CompressedXContent> cursor : mappings) {
    out.writeString(cursor.key);
    cursor.value.writeTo(out);
  }
  out.writeVInt(aliases.size());
  for (ObjectCursor<AliasMetaData> cursor : aliases.values()) {
    cursor.value.writeTo(out);
  }
  if (out.getVersion().before(Version.V_6_5_0)) {
    out.writeVInt(0);
  }
  if (out.getVersion().onOrAfter(Version.V_5_0_0_beta1)) {
    out.writeOptionalVInt(version);
  }
}
origin: org.elasticsearch/elasticsearch

out.writeBoolean(hasStats);
if (hasStats) {
  out.writeStringList(stats);
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(final StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeString(description);
  out.writeString(version);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    Version.writeVersion(elasticsearchVersion, out);
    out.writeString(javaVersion);
  }
  out.writeString(classname);
  if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
    out.writeStringList(extendedPlugins);
  }
  if (out.getVersion().onOrAfter(Version.V_5_4_0)) {
    out.writeBoolean(hasNativeController);
  }
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta2) && out.getVersion().before(Version.V_6_3_0)) {
    /*
     * Elasticsearch versions in [6.0.0-beta2, 6.3.0) allowed plugins to specify that they require the keystore and this was
     * serialized into the plugin info. Therefore, we have to write out a value for this boolean.
     */
    out.writeBoolean(false);
  }
}
origin: com.floragunn/search-guard-6

@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: apache/servicemix-bundles

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(cause);
  out.writeString(name);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(indexPatterns);
  } else {
    out.writeString(indexPatterns.size() > 0 ? indexPatterns.get(0) : "");
  }
  out.writeInt(order);
  out.writeBoolean(create);
  writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (Map.Entry<String, String> entry : mappings.entrySet()) {
    out.writeString(entry.getKey());
    out.writeString(entry.getValue());
  }
  out.writeVInt(customs.size());
  for (Map.Entry<String, IndexMetaData.Custom> entry : customs.entrySet()) {
    out.writeString(entry.getKey());
    entry.getValue().writeTo(out);
  }
  out.writeVInt(aliases.size());
  for (Alias alias : aliases) {
    alias.writeTo(out);
  }
  out.writeOptionalVInt(version);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(cause);
  out.writeString(name);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(indexPatterns);
  } else {
    out.writeString(indexPatterns.size() > 0 ? indexPatterns.get(0) : "");
  }
  out.writeInt(order);
  out.writeBoolean(create);
  writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (Map.Entry<String, String> entry : mappings.entrySet()) {
    out.writeString(entry.getKey());
    out.writeString(entry.getValue());
  }
  if (out.getVersion().before(Version.V_6_5_0)) {
    out.writeVInt(0);
  }
  out.writeVInt(aliases.size());
  for (Alias alias : aliases) {
    alias.writeTo(out);
  }
  out.writeOptionalVInt(version);
}
origin: apache/servicemix-bundles

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeInt(order);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(patterns);
  } else {
    out.writeString(patterns.get(0));
  }
  Settings.writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (ObjectObjectCursor<String, CompressedXContent> cursor : mappings) {
    out.writeString(cursor.key);
    cursor.value.writeTo(out);
  }
  out.writeVInt(aliases.size());
  for (ObjectCursor<AliasMetaData> cursor : aliases.values()) {
    cursor.value.writeTo(out);
  }
  out.writeVInt(customs.size());
  for (ObjectObjectCursor<String, IndexMetaData.Custom> cursor : customs) {
    out.writeString(cursor.key);
    cursor.value.writeTo(out);
  }
  if (out.getVersion().onOrAfter(Version.V_5_0_0_beta1)) {
    out.writeOptionalVInt(version);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeVInt(size);
  out.writeStringList(sourceNames);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    for (DocValueFormat format : formats) {
      out.writeNamedWriteable(format);
    }
  }
  out.writeIntArray(reverseMuls);
  out.writeList(buckets);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeBoolean(afterKey != null);
    if (afterKey != null) {
      afterKey.writeTo(out);
    }
  }
}
origin: apache/servicemix-bundles

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeVInt(size);
  out.writeStringList(sourceNames);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    for (DocValueFormat format : formats) {
      out.writeNamedWriteable(format);
    }
  }
  out.writeIntArray(reverseMuls);
  out.writeList(buckets);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeBoolean(afterKey != null);
    if (afterKey != null) {
      afterKey.writeTo(out);
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeInt(order);
  if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {
    out.writeStringList(patterns);
  } else {
    out.writeString(patterns.get(0));
  }
  Settings.writeSettingsToStream(settings, out);
  out.writeVInt(mappings.size());
  for (ObjectObjectCursor<String, CompressedXContent> cursor : mappings) {
    out.writeString(cursor.key);
    cursor.value.writeTo(out);
  }
  out.writeVInt(aliases.size());
  for (ObjectCursor<AliasMetaData> cursor : aliases.values()) {
    cursor.value.writeTo(out);
  }
  if (out.getVersion().before(Version.V_6_5_0)) {
    out.writeVInt(0);
  }
  if (out.getVersion().onOrAfter(Version.V_5_0_0_beta1)) {
    out.writeOptionalVInt(version);
  }
}
origin: com.floragunn/search-guard-6

@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: apache/servicemix-bundles

@Override
public void writeTo(final StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeString(description);
  out.writeString(version);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    Version.writeVersion(elasticsearchVersion, out);
    out.writeString(javaVersion);
  }
  out.writeString(classname);
  if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
    out.writeStringList(extendedPlugins);
  }
  if (out.getVersion().onOrAfter(Version.V_5_4_0)) {
    out.writeBoolean(hasNativeController);
  }
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta2) && out.getVersion().before(Version.V_6_3_0)) {
    /*
     * Elasticsearch versions in [6.0.0-beta2, 6.3.0) allowed plugins to specify that they require the keystore and this was
     * serialized into the plugin info. Therefore, we have to write out a value for this boolean.
     */
    out.writeBoolean(false);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeTo(final StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeString(description);
  out.writeString(version);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    Version.writeVersion(elasticsearchVersion, out);
    out.writeString(javaVersion);
  }
  out.writeString(classname);
  if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
    out.writeStringList(extendedPlugins);
  }
  if (out.getVersion().onOrAfter(Version.V_5_4_0)) {
    out.writeBoolean(hasNativeController);
  }
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta2) && out.getVersion().before(Version.V_6_3_0)) {
    /*
     * Elasticsearch versions in [6.0.0-beta2, 6.3.0) allowed plugins to specify that they require the keystore and this was
     * serialized into the plugin info. Therefore, we have to write out a value for this boolean.
     */
    out.writeBoolean(false);
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

out.writeBoolean(hasStats);
if (hasStats) {
  out.writeStringList(stats);
org.elasticsearch.common.io.streamStreamOutputwriteStringList

Javadoc

Writes a list of strings

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
  • 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

  • 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
  • Best plugins for Eclipse
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