com.groupbyinc.flux.index.fieldvisitor.FieldsVisitor.class Maven / Gradle / Ivy
???? 4j 4com/groupbyinc/flux/index/fieldvisitor/FieldsVisitor Acom/groupbyinc/flux/common/apache/lucene/index/StoredFieldVisitor FieldsVisitor.java Hcom/groupbyinc/flux/common/apache/lucene/index/StoredFieldVisitor$Status Status java/util/Map$Entry
java/util/Map Entry BASE_REQUIRED_FIELDS Ljava/util/Set; #Ljava/util/Set;
loadSource Z requiredFields source 1Lcom/groupbyinc/flux/common/bytes/BytesReference; type Ljava/lang/String; id fieldsValues Ljava/util/Map; GLjava/util/Map;>; $assertionsDisabled (Z)V ()V
" java/util/HashSet $
% ' reset )
* this 6Lcom/groupbyinc/flux/index/fieldvisitor/FieldsVisitor;
needsField ?(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;)Lcom/groupbyinc/flux/common/apache/lucene/index/StoredFieldVisitor$Status; java/io/IOException 0 8com/groupbyinc/flux/common/apache/lucene/index/FieldInfo 2 name 4 3 5
java/util/Set 7 remove (Ljava/lang/Object;)Z 9 : 8 ; YES JLcom/groupbyinc/flux/common/apache/lucene/index/StoredFieldVisitor$Status; = > ? isEmpty ()Z A B 8 C STOP E > F NO H > I fieldInfo :Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo; postProcess 3(Lcom/groupbyinc/flux/index/mapper/MapperService;)V .com/groupbyinc/flux/index/mapper/MapperService O getIndexSettings +()Lcom/groupbyinc/flux/index/IndexSettings; Q R
P S 'com/groupbyinc/flux/index/IndexSettings U isSingleType W B
V X types ()Ljava/util/Collection; Z [
P \ ^ java/util/Collection ` size ()I b c a d java/lang/AssertionError f (Ljava/lang/Object;)V h
g i a C iterator ()Ljava/util/Iterator; l m a n java/util/Iterator p next ()Ljava/lang/Object; r s q t java/lang/String v x fields ()Ljava/util/Map; z {
| entrySet ()Ljava/util/Set; ~ ? 8 n hasNext ? B q ? getKey ? s
? fullName F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ?
P ? java/lang/IllegalStateException ? java/lang/StringBuilder ?
? Field [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? )] exists in the index but not in mappings ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V ?
? ? 0com/groupbyinc/flux/index/mapper/MappedFieldType ? getValue ? s
? java/util/List ? ? d get (I)Ljava/lang/Object; ? ? ? ? valueForDisplay &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? set '(ILjava/lang/Object;)Ljava/lang/Object; ? ? ? ? *Ljava/util/Collection; Ljava/util/Collection; i I fieldType 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; fieldValues $Ljava/util/List; Ljava/util/List; entry MLjava/util/Map$Entry;>; Ljava/util/Map$Entry;
mapperService 0Lcom/groupbyinc/flux/index/mapper/MapperService; binaryField ?(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;[B)V _source ? equals ? :
w ? +com/groupbyinc/flux/common/bytes/BytesArray ? ([B)V ?
? ? ? _id ? $com/groupbyinc/flux/index/mapper/Uid ? decodeId ([B)Ljava/lang/String; ? ?
? ? ? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ?
? ? addValue '(Ljava/lang/String;Ljava/lang/Object;)V ? ?
? value [B stringField !java/nio/charset/StandardCharsets ? UTF_8 Ljava/nio/charset/Charset; ? ? ? ? ([BLjava/nio/charset/Charset;)V ?
w ? _uid ? createUid :(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/Uid; ? ?
? ? ?
? ? ?
? ? uid &Lcom/groupbyinc/flux/index/mapper/Uid; bytes intField >(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;I)V java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ?
? longField >(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;J)V java/lang/Long (J)Ljava/lang/Long; ?
J
floatField >(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;F)V java/lang/Float
(F)Ljava/lang/Float; ?
F doubleField >(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;D)V java/lang/Double (D)Ljava/lang/Double; ?
D 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; (()Lcom/groupbyinc/flux/index/mapper/Uid; 'Call postProcess before getting the uid '(Ljava/lang/String;Ljava/lang/String;)V
? routing # _routing% ? ? ' ? C
g java/lang/Object+
, ? values java/util/Collections/ emptyMap1 {
02 clear4 5 7 addAll (Ljava/util/Collection;)Z9: 8; add= : 8> java/util/HashMap@
A java/util/ArrayListC (I)V E
DF put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;HI J ?> Ljava/lang/Object; java/lang/ClassO desiredAssertionStatusQ B
PR _parentT (com/groupbyinc/flux/common/util/set/SetsV
newHashSet (([Ljava/lang/Object;)Ljava/util/HashSet;XY
WZ unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;\]
0^ Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable I()Ljava/util/Map;>;
SourceFile InnerClasses ! ` ` ` a ] *? !*? #*? %Y? &? (*? +? b , - c A B C D E . / a t **? (+? 6? < ? ? @?*? (? D ? ? G? ? J? b * , - * K L c I J Nd B e 1 M N a ? ?+? T? Y? <+? ]M? _? ,? e ? ? gY,? j?,? k ? *,? o ? u ? w? y*? }? ? ? ? M,? ? ? ?,? u ?
N+-? ? ? w? ?:? +? ?Y? ?Y? ??? ?-? ? ? w? ??? ?? ?? ??-? ? ? ?:6? ? ? !? ? ? ?? ? W???٧?y? b H 4 Z ? ? * ? ? t e ? ? ? - ? ? e t ? ? ? , - ? ? ? f 4 Z ? ? - ? ? e t ? ? c > T
U V ( W 1 X C [ e \ t ] y ^ ? a ? b ? c ? b ? e ? fd 4 ? ( a? ? q? N
??
?? ) P q ? ? ? a ? C?+? 6? ə *? ?Y,? ε Ч *?+? 6? ə *,? ص ڧ *+? 6? ?Y,? ݶ ? b C , - C K L C ? ? c j k l ' m 2 o B qd e 1 ? ? a ? Q? wY,? ? ?N?+? 6? ə -? ?:*? ?? y*? ?? ڧ ?+? 6? ə *-? ڧ *+? 6-? ? b 4 ? ? Q , - Q K L Q ? ? E ? c &