
com.groupbyinc.flux.common.geo.GeoUtils.class Maven / Gradle / Ivy
???? 4. 'com/groupbyinc/flux/common/geo/GeoUtils java/lang/Object
GeoUtils.java )com/groupbyinc/flux/common/geo/GeoUtils$3 )com/groupbyinc/flux/common/geo/GeoUtils$2 )com/groupbyinc/flux/common/geo/GeoUtils$1
8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token MAX_LAT D@V? MIN_LAT?V? MAX_LON@f? MIN_LON?f? LATITUDE Ljava/lang/String; lat LONGITUDE lon # GEOHASH geohash & EARTH_SEMI_MAJOR_AXISAXT?@ EARTH_SEMI_MINOR_AXISAX??? EARTH_MEAN_RADIUSAXM?1^? EARTH_AXIS_RATIO??䈥{!
EARTH_EQUATORA??E|? EARTH_POLAR_DISTANCEAs?e?? TOLERANCE>?????? $assertionsDisabled Z isValidLatitude (D)Z java/lang/Double A isNaN C @
B D
isInfinite F @
B G latitude isValidLongitude longitude geoHashCellWidth (I)D = > N java/lang/AssertionError P ()V R S
Q T level I quadTreeCellWidth geoHashCellHeight quadTreeCellHeight geoHashCellSize L M
\ Y M
^ java/lang/Math ` sqrt (D)D b c
a d w h quadTreeCellSizeC}~?Ƀ? quadTreeLevelsForPrecision (D)I???")^??@???@?? ceil q c
a r round (D)J t u
a v java/lang/Long x numberOfLeadingZeros (J)I z {
y | ratio width part J meters (Ljava/lang/String;)I ,com/groupbyinc/flux/common/unit/DistanceUnit ? METERS .Lcom/groupbyinc/flux/common/unit/DistanceUnit; ? ? ? ? DEFAULT ? ? ? ? parse C(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)D ? ?
? ? k l
? distance geoHashLevelsForPrecision Ncom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/GeohashPrefixTree ? getMaxLevelsPossible ()I ? ?
? ? log ? c
a ?@ bits full left even odd ? l
? normalizeLon@v? centeredModulus (DD)D ? ?
? normalizeLat normalizePoint ,(Lcom/groupbyinc/flux/common/geo/GeoPoint;)V .(Lcom/groupbyinc/flux/common/geo/GeoPoint;ZZ)V ? ?
? point )Lcom/groupbyinc/flux/common/geo/GeoPoint; 'com/groupbyinc/flux/common/geo/GeoPoint ? ()D # ?
? ? ?
? ? ([DZZ)V ? ?
? reset -(DD)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? ? normLat normLon pt [D ([D)V lonLat ? c
? ? shift dividend divisor rtn
parseGeoPoint _(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/geo/GeoPoint; java/io/IOException ? /com/groupbyinc/flux/ElasticsearchParseException ?
? T ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/geo/GeoPoint;Z)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? >(Ljava/lang/Object;Z)Lcom/groupbyinc/flux/common/geo/GeoPoint; java/lang/Throwable ? 5com/groupbyinc/flux/common/xcontent/json/JsonXContent ? contentBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? startObject ? ?
? ?
null_value ? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? endObject ? ?
? ? /com/groupbyinc/flux/common/bytes/BytesReference ? bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput; ? ?
? ? jsonXContent 7Lcom/groupbyinc/flux/common/xcontent/json/JsonXContent; ? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; =com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler INSTANCE ?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler;
createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;
? nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
java/io/InputStream error parsing geopoint =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V R!
?" stream Ljava/io/InputStream; content 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ex Ljava/io/IOException; value Ljava/lang/Object; ignoreZValue java/lang/NumberFormatException-? currentToken1 2 START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;45
6 java/lang/String8
END_OBJECT:5
;
FIELD_NAME=5
> currentName ()Ljava/lang/String;@A B equals (Ljava/lang/Object;)ZDE
9F A$SwitchMap$org$elasticsearch$common$xcontent$XContentParser$Token [IHI J ordinalL ?
M doubleValue (Z)DOP Q latitude must be a numberS ((Ljava/lang/String;[Ljava/lang/Object;)V RU
?V longitude must be a numberX VALUE_STRINGZ5
[ text]A ^ geohash must be a string` 'field must be either [{}], [{}] or [{}]b token [{}] not allowedd 'field must be either lat/lon or geohashf resetFromGeoHash =(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint;hi
?j )[{}] and [{}] must be valid double valuesl field [{}] missingn START_ARRAYp5
q END_ARRAYs5
t VALUE_NUMBERv5
wO ? y assertZValue (ZD)D{|
?} numeric value expected resetFromString >(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/geo/GeoPoint;??
?? geo_point expected? e !Ljava/lang/NumberFormatException; element numberFormatException parsePrecision 7(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)I "java/lang/IllegalArgumentException?
F intValue? ? ? java/lang/Integer? valueOf (I)Ljava/lang/Integer;??
?? =com/groupbyinc/flux/common/xcontent/support/XContentMapValues? nodeIntegerValue (Ljava/lang/Object;)I??
?? ? ?
? checkPrecisionRange (I)I??
? java/lang/StringBuilder?
? T precision too high [? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? ]? toString?A
?? *(Ljava/lang/String;Ljava/lang/Throwable;)V R?
?? e2 $Ljava/lang/IllegalArgumentException; parsedPrecision precision token )Invalid geohash aggregation precision of ? (I)Ljava/lang/StringBuilder;??
?? . Must be between 1 and 12.? (Ljava/lang/String;)V R?
?? maxRadialDistanceMeters abs? c
a? 8com/groupbyinc/flux/common/apache/lucene/util/SloppyMath? haversinMeters (DDDD)D??
?? centerLat centerLon arcDistance lat1 lon1 lat2 lon2
planeDistance???F?R?9 cos? c
a? x y rectangleContainsPoint =(Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle;DD)Z 6com/groupbyinc/flux/common/apache/lucene/geo/Rectangle? minLat? ?? maxLat? ?? crossesDateline ()Z??
?? minLon? ?? maxLon? ?? r 8Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle; distanceValues ?(Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/index/fielddata/SortedNumericDoubleValues; -com/groupbyinc/flux/index/fielddata/FieldData? unwrapSingleton o(Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;)Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;??
?? ?(Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)V R?
? singleton z(Lcom/groupbyinc/flux/index/fielddata/NumericDoubleValues;)Lcom/groupbyinc/flux/index/fielddata/SortedNumericDoubleValues;?
? 2com/groupbyinc/flux/index/fielddata/GeoPointValues ?(Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)V R
,Lcom/groupbyinc/flux/common/geo/GeoDistance; unit geoPointValues 9Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;
fromPoints *[Lcom/groupbyinc/flux/common/geo/GeoPoint; singleValues 4Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;
T this )Lcom/groupbyinc/flux/common/geo/GeoUtils; java/lang/AutoCloseable close S
addSuppressed (Ljava/lang/Throwable;)V
? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; java/lang/Class! desiredAssertionStatus#?
"$
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! &