/** * Read from a stream. */ public CircleBuilder(StreamInput in) throws IOException { center(readFromStream(in)); radius(in.readDouble(), DistanceUnit.readFromStream(in)); }
/** * Read from a stream. */ public GeoDistanceAggregationBuilder(StreamInput in) throws IOException { super(in, InternalGeoDistance.FACTORY.getValueSourceType(), InternalGeoDistance.FACTORY.getValueType()); origin = new GeoPoint(in.readDouble(), in.readDouble()); int size = in.readVInt(); ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { ranges.add(new Range(in)); } keyed = in.readBoolean(); distanceType = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public GeoDistanceSortBuilder(StreamInput in) throws IOException { fieldName = in.readString(); points.addAll((List<GeoPoint>) in.readGenericValue()); geoDistance = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); order = SortOrder.readFromStream(in); sortMode = in.readOptionalWriteable(SortMode::readFromStream); nestedFilter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedPath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { nestedSort = in.readOptionalWriteable(NestedSortBuilder::new); } validation = GeoValidationMethod.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { ignoreUnmapped = in.readBoolean(); } }
/** * Read from a stream. */ public CircleBuilder(StreamInput in) throws IOException { center(readFromStream(in)); radius(in.readDouble(), DistanceUnit.readFromStream(in));; }
/** * Read from a stream. */ public CircleBuilder(StreamInput in) throws IOException { center(readFromStream(in)); radius(in.readDouble(), DistanceUnit.readFromStream(in));; }
/** * Read from a stream. */ public CircleBuilder(StreamInput in) throws IOException { center(readFromStream(in)); radius(in.readDouble(), DistanceUnit.readFromStream(in)); }
/** * Read from a stream. */ public GeoDistanceAggregationBuilder(StreamInput in) throws IOException { super(in, InternalGeoDistance.FACTORY.getValueSourceType(), InternalGeoDistance.FACTORY.getValueType()); origin = new GeoPoint(in.readDouble(), in.readDouble()); int size = in.readVInt(); ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { ranges.add(new Range(in)); } keyed = in.readBoolean(); distanceType = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); }
/** * Read from a stream. */ public GeoDistanceAggregationBuilder(StreamInput in) throws IOException { super(in, InternalGeoDistance.FACTORY.getValueSourceType(), InternalGeoDistance.FACTORY.getValueType()); origin = new GeoPoint(in.readDouble(), in.readDouble()); int size = in.readVInt(); ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { ranges.add(new Range(in)); } keyed = in.readBoolean(); distanceType = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); }
/** * Read from a stream. */ public GeoDistanceAggregationBuilder(StreamInput in) throws IOException { super(in, InternalGeoDistance.FACTORY.getValueSourceType(), InternalGeoDistance.FACTORY.getValueType()); origin = new GeoPoint(in.readDouble(), in.readDouble()); int size = in.readVInt(); ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { ranges.add(new Range(in)); } keyed = in.readBoolean(); distanceType = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public GeoDistanceSortBuilder(StreamInput in) throws IOException { fieldName = in.readString(); points.addAll((List<GeoPoint>) in.readGenericValue()); geoDistance = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); order = SortOrder.readFromStream(in); sortMode = in.readOptionalWriteable(SortMode::readFromStream); nestedFilter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedPath = in.readOptionalString(); validation = GeoValidationMethod.readFromStream(in); }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public GeoDistanceSortBuilder(StreamInput in) throws IOException { fieldName = in.readString(); points.addAll((List<GeoPoint>) in.readGenericValue()); geoDistance = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); order = SortOrder.readFromStream(in); sortMode = in.readOptionalWriteable(SortMode::readFromStream); nestedFilter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedPath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { nestedSort = in.readOptionalWriteable(NestedSortBuilder::new); } validation = GeoValidationMethod.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { ignoreUnmapped = in.readBoolean(); } }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public GeoDistanceSortBuilder(StreamInput in) throws IOException { fieldName = in.readString(); points.addAll((List<GeoPoint>) in.readGenericValue()); geoDistance = GeoDistance.readFromStream(in); unit = DistanceUnit.readFromStream(in); order = SortOrder.readFromStream(in); sortMode = in.readOptionalWriteable(SortMode::readFromStream); nestedFilter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedPath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { nestedSort = in.readOptionalWriteable(NestedSortBuilder::new); } validation = GeoValidationMethod.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { ignoreUnmapped = in.readBoolean(); } }