@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(collectors); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(allStats); }
@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.writeArray(shards); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(Lucene::writeSortValue, this.formattedSortValues); if (out.getVersion().onOrAfter(Version.V_6_6_0)) { out.writeArray(Lucene::writeSortValue, this.rawSortValues); } }
/** * Writes the specified array of {@link Writeable}s. This method can be seen as * writer version of {@link StreamInput#readArray(Writeable.Reader, IntFunction)}. The length of array encoded as a variable-length * integer is first written to the stream, and then the elements of the array are written to the stream. */ public <T extends Writeable> void writeArray(T[] array) throws IOException { writeArray((out, value) -> value.writeTo(out), array); }
/** * Same as {@link #writeArray(Writer, Object[])} but the provided array may be null. An additional boolean value is * serialized to indicate whether the array was null or not. */ public <T> void writeOptionalArray(final Writer<T> writer, final @Nullable T[] array) throws IOException { if (array == null) { writeBoolean(false); } else { writeBoolean(true); writeArray(writer, array); } }
@Override public void writeTo(final StreamOutput out) throws IOException { super.writeTo(out); if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeZLong(trimAboveSeqNo); } if (out.getVersion().onOrAfter(Version.V_6_5_0)) { out.writeZLong(maxSeenAutoIdTimestampOnPrimary); } out.writeArray(Translog.Operation::writeOperation, operations); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(allStats); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(collectors); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeArray(allStats); }
out.writeArray(Lucene::writeSortField, collapseDocs.fields); out.writeFloat(topDocs.getMaxScore()); out.writeArray(Lucene::writeSortField, topFieldDocs.fields);
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeArray(shards); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeArray(shards); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeArray(shards); }
public <T extends Writeable> void writeOptionalArray(@Nullable T[] array) throws IOException { if (array == null) { writeBoolean(false); } else { writeBoolean(true); writeArray(array); } }
public <T extends Writeable> void writeOptionalArray(@Nullable T[] array) throws IOException { if (array == null) { writeBoolean(false); } else { writeBoolean(true); writeArray(array); } }
public <T extends Writeable> void writeOptionalArray(@Nullable T[] array) throws IOException { if (array == null) { writeBoolean(false); } else { writeBoolean(true); writeArray(array); } }
@Override public void writeTo(final StreamOutput out) throws IOException { super.writeTo(out); if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeZLong(trimAboveSeqNo); } out.writeArray(Translog.Operation::writeOperation, operations); }
@Override public void writeTo(final StreamOutput out) throws IOException { super.writeTo(out); if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeZLong(trimAboveSeqNo); } if (out.getVersion().onOrAfter(Version.V_6_5_0)) { out.writeZLong(maxSeenAutoIdTimestampOnPrimary); } out.writeArray(Translog.Operation::writeOperation, operations); }