@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)); } }
@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); }
@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); }
@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); }
@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); } } }
@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)); } }
@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); } }
out.writeBoolean(hasStats); if (hasStats) { out.writeStringList(stats);
@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); } }
@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); }
@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); }
@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); }
@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); } }
@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); } } }
@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); } } }
@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); } }
@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); }
@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); } }
@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); } }
out.writeBoolean(hasStats); if (hasStats) { out.writeStringList(stats);