com.groupbyinc.flux.index.query.GeoPolygonQueryBuilder.class Maven / Gradle / Ivy
???? 4? 6com/groupbyinc/flux/index/query/GeoPolygonQueryBuilder pLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder GeoPolygonQueryBuilder.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token Fcom/groupbyinc/flux/index/mapper/GeoPointFieldMapper$GeoPointFieldType 4com/groupbyinc/flux/index/mapper/GeoPointFieldMapper GeoPointFieldType NAME Ljava/lang/String; geo_polygon DEFAULT_IGNORE_UNMAPPED Z VALIDATION_METHOD 'Lcom/groupbyinc/flux/common/ParseField; POINTS_FIELD IGNORE_UNMAPPED_FIELD fieldName shell Ljava/util/List; ;Ljava/util/List; validationMethod 5Lcom/groupbyinc/flux/index/query/GeoValidationMethod; ignoreUnmapped %(Ljava/lang/String;Ljava/util/List;)V ()V ( *
+ 3com/groupbyinc/flux/index/query/GeoValidationMethod - DEFAULT / & . 0 % & 2 ' 4 "com/groupbyinc/flux/common/Strings 6 isEmpty (Ljava/lang/CharSequence;)Z 8 9
7 : "java/lang/IllegalArgumentException < fieldName must not be null > (Ljava/lang/String;)V ( @
= A java/lang/String C java/util/List E ()Z 8 G F H !polygon must not be null or empty J get (I)Ljava/lang/Object; L M F N 'com/groupbyinc/flux/common/geo/GeoPoint P size ()I R S F T equals (Ljava/lang/Object;)Z V W
Q X ,too few points defined for geo_polygon query Z ! \ java/util/ArrayList ^ (Ljava/util/Collection;)V ( `
_ a " # c add e W F f start )Lcom/groupbyinc/flux/common/geo/GeoPoint; this 8Lcom/groupbyinc/flux/index/query/GeoPolygonQueryBuilder; points 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException n ( m
p 0com/groupbyinc/flux/common/io/stream/StreamInput r
readString ()Ljava/lang/String; t u
s v readVInt x S
s y (I)V ( {
_ | readGeoPoint +()Lcom/groupbyinc/flux/common/geo/GeoPoint; ~
s ? readFromStream i(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/query/GeoValidationMethod; ? ?
. ? readBoolean ? G
s ? i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeString ? @
? ? writeVInt ? {
? ? iterator ()Ljava/util/Iterator; ? ? F ? java/util/Iterator ? hasNext ? G ? ? next ()Ljava/lang/Object; ? ? ? ?
writeGeoPoint ,(Lcom/groupbyinc/flux/common/geo/GeoPoint;)V ? ?
? ? writeTo ? ?
. ? writeBoolean (Z)V ? ?
? ? point out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; ()Ljava/util/List; setValidationMethod o(Lcom/groupbyinc/flux/index/query/GeoValidationMethod;)Lcom/groupbyinc/flux/index/query/GeoPolygonQueryBuilder; method getValidationMethod 7()Lcom/groupbyinc/flux/index/query/GeoValidationMethod; ;(Z)Lcom/groupbyinc/flux/index/query/GeoPolygonQueryBuilder; doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 1com/groupbyinc/flux/index/query/QueryShardContext ? fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ?
? ? @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery ?
? + 0com/groupbyinc/flux/index/mapper/MappedFieldType ? 3com/groupbyinc/flux/index/query/QueryShardException ? java/lang/StringBuilder ?
? + failed to find geo_point field [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? u
? ? java/lang/Object ? [(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)V ( ?
? ? field [ ? ] is not a geo_point field ? ( ?
Q ? isIgnoreMalformed 8(Lcom/groupbyinc/flux/index/query/GeoValidationMethod;)Z ? ?
. ? lat ()D ? ?
Q ? 'com/groupbyinc/flux/common/geo/GeoUtils ? isValidLatitude (D)Z ? ?
? ? $illegal latitude value [{}] for [{}] ? java/lang/Double ? valueOf (D)Ljava/lang/Double; ? ?
? ? lon ? ?
Q ? isValidLongitude ? ?
? ? %illegal longitude value [{}] for [{}] ? isCoerce ? ?
. normalizePoint .(Lcom/groupbyinc/flux/common/geo/GeoPoint;ZZ)V
? [D name u
? 4com/groupbyinc/flux/common/apache/lucene/geo/Polygon >([D[D[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon;)V (
=com/groupbyinc/flux/common/apache/lucene/document/LatLonPoint newPolygonQuery ?(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
geoPoint p context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; fieldType 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; shellSize lats lons
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder! startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;#$
"% ' %com/groupbyinc/flux/common/ParseField) getPreferredName+ u
*,
startArray.$
"/ 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;.1
"2 value 8(D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;45
"6 endArray81
"9 endObject;1
"< > field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;@A
"B D J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;@F
"G printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)VIJ
K builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent n(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/GeoPolygonQueryBuilder; java/lang/FloatS nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;UV W
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;YZ
[
FIELD_NAME]Z
^ currentName` u a START_OBJECTcZ
d START_ARRAYfZ
g getDeprecationHandler :()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;ij k match M(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Zmn
*o
_ + END_ARRAYrZ
s
parseGeoPoint _(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/geo/GeoPoint;uv
?w +com/groupbyinc/flux/common/ParsingExceptiony getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;{| } &[geo_polygon] query does not support [ ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V (?
z? 1[geo_polygon] query does not support token type [?
] under [? isValue? G
? _name?
D X text? u ? boost?
floatValue ()F?? ? (F)Ljava/lang/Float; ??
T? booleanValue? G ?
fromString I(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/GeoValidationMethod;??
.? %[geo_polygon] unexpected token type [? ( )
? ? ?
? queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
?
T? 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
? ' ?
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; Ljava/lang/Float; currentFieldName token doEquals ;(Lcom/groupbyinc/flux/index/query/GeoPolygonQueryBuilder;)Z java/util/Objects? '(Ljava/lang/Object;Ljava/lang/Object;)Z V?
?? java/lang/Boolean? (Z)Ljava/lang/Boolean; ??
?? other
doHashCode hash ([Ljava/lang/Object;)I??
?? getWriteableName 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z??
? validation_method? ((Ljava/lang/String;[Ljava/lang/String;)V (?
*? l ignore_unmapped?
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable P(Ljava/lang/String;Ljava/util/List;)V
Exceptions =()Ljava/util/List;
SourceFile InnerClasses ! ? ? ! " # ? $ % &