@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(dn); out.writeBoolean(isAdmin); out.writeBoolean(isAuthenticated); out.writeBoolean(isNodeCertificateRequest); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(fromNode); out.writeString(toNode); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(node); out.writeBoolean(allowPrimary); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeString(value); out.writeOptionalString(rewrite); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeString(value); out.writeVInt(flagsValue); out.writeVInt(maxDeterminizedStates); out.writeOptionalString(rewrite); }
@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); }
@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); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(repository); out.writeStringArray(snapshots); out.writeBoolean(ignoreUnavailable); } }
@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); }
@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); }
@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); }
@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); }
@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); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeString(type); out.writeBoolean(isSearchable); out.writeBoolean(isAggregatable); out.writeOptionalStringArray(indices); out.writeOptionalStringArray(nonSearchableIndices); out.writeOptionalStringArray(nonAggregatableIndices); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVInt(fragmentOffset); out.writeOptionalStringArray(matchedFields); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(node); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); if (fragments == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeVInt(fragments.length); for (Text fragment : fragments) { out.writeText(fragment); } } }
public void writeOptionalString(@Nullable String str) throws IOException { if (str == null) { writeBoolean(false); } else { writeBoolean(true); writeString(str); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeString(value); out.writeOptionalString(rewrite); }