/** * Read from a stream. */ protected InternalSingleBucketAggregation(StreamInput in) throws IOException { super(in); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws IOException { this.format = format; this.keyed = keyed; key = in.readDouble(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ public InternalBucket(StreamInput in, boolean keyed) throws IOException { this.keyed = keyed; key = in.readOptionalString(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws IOException { this.format = format; this.keyed = keyed; key = in.readLong(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
EmptyBucketInfo(StreamInput in) throws IOException { rounding = Rounding.Streams.read(in); subAggregations = InternalAggregations.readAggregations(in); bounds = in.readOptionalWriteable(ExtendedBounds::new); }
@SuppressWarnings("unchecked") InternalBucket(StreamInput in, List<String> sourceNames, List<DocValueFormat> formats, int[] reverseMuls) throws IOException { this.key = new CompositeKey(in); this.docCount = in.readVLong(); this.aggregations = InternalAggregations.readAggregations(in); this.reverseMuls = reverseMuls; this.sourceNames = sourceNames; this.formats = formats; }
/** * Read from a stream. */ public InternalBucket(StreamInput in) throws IOException { key = in.readOptionalString(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ public Bucket(StreamInput in, DocValueFormat format) throws IOException { this.format = format; key = in.readLong(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ private Bucket(StreamInput in) throws IOException { geohashAsLong = in.readLong(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ protected Bucket(StreamInput in, DocValueFormat formatter, boolean showDocCountError) throws IOException { this.showDocCountError = showDocCountError; this.format = formatter; docCount = in.readVLong(); docCountError = -1; if (showDocCountError) { docCountError = in.readLong(); } aggregations = InternalAggregations.readAggregations(in); }
BucketInfo(StreamInput in) throws IOException { int size = in.readVInt(); roundingInfos = new RoundingInfo[size]; for (int i = 0; i < size; i++) { roundingInfos[i] = new RoundingInfo(in); } roundingIdx = in.readVInt(); emptySubAggregations = InternalAggregations.readAggregations(in); }
Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOException { super(in, subsetSize, supersetSize, format); subsetDf = in.readVLong(); supersetDf = in.readVLong(); term = in.readLong(); score = in.readDouble(); aggregations = InternalAggregations.readAggregations(in); }
/** * Read from a stream. */ public Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOException { super(in, subsetSize, supersetSize, format); termBytes = in.readBytesRef(); subsetDf = in.readVLong(); supersetDf = in.readVLong(); score = in.readDouble(); aggregations = InternalAggregations.readAggregations(in); }
EmptyBucketInfo(StreamInput in) throws IOException { this(in.readDouble(), in.readDouble(), in.readDouble(), in.readDouble(), InternalAggregations.readAggregations(in)); }
public InternalSearchResponse(StreamInput in) throws IOException { super( SearchHits.readSearchHits(in), in.readBoolean() ? InternalAggregations.readAggregations(in) : null, in.readBoolean() ? Suggest.readSuggest(in) : null, in.readBoolean(), in.readOptionalBoolean(), in.readOptionalWriteable(SearchProfileShardResults::new), in.readVInt() ); }
/** * Read from a stream. */ public InternalRange(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); keyed = in.readBoolean(); int size = in.readVInt(); List<B> ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { String key = in.getVersion().onOrAfter(Version.V_6_4_0) ? in.readString() : in.readOptionalString(); ranges.add(getFactory().createBucket(key, in.readDouble(), in.readDouble(), in.readVLong(), InternalAggregations.readAggregations(in), keyed, format)); } this.ranges = ranges; }
private static Bucket createFromStream(StreamInput in, DocValueFormat format, boolean keyed) throws IOException { String key = in.getVersion().onOrAfter(Version.V_6_4_0) ? in.readString() : in.readOptionalString(); BytesRef from = in.readBoolean() ? in.readBytesRef() : null; BytesRef to = in.readBoolean() ? in.readBytesRef() : null; long docCount = in.readLong(); InternalAggregations aggregations = InternalAggregations.readAggregations(in); return new Bucket(format, keyed, key, from, to, docCount, aggregations); }
aggregations = InternalAggregations.readAggregations(in);
/** * Read from a stream. */ protected InternalSingleBucketAggregation(StreamInput in) throws IOException { super(in); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOException { super(in, subsetSize, supersetSize, format); subsetDf = in.readVLong(); supersetDf = in.readVLong(); term = in.readLong(); score = in.readDouble(); aggregations = InternalAggregations.readAggregations(in); }