@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.writeInt(phase); }
@Override public final void writeTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeInt(width); }
public void writeIntArray(int[] values) throws IOException { writeVInt(values.length); for (int value : values) { writeInt(value); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(failureReason); out.writeInt(shardResponses.size()); for (Map.Entry<ShardRouting, SyncedFlushService.ShardSyncedFlushResponse> entry : shardResponses.entrySet()) { entry.getKey().writeTo(out); entry.getValue().writeTo(out); } out.writeOptionalString(syncId); shardId.writeTo(out); out.writeInt(totalShards); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeInt(boundAddresses.length); for (TransportAddress address : boundAddresses) { address.writeTo(out); } publishAddress.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeInt(numberOfFiles); totalFilesSize.writeTo(out); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalText(field); out.writeInt(offset); out.writeOptionalWriteable(child); }
public void writeOptionalText(@Nullable Text text) throws IOException { if (text == null) { writeInt(-1); } else { writeText(text); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeInt(id); out.writeTimeValue(timeout); pingResponse.writeTo(out); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeInt(maxNumSegments); out.writeBoolean(onlyExpungeDeletes); out.writeBoolean(flush); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { script.writeTo(out); out.writeNamedWriteable(formatter); gapPolicy.writeTo(out); out.writeString(bucketsPath); out.writeInt(window); }
public void writeText(Text text) throws IOException { if (!text.hasBytes()) { final String string = text.string(); spare.copyChars(string); writeInt(spare.length()); write(spare.bytes(), 0, spare.length()); } else { BytesReference bytes = text.bytes(); writeInt(bytes.length()); bytes.writeTo(this); } }
@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); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); commitId.writeTo(out); if (includeNumDocs(out.getVersion())) { out.writeInt(numDocs); } if (includeExistingSyncId(out.getVersion())) { out.writeOptionalString(existingSyncId); } } }