All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.geo.GeoUtils.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4.'com/groupbyinc/flux/common/geo/GeoUtilsjava/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/XContentParserTokenMAX_LATD@V?MIN_LAT?V?MAX_LON@f?MIN_LON?f?LATITUDELjava/lang/String;lat 	LONGITUDElon#GEOHASHgeohash&EARTH_SEMI_MAJOR_AXISAXT?@EARTH_SEMI_MINOR_AXISAX???EARTH_MEAN_RADIUSAXM?1^?EARTH_AXIS_RATIO??䈥{!
EARTH_EQUATORA??E|?EARTH_POLAR_DISTANCEAs?e??	TOLERANCE>??????$assertionsDisabledZisValidLatitude(D)Zjava/lang/DoubleAisNaNC@
BD
isInfiniteF@
BGlatitudeisValidLongitude	longitudegeoHashCellWidth(I)D=>	Njava/lang/AssertionErrorP()VRS
QTlevelIquadTreeCellWidthgeoHashCellHeightquadTreeCellHeightgeoHashCellSizeLM
\YM
^java/lang/Math`sqrt(D)Dbc
adwhquadTreeCellSizeC}~?Ƀ?quadTreeLevelsForPrecision(D)I???")^??@???@??ceilqc
arround(D)Jtu
avjava/lang/LongxnumberOfLeadingZeros(J)Iz{
y|ratiowidthpartJmeters(Ljava/lang/String;)I,com/groupbyinc/flux/common/unit/DistanceUnit?METERS.Lcom/groupbyinc/flux/common/unit/DistanceUnit;??	??DEFAULT??	??parseC(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)D??
??kl
?distancegeoHashLevelsForPrecisionNcom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/GeohashPrefixTree?getMaxLevelsPossible()I??
??log?c
a?@bitsfullleftevenodd?l
?normalizeLon@v?centeredModulus(DD)D??
?normalizeLatnormalizePoint,(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;??
??normLatnormLonpt[D([D)VlonLat?c
??shiftdividenddivisorrtn
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;??
?parser4Lcom/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?contentBuilder7()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?bytesh(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference;??
??streamInput4()Lcom/groupbyinc/flux/common/io/stream/StreamInput;??
??jsonXContent7Lcom/groupbyinc/flux/common/xcontent/json/JsonXContent;	?9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryEMPTY;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;		=com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandlerINSTANCE?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;$closeResource1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
java/io/InputStreamerror parsing geopoint=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)VR!
?"streamLjava/io/InputStream;content5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;exLjava/io/IOException;valueLjava/lang/Object;ignoreZValuejava/lang/NumberFormatException-?currentToken12START_OBJECT:Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;45	
6java/lang/String8
END_OBJECT:5	
;
FIELD_NAME=5	
>currentName()Ljava/lang/String;@ABequals(Ljava/lang/Object;)ZDE
9FA$SwitchMap$org$elasticsearch$common$xcontent$XContentParser$Token[IHI	JordinalL?

MdoubleValue(Z)DOPQlatitude must be a numberS((Ljava/lang/String;[Ljava/lang/Object;)VRU
?Vlongitude must be a numberXVALUE_STRINGZ5	
[text]A^geohash must be a string`'field must be either [{}], [{}] or [{}]btoken [{}] not allowedd'field must be either lat/lon or geohashfresetFromGeoHash=(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint;hi
?j)[{}] and [{}] must be valid double valueslfield [{}] missingnSTART_ARRAYp5	
q	END_ARRAYs5	
tVALUE_NUMBERv5	
wO?yassertZValue(ZD)D{|
?}numeric value expectedresetFromString>(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/geo/GeoPoint;??
??geo_point expected?e!Ljava/lang/NumberFormatException;elementnumberFormatExceptionparsePrecision7(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)I"java/lang/IllegalArgumentException?

FintValue???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?
?Tprecision too high [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??]?toString?A
??*(Ljava/lang/String;Ljava/lang/Throwable;)VR?
??e2$Ljava/lang/IllegalArgumentException;parsedPrecision	precisiontoken)Invalid geohash aggregation precision of ?(I)Ljava/lang/StringBuilder;??
??. Must be between 1 and 12.?(Ljava/lang/String;)VR?
??maxRadialDistanceMetersabs?c
a?8com/groupbyinc/flux/common/apache/lucene/util/SloppyMath?haversinMeters(DDDD)D??
??	centerLat	centerLonarcDistancelat1lon1lat2lon2
planeDistance???F?R?9cos?c
a?xyrectangleContainsPoint=(Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle;DD)Z6com/groupbyinc/flux/common/apache/lucene/geo/Rectangle?minLat?	??maxLat?	??crossesDateline()Z??
??minLon?	??maxLon?	??r8Lcom/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?unwrapSingletono(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?
?	singletonz(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;unitgeoPointValues9Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;
fromPoints*[Lcom/groupbyinc/flux/common/geo/GeoPoint;singleValues4Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;
Tthis)Lcom/groupbyinc/flux/common/geo/GeoUtils;java/lang/AutoCloseablecloseS
addSuppressed(Ljava/lang/Throwable;)V
?x0Ljava/lang/Throwable;x1Ljava/lang/AutoCloseable;java/lang/Class!desiredAssertionStatus#?
"$
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
SourceFileInnerClasses!&&&&&!"&$%&'(&)+&,.&/1&24&57&8:&;=>!	?@'^"&?E?&?H?&??&????("I)TU W*	J@'^"&?E?&?H?&??&????("K)\] _*	LM'^'?O???QY?U?5
`lhlh`y?o?('VW)
hk*	XM'R?O???QY?U?5
y?o?(VW)
tu*	YM'^'?O???QY?U?8
`lhlh`y?o?('VW)
~?*	ZM'R?O???QY?U?8
y?o?(VW)
??*	[M'z'?O???QY?U??]H?_J''k))kc?e?( 'VWfg)????*	hM'U?O???QY?U?i?e
y?o?(VW)
??*	kl'?	[?O?&???QY?U?&??2?mI&&koo?e95o?s?w7@?}dd6
y???`?(4!:~-.; ??GVW[?)"????!?-?;?G?*?8C	k?'8??*???????(?)?	?l'?
??O?&???QY?U?&?????mI&&koo?e95o?s9????????o?s?w?6l6		hd6
	
??`6	
??`6`?(\	"i~.]9R?W4?W].?W	f%?W
u?W??W??):????"?.?9?@?B?W?]?f?u???*J	?#?.???	??'8??*???????(?)?	?c'2&????(#)?	?c'q)&???G&??&gG?&??	&gG&?() )???!'*
	??'5*???(??)
	??'x$?Y*??RY*??RN-??*-1-1??W?(*$??$?>$?>??)%&'#(	??'5*???(??)
+,	??'?ղO?*?	*???QY?U??*1??
*1???=?*1??
*1???<?o**1???R>*1??**1gR?*1??**1gR?>?-?*\1cR?*\1*1????	?cR?**1???R?(*f^?>?????>??>)J/162T4X5d6f7p8}9?:?=???@?A?F?J?K?M*<@@?)???????
??'?&&(s9??	(c9(?o??	(g9?( &?&?!?)PQRTU#W*?	??'6*??Y?׸ڰ(??)`+??	??';*+?߰(????)e+??	??'4
???M,??W,?*??W,??W,???N:??
?-?::?W?W?W??Y????:?
?-?	-??::?:?
??::?:	-?	-?	?M??Y ,??#?	3Zs?3Z|s~|!f??s???!f?s??p??s???(>0]???$%?&'?()?*+?,>)Nst	uvx!y0x3{;|C}K~Zp~sx|?x?????*?	?f????	?????H??
?????H??
?????+?	??'N}/J/9::*?3?7??*??y 	t#q&n??)?;??	????'?3?;?E?L?t?|??????????????????????????????
??$?B?E?]?b?q????????????????????????
???!?'?1???N?V?b?n?*E??9.?X9J.8K. ??+
?+??	??'%]*?3L+?x???*???????*?_M,???N,??6???:??Y??Y?????,??????????%)*.167?(>9$??1,?W+2??%8?]??V?5)*
???%*+17	9*2?
?
9.?
9.?+??	??'k/?	?%??Y??Y?????????????Ŀ?(/?W)-*!	??'h
#&????&((?ί&(&(c?s?ί(#?#?)!"$*	??'R
&(?ί(*
?
?
?
?))	??'?7(g?k&c?o?k??k9&g?k9
k

kc?e/k?(>7?7?7?7??$?
)23$4	??'?M'*?䗛E'*?瘝<*??)*?)*????)*?)*?????( M??M M#);=K?*	+@???'?-,??:?-???Y-*+?????	Y,-*+??(4-?-	?-
-
')JKL!\*?!RS'3*??()
st
'g*?+??M*,??	+??

?()*M? S'4?%???O?).*@,-"	
D	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy