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

com.groupbyinc.flux.index.query.GeoDistanceQueryBuilder.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4W7com/groupbyinc/flux/index/query/GeoDistanceQueryBuilderqLcom/groupbyinc/flux/index/query/AbstractQueryBuilder;4com/groupbyinc/flux/index/query/AbstractQueryBuilderGeoDistanceQueryBuilder.java5com/groupbyinc/flux/common/xcontent/ToXContent$Params.com/groupbyinc/flux/common/xcontent/ToXContent	Params8com/groupbyinc/flux/common/xcontent/XContentParser$Token2com/groupbyinc/flux/common/xcontent/XContentParserTokenFcom/groupbyinc/flux/index/mapper/GeoPointFieldMapper$GeoPointFieldType4com/groupbyinc/flux/index/mapper/GeoPointFieldMapperGeoPointFieldTypeNAMELjava/lang/String;geo_distanceDEFAULT_DISTANCE_UNIT.Lcom/groupbyinc/flux/common/unit/DistanceUnit;DEFAULT_GEO_DISTANCE,Lcom/groupbyinc/flux/common/geo/GeoDistance;DEFAULT_IGNORE_UNMAPPEDZVALIDATION_METHOD_FIELD'Lcom/groupbyinc/flux/common/ParseField;DISTANCE_TYPE_FIELD
UNIT_FIELDDISTANCE_FIELDIGNORE_UNMAPPED_FIELD	fieldNamedistanceDcenter)Lcom/groupbyinc/flux/common/geo/GeoPoint;geoDistancevalidationMethod5Lcom/groupbyinc/flux/index/query/GeoValidationMethod;ignoreUnmapped(Ljava/lang/String;)V()V02
3'com/groupbyinc/flux/common/geo/GeoPoint5?(DD)V09
6:*+	<*com/groupbyinc/flux/common/geo/GeoDistance>ARC@	?A,	C3com/groupbyinc/flux/index/query/GeoValidationMethodEDEFAULTG.	FH-.	J/	L"com/groupbyinc/flux/common/StringsNisEmpty(Ljava/lang/CharSequence;)ZPQ
OR"java/lang/IllegalArgumentExceptionT#fieldName must not be null or emptyV01
UXjava/lang/StringZ'	\this9Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Vjava/io/IOExceptiona0`
c0com/groupbyinc/flux/common/io/stream/StreamInpute
readString()Ljava/lang/String;gh
fi
readDouble()Dkl
fm()	oreadFromStreami(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/query/GeoValidationMethod;qr
FsreadGeoPoint+()Lcom/groupbyinc/flux/common/geo/GeoPoint;uv
fw`(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/geo/GeoDistance;qy
?zreadBoolean()Z|}
f~in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;	doWriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V1com/groupbyinc/flux/common/io/stream/StreamOutput?writeString?1
??writeDouble(D)V??
??writeTo??
F?
writeGeoPoint,(Lcom/groupbyinc/flux/common/geo/GeoPoint;)V??
??
??writeBoolean(Z)V??
??out3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;pointd(Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;center point must not be null?=(DD)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;latlonM(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;,com/groupbyinc/flux/common/unit/DistanceUnit?G	??{(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;(?
?"distance must not be null or empty?distance unit must not be null?parseq(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/DistanceUnit;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)D??
??"distance must be greater than zero?unitnewDistancej(DLcom/groupbyinc/flux/common/unit/DistanceUnit;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;java/lang/Double?toString(D)Ljava/lang/String;??
??geohash!geohash must not be null or empty?resetFromGeoHash=(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint;??
6?g(Lcom/groupbyinc/flux/common/geo/GeoDistance;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;geoDistance must not be null?.()Lcom/groupbyinc/flux/common/geo/GeoDistance;setValidationMethod8(Lcom/groupbyinc/flux/index/query/GeoValidationMethod;)VmethodgetValidationMethod7()Lcom/groupbyinc/flux/index/query/GeoValidationMethod;<(Z)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;	doToQueryl(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;1com/groupbyinc/flux/index/query/QueryShardContext?fieldMapperF(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;??
??@com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery?
?30com/groupbyinc/flux/index/mapper/MappedFieldType?3com/groupbyinc/flux/index/query/QueryShardException?java/lang/StringBuilder?
?3 failed to find geo_point field [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??]??h
??java/lang/Object?[(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)V0?
??field [?] is not a geo_point field?checkLatLon<()Lcom/groupbyinc/flux/index/query/QueryValidationException;??
?,couldn't validate latitude/ longitude values?p(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V0?
??8com/groupbyinc/flux/index/query/QueryValidationException?isCoerce8(Lcom/groupbyinc/flux/index/query/GeoValidationMethod;)Z??
F'com/groupbyinc/flux/common/geo/GeoUtilsnormalizePoint.(Lcom/groupbyinc/flux/common/geo/GeoPoint;ZZ)V
nameh
?	?l
6?l
6
=com/groupbyinc/flux/common/apache/lucene/document/LatLonPointnewDistanceQueryN(Ljava/lang/String;DDD)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
hasDocValues}
?Fcom/groupbyinc/flux/common/apache/lucene/document/LatLonDocValuesFieldnewSlowDistanceQuery
Ecom/groupbyinc/flux/common/apache/lucene/search/IndexOrDocValuesQueryq(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)V0
 5com/groupbyinc/flux/common/apache/lucene/search/Query"dvQuery7Lcom/groupbyinc/flux/common/apache/lucene/search/Query;shardContext3Lcom/groupbyinc/flux/index/query/QueryShardContext;	fieldType2Lcom/groupbyinc/flux/index/mapper/MappedFieldType;	exception:Lcom/groupbyinc/flux/index/query/QueryValidationException;query
doXContento(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V3com/groupbyinc/flux/common/xcontent/XContentBuilder/startObjectI(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;12
03
startArray52
06value8(D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;89
0:endArray7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;<=
0>%"	@%com/groupbyinc/flux/common/ParseFieldBgetPreferredNameDh
CEfieldJ(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;GH
0I#"	K
?	java/util/LocaleNROOTLjava/util/Locale;PQ	ORtoLowerCase&(Ljava/util/Locale;)Ljava/lang/String;TU
[V[(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;GX
0Y!"	[[(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;G]
0^&"	`J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Gb
0cprintBoostAndQueryName8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Vef
g	endObjecti=
0jbuilder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;fromXContento(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;	r	t	nextToken<()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;vwx
END_OBJECT:Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;z{	
|
FIELD_NAME~{	
currentName?h?START_ARRAY?{	
?
parseGeoPoint?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint;??
?START_OBJECT?{	
?getTokenLocation8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;???%throwParsingExceptionOnMultipleFieldso(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;Ljava/lang/String;)V??
?isValue?}

??equals(Ljava/lang/Object;)Z??
[?doubleValue?l?resetLat,(D)Lcom/groupbyinc/flux/common/geo/GeoPoint;??
6??resetLon??
6??text?h?+com/groupbyinc/flux/common/ParsingException?'[geo_distance] query does not support [?^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V0?
??match(Ljava/lang/String;)Z??
C?VALUE_STRING?{	
?numberValue()Ljava/lang/Number;???$"	?
fromStringB(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/DistanceUnit;??
??@(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoDistance;??
??.lat?endsWith??
[?length()I??
[?	substring(II)Ljava/lang/String;??
[?.lon?
NAME_FIELD?"	?BOOST_FIELD?"	?
floatValue()F???booleanValue?}?I(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/GeoValidationMethod;??
F?resetFromString??
6?1failed to parse [{}] query. unexpected field [{}]?0geo_distance requires 'distance' to be specified?
Xjava/lang/Number?
??(?
???
???
?,?
?boost9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
?	queryNameJ(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
/?
parser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;tokenFcurrentFieldName	vDistanceLjava/lang/Object;qb
doHashCodevalueOf(D)Ljava/lang/Double;

?java/lang/Boolean(Z)Ljava/lang/Boolean;

java/util/Objectshash([Ljava/lang/Object;)I
doEquals<(Lcom/groupbyinc/flux/index/query/GeoDistanceQueryBuilder;)Z'(Ljava/lang/Object;Ljava/lang/Object;)Z?
otherisIgnoreMalformed"?
F#getLat%l
6&isValidLatitude(D)Z()
*"center point latitude is invalid: ,(D)Ljava/lang/StringBuilder;?.
?/addValidationError?(Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryValidationException;)Lcom/groupbyinc/flux/index/query/QueryValidationException;12
3getLon5l
66isValidLongitude8)
9#center point longitude is invalid: ;validationExceptiongetWriteableName9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z
@validation_methodC((Ljava/lang/String;[Ljava/lang/String;)V0E
CF
distance_typeH?(ignore_unmappedL
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions	Signature
SourceFileInnerClasses!NN !"#"$"%"&"'()*+,-./01O??*?4*?6Y77?;?=*?B?D*?I?K*?M+?S?
?UYW?Y?*+?]?P?^_?'Q&	THJL#N(U/V9X>YR?9[0`O?Z*+?d*?6Y77?;?=*?B?D*?I?K*?M*+?j?]*+?n?p*+?t?K*+?x?=*+?{?D*+??M?PZ^_Z??Q2_HJL$N)`1a9bAcIdQeYfSb??O}1+*?]??+*?p??*?K+??+*?=??*?D+??+*?M???P1^_1??Qjklm n(o0pSb'hO/*?]?P^_Qt??O^+?
?UY??Y?*+?=*?P^_?+Q{|~R??OQ*?6Y')?;?=*?P ^_?)?)Q
?
??vO/*?=?P^_Q?(?O=	*+?????P	^_	(Q?(?O??+?S?
?UY??Y?,?
?UY??Y?+,????J)??
?UY??Y?*)?p*?P*?^_?(??(?)Q&	?????(?.?8?=?R
?(?OH
*'??-???P 
^_
()
?Q?(lO/*?p?P^_Q???Oe+?S?
?UY??Y?*?=+??W*?P^_?Q????R,?O^+?
?UYƷY?*+?D*?P^_,Q????R,?O/*?D?P^_Q???O>*+?K?P^_?.Q
????O/*?K?P^_Q?/?O?*?M*?P^_/Q
??/}O/*?M?P^_Q???O??+*?]??M,?:*?M???Y?ذ??Y+??Y????*?]????????,??+??Y+??Y????*?]????????*??N-???Y+?-????*?K??*?=?,?
*?=?*?=?*?p?:,??+,?
*?=?*?=?*?p?:?Y?!:?P>?
$%?^_?&'	?()xt*+?2,%QF?	?
???D?K?s?x?|??????????????R??'.???I#Sb-.O?w+?4W+*?]?7*?=??;*?=??;??W+?A?F*?p?JW+?L?F*?D?M?S?W?ZW+?\?F*?K?_W+?a?F*?M?dW*+?h+?kW?P w^_wlmwnoQ&	'6	N
]lq
vSb	pqO6
?EN:?6Y77?;:::?s:?u:	:
6*?yYL?}?=+???*??:???+???:*??W???+????*????*??::*?yYL?}??+???*??:???+?????????*????W???????*????W???????*????W?????Y*????Y????????????????+?????A??? +???*??:???*??:??ٲ????*????:????L???*????:	???ɶ̙&*????W??ɶ?d??:??yֶ̙&*????W??ֶ?d??:??K?????
*??N??6?????
*??E??!?a???*??6???\???*????:
????*????W:??ڻ?Y*?????YSYS??????Y*????????Y??:???????W??[??W??W
?

??	??W$??W-?W?W?P????4?{???????+?'?	
!??&?,	)?-.
,?/?]_Q"H!&),:A L!S"W#a$h%w'(?)?*?+?,?-?.?/?0?1?2?4$9.:9;@<K>V@aAoBzC?D?E?F?G?H?I?J?K?LMNO$P/Q=SBTNUUWt^y_?b?c?d?f?h?i?j?l?m?n?o?pRr?,[[6[???F?
[[6[???F?![ ?+#
--?%Sb?O[1??Y*?=SY*?DSY*?p?SY*?KSY*?M?S??P1^_QuO?^*?]+?]? ?Q*?p+?p??E*?K+?K? ?7*?=+?=? ?)*?D+?D? ?*?M?+?M?? ???P^^_^!_Qz"|0}>~H]zR?\@??O?j*?K?$??L*?=?'?+?#*??Y??-??*?=?'?0??+?4L*?=?7?:?#*??Y??hO-?P^_Q?D?O3	*+??A?P	^_Q1B2O?b???s?B?u?CYD?[?G?\?CYI?[?G?L?CYJ?[?G???CYK?[?G?A?CYM?[?G?a?Q57>?.@?APBTUV
	
D		




© 2015 - 2024 Weber Informatics LLC | Privacy Policy