Enum GeoS2AnalyzerProperties.GeoS2Format
java.lang.Object
java.lang.Enum<GeoS2AnalyzerProperties.GeoS2Format>
com.arangodb.entity.arangosearch.analyzer.GeoS2AnalyzerProperties.GeoS2Format
- All Implemented Interfaces:
Serializable
,Comparable<GeoS2AnalyzerProperties.GeoS2Format>
- Enclosing class:
- GeoS2AnalyzerProperties
public static enum GeoS2AnalyzerProperties.GeoS2Format
extends Enum<GeoS2AnalyzerProperties.GeoS2Format>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStore each latitude and longitude value as an 8-byte floating-point value (16 bytes per coordinate pair).Store each latitude and longitude value as an 4-byte integer value (8 bytes per coordinate pair).Store each longitude-latitude pair in the native format of Google S2 which is used for geo-spatial calculations (24 bytes per coordinate pair). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static GeoS2AnalyzerProperties.GeoS2Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
latLngDouble
Store each latitude and longitude value as an 8-byte floating-point value (16 bytes per coordinate pair). This format preserves numeric values exactly and is more compact than the VelocyPack format used byGeoJSONAnalyzer
. (default) -
latLngInt
Store each latitude and longitude value as an 4-byte integer value (8 bytes per coordinate pair). This is the most compact format but the precision is limited to approximately 1 to 10 centimeters. -
s2Point
Store each longitude-latitude pair in the native format of Google S2 which is used for geo-spatial calculations (24 bytes per coordinate pair). This is not a particular compact format but it reduces the number of computations necessary when you execute geo-spatial queries. This format preserves numeric values exactly.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-