public enum GeoDistance extends Enum<GeoDistance>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
GeoDistance.ArcFixedSourceDistance |
static interface |
GeoDistance.DistanceBoundingCheck |
static class |
GeoDistance.FactorFixedSourceDistance |
static interface |
GeoDistance.FixedSourceDistance |
static class |
GeoDistance.FixedSourceDistanceBase
Basic implementation of
GeoDistance.FixedSourceDistance. |
static class |
GeoDistance.Meridian180DistanceBoundingCheck |
static class |
GeoDistance.PlaneFixedSourceDistance |
static class |
GeoDistance.SimpleDistanceBoundingCheck |
static class |
GeoDistance.SloppyArcFixedSourceDistance |
| 列挙型定数と説明 |
|---|
ARC
Calculates distance as points on a globe.
|
FACTOR
Calculates distance factor.
|
PLANE
Calculates distance as points on a plane.
|
SLOPPY_ARC
Calculates distance as points on a globe in a sloppy way.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static org.elasticsearch.common.geo.GeoDistance.AlwaysDistanceBoundingCheck |
ALWAYS_INSTANCE |
static GeoDistance |
DEFAULT
Default
GeoDistance function. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
abstract double |
calculate(double sourceLatitude,
double sourceLongitude,
double targetLatitude,
double targetLongitude,
DistanceUnit unit) |
static GeoDistance.DistanceBoundingCheck |
distanceBoundingCheck(double sourceLatitude,
double sourceLongitude,
double distance,
DistanceUnit unit) |
static SortedNumericDoubleValues |
distanceValues(MultiGeoPointValues geoPointValues,
GeoDistance.FixedSourceDistance... distances)
Return a
SortedNumericDoubleValues instance that returns the distances to a list of geo-points for each document. |
abstract GeoDistance.FixedSourceDistance |
fixedSourceDistance(double sourceLatitude,
double sourceLongitude,
DistanceUnit unit) |
static GeoDistance |
fromString(String name)
Get a
GeoDistance according to a given name. |
abstract double |
normalize(double distance,
DistanceUnit unit) |
static GeoDistance |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static GeoDistance[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final GeoDistance PLANE
ARC.public static final GeoDistance FACTOR
public static final GeoDistance ARC
public static final GeoDistance SLOPPY_ARC
public static final GeoDistance DEFAULT
GeoDistance function. This method should be used, If no specific function has been selected.
This is an alias for SLOPPY_ARCpublic static final org.elasticsearch.common.geo.GeoDistance.AlwaysDistanceBoundingCheck ALWAYS_INSTANCE
public static GeoDistance[] values()
for(GeoDistance c: GeoDistance.values()) System.out.println(c);
public static GeoDistance valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public abstract double normalize(double distance,
DistanceUnit unit)
public abstract double calculate(double sourceLatitude,
double sourceLongitude,
double targetLatitude,
double targetLongitude,
DistanceUnit unit)
public abstract GeoDistance.FixedSourceDistance fixedSourceDistance(double sourceLatitude, double sourceLongitude, DistanceUnit unit)
public static GeoDistance.DistanceBoundingCheck distanceBoundingCheck(double sourceLatitude, double sourceLongitude, double distance, DistanceUnit unit)
public static GeoDistance fromString(String name)
GeoDistance according to a given name. Valid values are
GeoDistance.PLANEGeoDistance.SLOPPY_ARCGeoDistance.FACTORGeoDistance.ARCname - name of the GeoDistanceGeoDistancepublic static SortedNumericDoubleValues distanceValues(MultiGeoPointValues geoPointValues, GeoDistance.FixedSourceDistance... distances)
SortedNumericDoubleValues instance that returns the distances to a list of geo-points for each document.Copyright © 2009–2016. All rights reserved.