Uses of Class
org.elasticsearch.common.unit.DistanceUnit
-
-
Uses of DistanceUnit in org.elasticsearch.common.geo
Methods in org.elasticsearch.common.geo with parameters of type DistanceUnit Modifier and Type Method Description doubleGeoDistance. calculate(double srcLat, double srcLon, double dstLat, double dstLon, DistanceUnit unit)compute the distance between two points using the selected algorithm (PLANE, ARC)static SortedNumericDoubleValuesGeoUtils. distanceValues(GeoDistance distance, DistanceUnit unit, MultiGeoPointValues geoPointValues, GeoPoint... fromPoints)Return aSortedNumericDoubleValuesinstance that returns the distances to a list of geo-points for each document. -
Uses of DistanceUnit in org.elasticsearch.common.geo.builders
Methods in org.elasticsearch.common.geo.builders that return DistanceUnit Modifier and Type Method Description DistanceUnitCircleBuilder. unit()Get the radius unit of the circleMethods in org.elasticsearch.common.geo.builders with parameters of type DistanceUnit Modifier and Type Method Description CircleBuilderCircleBuilder. radius(double radius, DistanceUnit unit)Set the radius of the circle -
Uses of DistanceUnit in org.elasticsearch.common.unit
Fields in org.elasticsearch.common.unit declared as DistanceUnit Modifier and Type Field Description static DistanceUnitDistanceUnit. DEFAULTDistanceUnitDistanceUnit.Distance. unitMethods in org.elasticsearch.common.unit that return DistanceUnit Modifier and Type Method Description static DistanceUnitDistanceUnit. fromString(String unit)Convert a String to aDistanceUnitstatic DistanceUnitDistanceUnit. parseUnit(String distance, DistanceUnit defaultUnit)Parses the suffix of a given distance string and return the correspondingDistanceUnitstatic DistanceUnitDistanceUnit. readFromStream(StreamInput in)Read aDistanceUnitfrom aStreamInput.static DistanceUnitDistanceUnit. valueOf(String name)Returns the enum constant of this type with the specified name.static DistanceUnit[]DistanceUnit. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.elasticsearch.common.unit with parameters of type DistanceUnit Modifier and Type Method Description doubleDistanceUnit. convert(double distance, DistanceUnit unit)Convert a given value into another unitstatic doubleDistanceUnit. convert(double distance, DistanceUnit from, DistanceUnit to)Converts the given distance from the given DistanceUnit, to the given DistanceUnitDistanceUnit.DistanceDistanceUnit.Distance. convert(DistanceUnit unit)Converts aDistanceUnit.Distancevalue given in a specificDistanceUnitinto a value equal to the specified value but in a otherDistanceUnit.doubleDistanceUnit. parse(String distance, DistanceUnit defaultUnit)Parses a given distance and converts it to this unit.static doubleDistanceUnit. parse(String distance, DistanceUnit defaultUnit, DistanceUnit to)Parses a given distance and converts it to the specified unit.static DistanceUnitDistanceUnit. parseUnit(String distance, DistanceUnit defaultUnit)Parses the suffix of a given distance string and return the correspondingDistanceUnitConstructors in org.elasticsearch.common.unit with parameters of type DistanceUnit Constructor Description Distance(double value, DistanceUnit unit) -
Uses of DistanceUnit in org.elasticsearch.index.query
Fields in org.elasticsearch.index.query declared as DistanceUnit Modifier and Type Field Description static DistanceUnitGeoDistanceQueryBuilder. DEFAULT_DISTANCE_UNITDefault for distance unit computation.Methods in org.elasticsearch.index.query with parameters of type DistanceUnit Modifier and Type Method Description GeoDistanceQueryBuilderGeoDistanceQueryBuilder. distance(double distance, DistanceUnit unit)Sets the distance from the center for this query.GeoDistanceQueryBuilderGeoDistanceQueryBuilder. distance(String distance, DistanceUnit unit)Sets the distance from the center for this query. -
Uses of DistanceUnit in org.elasticsearch.search.aggregations.bucket.range
Methods in org.elasticsearch.search.aggregations.bucket.range that return DistanceUnit Modifier and Type Method Description DistanceUnitGeoDistanceAggregationBuilder. unit()Methods in org.elasticsearch.search.aggregations.bucket.range with parameters of type DistanceUnit Modifier and Type Method Description GeoDistanceAggregationBuilderGeoDistanceAggregationBuilder. unit(DistanceUnit unit)Constructors in org.elasticsearch.search.aggregations.bucket.range with parameters of type DistanceUnit Constructor Description GeoDistanceRangeAggregatorFactory(String name, ValuesSourceConfig<ValuesSource.GeoPoint> config, GeoPoint origin, GeoDistanceAggregationBuilder.Range[] ranges, DistanceUnit unit, GeoDistance distanceType, boolean keyed, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metaData) -
Uses of DistanceUnit in org.elasticsearch.search.sort
Methods in org.elasticsearch.search.sort that return DistanceUnit Modifier and Type Method Description DistanceUnitGeoDistanceSortBuilder. unit()Returns the distance unit to use.Methods in org.elasticsearch.search.sort with parameters of type DistanceUnit Modifier and Type Method Description GeoDistanceSortBuilderGeoDistanceSortBuilder. unit(DistanceUnit unit)The distance unit to use. -
Uses of DistanceUnit in org.elasticsearch.search.suggest.completion.context
Methods in org.elasticsearch.search.suggest.completion.context with parameters of type DistanceUnit Modifier and Type Method Description GeoContextMapping.BuilderGeoContextMapping.Builder. precision(double precision, DistanceUnit unit)Set the precision use o make suggestions
-