com.groupbyinc.flux.index.mapper.MapperMergeValidator.class Maven / Gradle / Ivy
???? 4` 5com/groupbyinc/flux/index/mapper/MapperMergeValidator java/lang/Object MapperMergeValidator.java 3com/groupbyinc/flux/index/mapper/FieldMapper$CopyTo ,com/groupbyinc/flux/index/mapper/FieldMapper CopyTo 4com/groupbyinc/flux/index/mapper/ObjectMapper$Nested -com/groupbyinc/flux/index/mapper/ObjectMapper
Nested %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup ()V
this 7Lcom/groupbyinc/flux/index/mapper/MapperMergeValidator; validateMapperStructure ?(Ljava/lang/String;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;Z)V checkFieldUniqueness ?(Ljava/lang/String;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V
checkObjectsCompatibility )(Ljava/util/Collection;Ljava/util/Map;Z)V ! "
# type Ljava/lang/String;
objectMappers GLjava/util/Collection; Ljava/util/Collection; fieldMappers FLjava/util/Collection; fieldAliasMappers KLjava/util/Collection; fullPathObjectMappers RLjava/util/Map; Ljava/util/Map;
fieldTypes 2Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup; updateAllTypes Z java/util/HashSet 5
6 java/util/Collection 8 iterator ()Ljava/util/Iterator; : ; 9 <
java/util/Set > java/util/Iterator @ hasNext ()Z B C A D next ()Ljava/lang/Object; F G A H fullPath ()Ljava/lang/String; J K
L add (Ljava/lang/Object;)Z N O ? P "java/lang/IllegalArgumentException R java/lang/StringBuilder T
U Object mapper [ W append -(Ljava/lang/String;)Ljava/lang/StringBuilder; Y Z
U [ (] is defined twice in mapping for type [ ] ] _ toString a K
U b (Ljava/lang/String;)V d
S e stream ()Ljava/util/stream/Stream; g h 9 i java/util/stream/Stream k concat M(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream; m n l o "java/lang/invoke/LambdaMetafactory q 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; s t
r u v (Ljava/lang/Object;)V x lambda$checkFieldUniqueness$0 \(Ljava/util/Set;Ljava/lang/String;Ljava/util/Set;Lcom/groupbyinc/flux/index/mapper/Mapper;)V z {
| } ,(Lcom/groupbyinc/flux/index/mapper/Mapper;)V accept O(Ljava/util/Set;Ljava/lang/String;Ljava/util/Set;)Ljava/util/function/Consumer; ? ? ? forEach (Ljava/util/function/Consumer;)V ? ? l ? ? < java/lang/String ?
java/util/Map ? containsKey ? O ? ? [ ? $] is defined as a field in mapping [ ? <] but this name is already used for an object in other types ? 0com/groupbyinc/flux/index/mapper/FieldTypeLookup ? get F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ?
? ? &] is defined as an object in mapping [ ? :] but this name is already used for a field in other types ? objectMapper /Lcom/groupbyinc/flux/index/mapper/ObjectMapper; fieldName
objectPath objectFullNames #Ljava/util/Set; Ljava/util/Set;
fieldNames &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? merge [(Lcom/groupbyinc/flux/index/mapper/Mapper;Z)Lcom/groupbyinc/flux/index/mapper/ObjectMapper; ? ?
? existingObjectMapper newObjectMapper validateFieldReferences ?(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/util/List;Ljava/util/List;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V 'com/groupbyinc/flux/index/IndexSettings ? getIndexVersionCreated ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ?
V_6_0_0_beta1 Lcom/groupbyinc/flux/Version; ? ? ? ? onOrAfter (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? validateCopyTo T(Ljava/util/List;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V ? ?
? validateFieldAliasTargets "(Ljava/util/List;Ljava/util/Map;)V ? ?
?
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; @Ljava/util/List; Ljava/util/List; ELjava/util/List; java/util/List ? ? < copyTo 7()Lcom/groupbyinc/flux/index/mapper/FieldMapper$CopyTo; ? ?
? copyToFields ()Ljava/util/List; ? ?
? isEmpty ? C ? ? name ? K
? parentObject &(Ljava/lang/String;)Ljava/lang/String; ? ?
? 7[copy_to] may not be used to copy from a multi-field: [ ? getNestedScope 5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; ? ?
? 5[copy_to] may not be used to copy to a multi-field: [ ? Cannot copy to field [ ? !] since it is mapped as an object ? checkNestedScopeCompatibility '(Ljava/lang/String;Ljava/lang/String;)V ? ?
? copyToParent targetScope sourceParent sourceScope mapper .Lcom/groupbyinc/flux/index/mapper/FieldMapper; 1com/groupbyinc/flux/index/mapper/FieldAliasMapper ?
? ? path ? K
? java/util/Objects equals '(Ljava/lang/Object;Ljava/lang/Object;)Z
Invalid [path] value [ ] for field alias [
;]: an alias must have the same nested scope as its target.
U e The alias is not nested The alias's nested scope is [ , but the target is not nested. the target's nested scope is [ ]. message Ljava/lang/StringBuilder; aliasName
aliasScope pathScope 3Lcom/groupbyinc/flux/index/mapper/FieldAliasMapper; nested 8()Lcom/groupbyinc/flux/index/mapper/ObjectMapper$Nested;!"
# isNested% C
&
parentPath O
?) .+
startsWith (Ljava/lang/String;)Z-.
?/ ?Illegal combination of [copy_to] and [nested] mappings: [copy_to] may only copy data to the current nested document or any of its parents, however one [copy_to] directive is trying to copy data from nested object [1 ] to [3 targetIsParentOfSource source target lastIndexOf (I)I89
?: substring (II)Ljava/lang/String;<=
?> field lastDot I 'com/groupbyinc/flux/index/mapper/MapperC
D ? containsF O ?G Field [I /] is defined both as an object and a field in [K ] is defined twice in [M )Lcom/groupbyinc/flux/index/mapper/Mapper; Code LocalVariableTable LineNumberTable LocalVariableTypeTable Signaturer(Ljava/lang/String;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;Z)V
StackMapTableq(Ljava/lang/String;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V ?(Ljava/util/Collection;Ljava/util/Map;Z)V5(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/util/List;Ljava/util/List;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V ?(Ljava/util/List;Ljava/util/Map;Lcom/groupbyinc/flux/index/mapper/FieldTypeLookup;)V ?(Ljava/util/List;Ljava/util/Map;)V x(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; BootstrapMethods
SourceFile InnerClasses P / *? ? Q R % P ? *+,-? +? $? Q H % &