com.groupbyinc.flux.common.geo.builders.GeometryCollectionBuilder.class Maven / Gradle / Ivy
???? 4 Acom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder 4com/groupbyinc/flux/common/geo/builders/ShapeBuilder GeometryCollectionBuilder.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params TYPE -Lcom/groupbyinc/flux/common/geo/GeoShapeType; shapes Ljava/util/List; HLjava/util/List; ()V
java/util/ArrayList
this CLcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 0com/groupbyinc/flux/common/io/stream/StreamInput readVInt ()I !
" readNamedWriteable H(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteable; $ %
& shape {(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; ( )
* i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V java/util/List 2 size 4 ! 3 5 1com/groupbyinc/flux/common/io/stream/StreamOutput 7 writeVInt (I)V 9 :
8 ; iterator ()Ljava/util/Iterator; = > 3 ? java/util/Iterator A hasNext ()Z C D B E next ()Ljava/lang/Object; G H B I writeNamedWriteable 8(Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;)V K L
8 M 6Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; add (Ljava/lang/Object;)Z R S 3 T point {(Lcom/groupbyinc/flux/common/geo/builders/PointBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; 6Lcom/groupbyinc/flux/common/geo/builders/PointBuilder;
multiPoint ?(Lcom/groupbyinc/flux/common/geo/builders/MultiPointBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; ;Lcom/groupbyinc/flux/common/geo/builders/MultiPointBuilder; line ?(Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; ;Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder; multiLine ?(Lcom/groupbyinc/flux/common/geo/builders/MultiLineStringBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; @Lcom/groupbyinc/flux/common/geo/builders/MultiLineStringBuilder; polygon }(Lcom/groupbyinc/flux/common/geo/builders/PolygonBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; 8Lcom/groupbyinc/flux/common/geo/builders/PolygonBuilder; multiPolygon ?(Lcom/groupbyinc/flux/common/geo/builders/MultiPolygonBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; =Lcom/groupbyinc/flux/common/geo/builders/MultiPolygonBuilder; envelope ~(Lcom/groupbyinc/flux/common/geo/builders/EnvelopeBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; 9Lcom/groupbyinc/flux/common/geo/builders/EnvelopeBuilder; circle |(Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; 7Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder;
getShapeAt 9(I)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; *com/groupbyinc/flux/ElasticsearchException p java/lang/StringBuilder r
s GeometryCollection contains u append -(Ljava/lang/String;)Ljava/lang/StringBuilder; w x
s y (I)Ljava/lang/StringBuilder; w {
s | # shapes. + No shape found at index ~ toString ()Ljava/lang/String; ? ?
s ? java/lang/Object ? ((Ljava/lang/String;[Ljava/lang/Object;)V ?
q ? get (I)Ljava/lang/Object; ? ? 3 ? numShapes
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 2com/groupbyinc/flux/common/geo/parsers/ShapeParser ?
FIELD_TYPE 'Lcom/groupbyinc/flux/common/ParseField; ? ? ? ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? ?
? ? ? +com/groupbyinc/flux/common/geo/GeoShapeType ? shapeName ? ?
? ? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? FIELD_GEOMETRIES ? ? ? ?
startArray I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? ? ?
? endArray ? ?
? ? endObject ? ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; contentToWKT ()Ljava/lang/StringBuilder; isEmpty ? D 3 ? EMPTY ? ( ? toWKT ? ?
? , ? ) ? sb Ljava/lang/StringBuilder; type /()Lcom/groupbyinc/flux/common/geo/GeoShapeType;
numDimensions java/lang/IllegalStateException ? Sunable to get number of dimensions, GeometryCollection has not yet been initialized ? (Ljava/lang/String;)V ?
? ? ? !
? build *()Lorg/locationtech/spatial4j/shape/Shape; :
? ? ?
? &org/locationtech/spatial4j/shape/Shape ? /com/groupbyinc/flux/common/geo/XShapeCollection ? SPATIAL_CONTEXT :Lorg/locationtech/spatial4j/context/jts/JtsSpatialContext; ? ? ? F(Ljava/util/List;Lorg/locationtech/spatial4j/context/SpatialContext;)V ?
? ? :Ljava/util/List; hashCode java/util/Objects ? hash ([Ljava/lang/Object;)I ? ?
? ? equals getClass ()Ljava/lang/Class; ? ?
? ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? obj Ljava/lang/Object; other GEOMETRYCOLLECTION ? Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable
SourceFile InnerClasses !
B *? *? Y? ? ? 2 - 3 ? 0*? *? Y? ? +? #=>? *+? '? ? +W???? * , - 0 0 . /
- 8 - 9 : ; ) : / = ? ?
0 1 ? 3+*? ? 6 ? <*? ? @ M,? F ? ,? J ? N+-? N??? * ( O 3 3 P Q A
B * C / D 2 E ? B?
( ) E
*? +? U W*?
( O
H I V W E
*? +? U W*?
V X
M N Y Z E
*? +? U W*?
Y [
R S \ ] E
*? +? U W*?
\ ^
W X _ ` E
*? +? U W*?
_ a
\ ] b c E
*? +? U W*?
b d
a b e f E
*? +? U W*?
e g
f g h i E
*? +? U W*?
h j
k l k l E
*? +? U W*?
k m
p q n o ? O*? ? 6 ? ? 3? qY? sY? tv? z*? ? 6 ? }? z? }? ?? ?? ??*? ? ? ? ? O O , - u v A y / ? ! 4
*? ? 6 ?
} ? ? ? T+? ?W+? ?? ?? ?? ?? ?W+? ?? ?? ?W*? ? @ N-? F ? -? J ? :+,? ?W???+? ?W+? ?? * ? ( O T T ? ? T ? ? " ? ? ? ! ? ? ? G ? J ? O ? ? + B?
? ? ? t? sY? tL*? ? ? ?
+Ŷ zW? W+Ƕ zW+*? ? ? ? ? ʶ zW=*? ? 6 ? %+̶ zW+*? ? ? ? ? ʶ zW????+ζ zW+? <