com.groupbyinc.flux.join.mapper.ParentJoinFieldMapper.class Maven / Gradle / Ivy
???? 4N 5com/groupbyinc/flux/join/mapper/ParentJoinFieldMapper ,com/groupbyinc/flux/index/mapper/FieldMapper ParentJoinFieldMapper.java Ccom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper$JoinFieldType
JoinFieldType @com/groupbyinc/flux/join/mapper/ParentJoinFieldMapper$TypeParser
TypeParser =com/groupbyinc/flux/join/mapper/ParentJoinFieldMapper$Builder Builder >com/groupbyinc/flux/join/mapper/ParentJoinFieldMapper$Defaults Defaults Ecom/groupbyinc/flux/join/mapper/MetaJoinFieldMapper$MetaJoinFieldType 3com/groupbyinc/flux/join/mapper/MetaJoinFieldMapper MetaJoinFieldType 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/index/mapper/FieldMapper$MultiFields ! MultiFields 3com/groupbyinc/flux/index/mapper/FieldMapper$CopyTo $ CopyTo 6com/groupbyinc/flux/index/mapper/ParseContext$Document ' -com/groupbyinc/flux/index/mapper/ParseContext ) Document %java/lang/invoke/MethodHandles$Lookup , java/lang/invoke/MethodHandles . Lookup NAME Ljava/lang/String; join 3 CONTENT_TYPE uniqueFieldMapper 5Lcom/groupbyinc/flux/join/mapper/MetaJoinFieldMapper; parentIdFields Ljava/util/List; GLjava/util/List; eagerGlobalOrdinals Z $assertionsDisabled getMapper i(Lcom/groupbyinc/flux/index/mapper/MapperService;)Lcom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper; _parent_join @ .com/groupbyinc/flux/index/mapper/MapperService B fullName F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; D E
C F 9()Lcom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper; > H
I service 0Lcom/groupbyinc/flux/index/mapper/MapperService; fieldType GLcom/groupbyinc/flux/join/mapper/MetaJoinFieldMapper$MetaJoinFieldType; getParentIdFieldName 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java/lang/StringBuilder Q ()V S T
R U append -(Ljava/lang/String;)Ljava/lang/StringBuilder; W X
R Y # [ toString ()Ljava/lang/String; ] ^
R _
joinFieldName
parentName checkIndexCompatibility >(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/lang/String;)V 'com/groupbyinc/flux/index/IndexSettings e getIndexMetaData 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; g h
f i 2com/groupbyinc/flux/cluster/metadata/IndexMetaData k isRoutingPartitionedIndex ()Z m n
l o java/lang/IllegalStateException q cannot create join field [ s ] for the partitioned index [ u getIndex #()Lcom/groupbyinc/flux/index/Index; w x
f y com/groupbyinc/flux/index/Index { getName } ^
| ~ ] ? (Ljava/lang/String;)V S ?
r ? isSingleType ? n
f ? ] on multi-types index [ ? settings )Lcom/groupbyinc/flux/index/IndexSettings; name checkObjectOrNested C(Lcom/groupbyinc/flux/index/mapper/ContentPath;Ljava/lang/String;)V ,com/groupbyinc/flux/index/mapper/ContentPath ?
pathAsText &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? . ? java/lang/String ? contains (Ljava/lang/CharSequence;)Z ? ?
? ? "java/lang/IllegalArgumentException ? join field [ ? 6] cannot be added inside an object or in a multi-field ?
? ? path .Lcom/groupbyinc/flux/index/mapper/ContentPath; checkParentFields %(Ljava/lang/String;Ljava/util/List;)V java/util/HashSet ?
? U java/util/ArrayList ?
? U java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ?
java/util/Set ? java/util/Iterator ? hasNext ? n ? ? next ()Ljava/lang/Object; ? ? ? ? 3com/groupbyinc/flux/join/mapper/ParentIdFieldMapper ? getChildren ()Ljava/util/Collection; ? ?
? ? java/util/Collection ? ? ? add (Ljava/lang/Object;)Z ? ? ? ? [ ? ] cannot have multiple parents ? ? ? isEmpty ? n ? ? #invalid definition for join field [ ? ]:
? java/lang/Object ?
? _ child mapper 5Lcom/groupbyinc/flux/join/mapper/ParentIdFieldMapper; mappers children #Ljava/util/Set; Ljava/util/Set; conflicts $Ljava/util/List; ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/join/mapper/MetaJoinFieldMapper;Ljava/util/List;Z)V
FIELD_TYPE 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ? ? empty <()Lcom/groupbyinc/flux/index/mapper/FieldMapper$MultiFields; ? ?
" ? 7()Lcom/groupbyinc/flux/index/mapper/FieldMapper$CopyTo; ? ?
% ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/mapper/FieldMapper$MultiFields;Lcom/groupbyinc/flux/index/mapper/FieldMapper$CopyTo;)V S ?
? 8 9 ? 6 7 ? setFieldMapper :(Lcom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper;)V ? ?
? ; < ? this 7Lcom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper;
simpleName
indexSettings .Lcom/groupbyinc/flux/common/settings/Settings; contentType clone 0()Lcom/groupbyinc/flux/index/mapper/FieldMapper;
G()Lcom/groupbyinc/flux/join/mapper/ParentJoinFieldMapper$JoinFieldType; 4()Lcom/groupbyinc/flux/index/mapper/MappedFieldType; M
(Ljava/util/Collection;)V S
? ;Ljava/util/List; hasParent (Ljava/lang/String;)Z stream ()Ljava/util/stream/Stream; ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
? lambda$hasParent$0 J(Ljava/lang/String;Lcom/groupbyinc/flux/join/mapper/ParentIdFieldMapper;)Z
8(Lcom/groupbyinc/flux/join/mapper/ParentIdFieldMapper;)Z" test 2(Ljava/lang/String;)Ljava/util/function/Predicate;$% & java/util/stream/Stream( anyMatch !(Ljava/util/function/Predicate;)Z*+), hasChild lambda$hasChild$1/
01 & getParentIdFieldMapper J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/join/mapper/ParentIdFieldMapper;
getParentName6 ^
?7 equals9 ?
?: ? ? ?< isParent doMerge -(Lcom/groupbyinc/flux/index/mapper/Mapper;Z)V?@
A45
C cannot remove parent [E ] in join field [G ? ^
I cannot create parent [K ] from an existing childM cannot create child [O ] from an existing parentQ cannot remove child [S merge Z(Lcom/groupbyinc/flux/index/mapper/Mapper;Z)Lcom/groupbyinc/flux/index/mapper/FieldMapper;UV
?W invalid update for join field [Y java/util/Collections[ unmodifiableList "(Ljava/util/List;)Ljava/util/List;]^
\_
W merged self mergeWithMapper mergeWith )Lcom/groupbyinc/flux/index/mapper/Mapper; updateAllTypes
joinMergeWith newParentIdFields updateFieldType ?(Ljava/util/Map;)Lcom/groupbyinc/flux/index/mapper/FieldMapper;jk
l
?l
l fullNameToFieldType ULjava/util/Map; Ljava/util/Map; fieldMapper
newMappers parseCreateField B(Lcom/groupbyinc/flux/index/mapper/ParseContext;Ljava/util/List;)V java/io/IOExceptionw 'java/lang/UnsupportedOperationExceptiony Eparsing is implemented in parse(), this method should NEVER be called{
z ? context /Lcom/groupbyinc/flux/index/mapper/ParseContext; fields QLjava/util/List; parse Z(Lcom/groupbyinc/flux/index/mapper/ParseContext;)Lcom/groupbyinc/flux/index/mapper/Mapper; 0()Lcom/groupbyinc/flux/index/mapper/ContentPath; ??
*? ? ^
? ? ?
?? parser 6()Lcom/groupbyinc/flux/common/xcontent/XContentParser;??
*? currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ? nextToken?? ?
END_OBJECT?? ?
FIELD_NAME?? ? currentName? ^ ? VALUE_STRING?? ? ? text? ^ ? parent? unknown field name [? VALUE_NUMBER?? ? numberValue ()Ljava/lang/Number;?? ? 1] expected START_OBJECT or VALUE_STRING but was: ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; W?
R? unknown join name [?
] for field [? $[parent] is missing for join field [?
sourceToParse 2()Lcom/groupbyinc/flux/index/mapper/SourceToParse;??
*? .com/groupbyinc/flux/index/mapper/SourceToParse? routing? ^
?? %[routing] is missing for join field [? = < ? java/lang/AssertionError?
? U createExternalValueContext C(Ljava/lang/Object;)Lcom/groupbyinc/flux/index/mapper/ParseContext;??
*???
?? id? ^
?? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef? (Ljava/lang/CharSequence;)V S?
?? 7com/groupbyinc/flux/common/apache/lucene/document/Field? M
?
I ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexableFieldType;)V S?
?? doc :()Lcom/groupbyinc/flux/index/mapper/ParseContext$Document;??
*? B(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexableField;)V ??
(? Fcom/groupbyinc/flux/common/apache/lucene/document/SortedDocValuesField? M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V S?
?? remove? T
?? currentFieldName externalContext token
parentIdField childParentIdField binaryValue 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; field 9Lcom/groupbyinc/flux/common/apache/lucene/document/Field; doXContentBody p(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;ZLcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V type ^
3com/groupbyinc/flux/common/xcontent/XContentBuilder [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?
eager_global_ordinals J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?
relations startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
size ()I ? ](Ljava/lang/String;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?
endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; includeDefaults params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; H
$ :(Ljava/util/Map;)Lcom/groupbyinc/flux/index/mapper/Mapper;
l $java/lang/CloneNotSupportedException(
access$000 O P
+ x0 x1
access$100 ? ?
0
access$200 ? ?
3
access$300 c d
6 java/lang/Class9 desiredAssertionStatus; n
:<
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable \(Ljava/lang/String;Ljava/util/List;)V ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/join/mapper/MetaJoinFieldMapper;Ljava/util/List;Z)V A()Ljava/util/Iterator; ?(Ljava/util/Map;)Lcom/groupbyinc/flux/index/mapper/FieldMapper;
Exceptions ?(Lcom/groupbyinc/flux/index/mapper/ParseContext;Ljava/util/List;)V BootstrapMethods
SourceFile InnerClasses 1 1 2 > 4 5 2 > 4 6 7 8 9 ? : ; <