@SuppressWarnings("unchecked") @Override public Diff<T> readDiff(StreamInput in, String key) throws IOException { return in.readNamedWriteable(NamedDiff.class, key); } }
/** * Read from a stream. */ public FilterAggregationBuilder(StreamInput in) throws IOException { super(in); filter = in.readNamedWriteable(QueryBuilder.class); }
/** * Read from a stream. */ public SpanWithinQueryBuilder(StreamInput in) throws IOException { super(in); big = (SpanQueryBuilder) in.readNamedWriteable(QueryBuilder.class); little = (SpanQueryBuilder) in.readNamedWriteable(QueryBuilder.class); }
/** * Read from a stream. */ public KeyedFilter(StreamInput in) throws IOException { key = in.readString(); filter = in.readNamedWriteable(QueryBuilder.class); }
/** * Reads a list of {@link NamedWriteable}s. */ public <T extends NamedWriteable> List<T> readNamedWriteableList(Class<T> categoryClass) throws IOException { int count = readArraySize(); List<T> builder = new ArrayList<>(count); for (int i=0; i<count; i++) { builder.add(readNamedWriteable(categoryClass)); } return builder; }
/** * Read from a stream. */ public FieldMaskingSpanQueryBuilder(StreamInput in) throws IOException { super(in); queryBuilder = (SpanQueryBuilder) in.readNamedWriteable(QueryBuilder.class); fieldName = in.readString(); }
/** * Read from a stream. */ public SpanFirstQueryBuilder(StreamInput in) throws IOException { super(in); matchBuilder = (SpanQueryBuilder) in.readNamedWriteable(QueryBuilder.class); end = in.readInt(); }
/** * Read from a stream. */ public InternalMax(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); max = in.readDouble(); }
/** * Read from a stream. */ public InternalWeightedAvg(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); sum = in.readDouble(); weight = in.readDouble(); }
protected InternalMappedSignificantTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); subsetSize = in.readVLong(); supersetSize = in.readVLong(); significanceHeuristic = in.readNamedWriteable(SignificanceHeuristic.class); buckets = in.readList(stream -> bucketReader.read(stream, subsetSize, supersetSize, format)); }
public InternalMedianAbsoluteDeviation(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); valuesSketch = TDigestState.read(in); medianAbsoluteDeviation = in.readDouble(); }
/** * Read from a stream. */ public DerivativePipelineAggregator(StreamInput in) throws IOException { super(in); formatter = in.readNamedWriteable(DocValueFormat.class); gapPolicy = GapPolicy.readFrom(in); xAxisUnits = in.readOptionalDouble(); }
/** * Read from a stream. */ public InternalPercentilesBucket(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); percentiles = in.readDoubleArray(); percents = in.readDoubleArray(); computeLookup(); }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public BucketScriptPipelineAggregator(StreamInput in) throws IOException { super(in); script = new Script(in); formatter = in.readNamedWriteable(DocValueFormat.class); gapPolicy = GapPolicy.readFrom(in); bucketsPathsMap = (Map<String, String>) in.readGenericValue(); }
/** * Read from a stream. */ public QueryRescorerBuilder(StreamInput in) throws IOException { super(in); queryBuilder = in.readNamedWriteable(QueryBuilder.class); scoreMode = QueryRescoreMode.readFromStream(in); rescoreQueryWeight = in.readFloat(); queryWeight = in.readFloat(); }
/** * Read from a stream. */ public FunctionScoreQueryBuilder(StreamInput in) throws IOException { super(in); query = in.readNamedWriteable(QueryBuilder.class); filterFunctionBuilders = in.readList(FilterFunctionBuilder::new).toArray(new FilterFunctionBuilder[0]); maxBoost = in.readFloat(); minScore = in.readOptionalFloat(); boostMode = in.readOptionalWriteable(CombineFunction::readFromStream); scoreMode = FunctionScoreQuery.ScoreMode.readFromStream(in); }
/** * Stream from a stream. */ public InternalAutoDateHistogram(StreamInput in) throws IOException { super(in); bucketInfo = new BucketInfo(in); format = in.readNamedWriteable(DocValueFormat.class); buckets = in.readList(stream -> new Bucket(stream, format)); this.targetBuckets = in.readVInt(); }
/** * Read from a stream. */ public InternalStats(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); count = in.readVLong(); min = in.readDouble(); max = in.readDouble(); sum = in.readDouble(); }
public MovFnPipelineAggregator(StreamInput in) throws IOException { super(in); script = new Script(in); formatter = in.readNamedWriteable(DocValueFormat.class); gapPolicy = BucketHelpers.GapPolicy.readFrom(in); bucketsPath = in.readString(); window = in.readInt(); }
/** * Read from a stream. */ protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException { super(in); docCountError = in.readZLong(); format = in.readNamedWriteable(DocValueFormat.class); shardSize = readSize(in); showTermDocCountError = in.readBoolean(); otherDocCount = in.readVLong(); buckets = in.readList(stream -> bucketReader.read(stream, format, showTermDocCountError)); }