@Override public void writeTo(StreamOutput out) throws IOException { out.writeBoolean(fetchFields); if (fetchFields) { out.writeGenericValue(fieldNames); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeGenericValue(value); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(sortValues.length); for (Object fieldValue : sortValues) { out.writeGenericValue(fieldValue); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(values.length); for (int i = 0; i < values.length; i++) { out.writeGenericValue(values[i]); } }
public void writeMap(@Nullable Map<String, Object> map) throws IOException { writeGenericValue(map); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVInt(values.size()); for (Object obj : values) { out.writeGenericValue(obj); } }
@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 protected void doWriteTo(StreamOutput out) throws IOException { script.writeTo(out); gapPolicy.writeTo(out); out.writeGenericValue(bucketsPathsMap); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalWriteable(reduceScript); out.writeGenericValue(aggregation()); }
@Override public final void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeGenericValue(metaData); out.writeNamedWriteableList(pipelineAggregators); doWriteTo(out); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { script.writeTo(out); out.writeNamedWriteable(formatter); gapPolicy.writeTo(out); out.writeGenericValue(bucketsPathsMap); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeGenericValue(missing); out.writeOptionalWriteable(script); out.writeOptionalTimeZone(timeZone); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(timestamp); out.writeLong(sinceTime); out.writeGenericValue(restUsage); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeGenericValue(values); out.writeOptionalString(minimumShouldMatchField); out.writeOptionalWriteable(minimumShouldMatchScript); }
private static void writeMissingValue(StreamOutput out, Object missingValue) throws IOException { if (missingValue == SortField.STRING_FIRST) { out.writeByte((byte) 1); } else if (missingValue == SortField.STRING_LAST) { out.writeByte((byte) 2); } else { out.writeByte((byte) 0); out.writeGenericValue(missingValue); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeGenericValue(value); out.writeVInt(slop); out.writeVInt(maxExpansions); out.writeOptionalString(analyzer); }
@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 protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeGenericValue(value); out.writeVInt(slop); if (out.getVersion().onOrAfter(Version.V_6_3_0)) { zeroTermsQuery.writeTo(out); } out.writeOptionalString(analyzer); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeOptionalNamedWriteable(nestedFilter); out.writeOptionalString(nestedPath); out.writeGenericValue(missing); out.writeOptionalWriteable(order); out.writeOptionalWriteable(sortMode); out.writeOptionalString(unmappedType); if (out.getVersion().onOrAfter(Version.V_6_1_0)) { out.writeOptionalWriteable(nestedSort); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(this.fieldName); out.writeGenericValue(this.text); highFreqOperator.writeTo(out); lowFreqOperator.writeTo(out); out.writeOptionalString(analyzer); out.writeOptionalString(lowFreqMinimumShouldMatch); out.writeOptionalString(highFreqMinimumShouldMatch); if (out.getVersion().before(Version.V_6_0_0_alpha1)) { out.writeBoolean(true); // disable_coord } out.writeFloat(cutoffFrequency); }