@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalWriteable(license); out.writeList(new LinkedList<>(modules)); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalWriteable(initScript); out.writeOptionalWriteable(mapScript); out.writeOptionalWriteable(combineScript); out.writeOptionalWriteable(reduceScript); boolean hasParams = params != null; out.writeBoolean(hasParams); if (hasParams) { out.writeMap(params); } }
@Override public void writeTo(StreamOutput out) throws IOException { shardRouting.writeTo(out); out.writeOptionalWriteable(currentNode); out.writeOptionalWriteable(relocationTargetNode); out.writeOptionalWriteable(clusterInfo); shardAllocationDecision.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalWriteable(task); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVLong(timestamp); out.writeLong(openFileDescriptors); out.writeLong(maxFileDescriptors); out.writeOptionalWriteable(cpu); out.writeOptionalWriteable(mem); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { if (supplier != null) { throw new IllegalStateException("supplier must be null, can't serialize suppliers, missing a rewriteAndFetch?"); } out.writeString(fieldName); out.writeOptionalWriteable(termsLookup); out.writeGenericValue(values); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(scrollId); out.writeOptionalWriteable(scroll); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(id); out.writeOptionalWriteable(scroll); }
@Override public void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalWriteable(fuzzyOptions); out.writeOptionalWriteable(regexOptions); out.writeOptionalBytesReference(contextBytes); if (out.getVersion().onOrAfter(Version.V_6_1_0)) { out.writeBoolean(skipDuplicates); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); destination.writeTo(out); out.writeOptionalWriteable(remoteInfo); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalText(field); out.writeInt(offset); out.writeOptionalWriteable(child); }
@Override protected final void doWriteTo(StreamOutput out) throws IOException { if (serializeTargetValueType()) { out.writeOptionalWriteable(targetValueType); } out.writeMap(fields, StreamOutput::writeString, (o, value) -> value.writeTo(o)); out.writeOptionalWriteable(valueType); out.writeOptionalString(format); innerWriteTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalWriteable(targetNode); if (nodeDecisions != null) { out.writeBoolean(true); out.writeList(nodeDecisions); } else { out.writeBoolean(false); } }
@Override public void writeTo(StreamOutput out) throws IOException { script.writeTo(out); type.writeTo(out); order.writeTo(out); out.writeOptionalWriteable(sortMode); out.writeOptionalString(nestedPath); out.writeOptionalNamedWriteable(nestedFilter); if (out.getVersion().onOrAfter(Version.V_6_1_0)) { out.writeOptionalWriteable(nestedSort); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeNamedWriteable(query); out.writeList(Arrays.asList(filterFunctionBuilders)); out.writeFloat(maxBoost); out.writeOptionalFloat(minScore); out.writeOptionalWriteable(boostMode); scoreMode.writeTo(out); }
@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 protected void innerWriteTo(StreamOutput out) throws IOException { bucketCountThresholds.writeTo(out); out.writeOptionalString(executionHint); out.writeOptionalNamedWriteable(filterBuilder); out.writeOptionalWriteable(includeExclude); out.writeNamedWriteable(significanceHeuristic); }
/** * Write this object's fields to a {@linkplain StreamOutput}. */ @Override public void writeTo(final StreamOutput out) throws IOException { out.writeOptionalString(path); out.writeOptionalNamedWriteable(filter); out.writeOptionalWriteable(nestedSort); if (out.getVersion().onOrAfter(Version.V_6_5_0)) { out.writeVInt(maxChildren); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVLong(timestamp); cpu.writeTo(out); mem.writeTo(out); swap.writeTo(out); if (out.getVersion().onOrAfter(Version.V_5_1_1)) { out.writeOptionalWriteable(cgroup); } }
@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); }