protected MultiValuesSourceAggregationBuilder(StreamInput in, ValueType targetValueType) throws IOException { super(in); assert false == serializeTargetValueType() : "Wrong read constructor called for subclass that provides its targetValueType"; this.targetValueType = targetValueType; read(in); }
@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); }
protected MultiValuesSourceAggregationBuilder(StreamInput in, ValueType targetValueType) throws IOException { super(in); assert false == serializeTargetValueType() : "Wrong read constructor called for subclass that provides its targetValueType"; this.targetValueType = targetValueType; read(in); }
protected MultiValuesSourceAggregationBuilder(StreamInput in, ValueType targetValueType) throws IOException { super(in); assert false == serializeTargetValueType() : "Wrong read constructor called for subclass that provides its targetValueType"; this.targetValueType = targetValueType; read(in); }
@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 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); }