@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.writeLong(id); } }
@Override public void writeTo(StreamOutput out) throws IOException { //TODO here we should just use TimeValue#writeTo and same for de-serialization in the constructor, we lose information this way out.writeLong(value.getMillis()); }
@Override protected void innerWriteTo(StreamOutput out) throws IOException { boolean hasPrecisionThreshold = precisionThreshold != null; out.writeBoolean(hasPrecisionThreshold); if (hasPrecisionThreshold) { out.writeLong(precisionThreshold); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeShort(percent); out.writeLong(total); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(path); // total aggregates do not have a path out.writeOptionalString(mount); out.writeOptionalString(type); out.writeLong(total); out.writeLong(free); out.writeLong(available); if (out.getVersion().before(Version.V_6_0_0_alpha1)) { out.writeOptionalBoolean(null); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(id); out.writeOptionalWriteable(scroll); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeLong(geohashAsLong); out.writeVLong(docCount); aggregations.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(queryProfileResults.size()); for (ProfileResult p : queryProfileResults) { p.writeTo(out); } profileCollector.writeTo(out); out.writeLong(rewriteTime); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(taskId); out.writeLong(allocationId); out.writeOptionalNamedWriteable(state); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeBoolean(inSync); out.writeOptionalString(allocationId); out.writeLong(matchingBytes); out.writeException(storeException); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(nodeId); out.writeLong(taskId); out.writeException(reason); RestStatus.writeTo(out, status); }
@Override protected void innerWriteTo(StreamOutput out) throws IOException { out.writeLong(interval); out.writeOptionalWriteable(dateHistogramInterval); boolean hasTimeZone = timeZone != null; out.writeBoolean(hasTimeZone); if (hasTimeZone) { out.writeString(timeZone.getID()); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVLong(subsetDf); out.writeVLong(supersetDf); out.writeLong(term); out.writeDouble(getSignificanceScore()); aggregations.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(clusterUUID); out.writeLong(version); Settings.writeSettingsToStream(transientSettings, out); Settings.writeSettingsToStream(persistentSettings, out); indices.writeTo(out); templates.writeTo(out); customs.writeTo(out); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { InternalOrder.Streams.writeHistogramOrder(order, out, false); out.writeVLong(minDocCount); if (minDocCount == 0) { emptyBucketInfo.writeTo(out); } out.writeLong(offset); out.writeNamedWriteable(format); out.writeBoolean(keyed); out.writeList(buckets); }
@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); }