/** * 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 GeoDistanceQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); distance = in.readDouble(); validationMethod = GeoValidationMethod.readFromStream(in); center = in.readGeoPoint(); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // optimize bounding box was removed in 6.0 in.readOptionalString(); } geoDistance = GeoDistance.readFromStream(in); 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(); } }
/** * 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. */ public GeoDistanceQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); distance = in.readDouble(); validationMethod = GeoValidationMethod.readFromStream(in); center = in.readGeoPoint(); optimizeBbox = in.readOptionalString(); geoDistance = GeoDistance.readFromStream(in); 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(); } }
/** * Read from a stream. */ public GeoDistanceQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); distance = in.readDouble(); validationMethod = GeoValidationMethod.readFromStream(in); center = in.readGeoPoint(); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // optimize bounding box was removed in 6.0 in.readOptionalString(); } geoDistance = GeoDistance.readFromStream(in); ignoreUnmapped = in.readBoolean(); }
/** * Read from a stream. */ public GeoDistanceQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); distance = in.readDouble(); validationMethod = GeoValidationMethod.readFromStream(in); center = in.readGeoPoint(); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // optimize bounding box was removed in 6.0 in.readOptionalString(); } geoDistance = GeoDistance.readFromStream(in); ignoreUnmapped = in.readBoolean(); }
/** * Read from a stream. */ public GeoDistanceRangeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); point = in.readGeoPoint(); from = in.readGenericValue(); to = in.readGenericValue(); includeLower = in.readBoolean(); includeUpper = in.readBoolean(); unit = DistanceUnit.valueOf(in.readString()); geoDistance = GeoDistance.readFromStream(in); optimizeBbox = in.readOptionalString(); validationMethod = GeoValidationMethod.readFromStream(in); 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(); } }