com.groupbyinc.flux.action.termvectors.MultiTermVectorsRequest.class Maven / Gradle / Ivy
???? 4 >com/groupbyinc/flux/action/termvectors/MultiTermVectorsRequest ?Lcom/groupbyinc/flux/action/ActionRequest;Ljava/lang/Iterable;Lcom/groupbyinc/flux/action/CompositeIndicesRequest;Lcom/groupbyinc/flux/action/RealtimeRequest; (com/groupbyinc/flux/action/ActionRequest java/lang/Iterable 2com/groupbyinc/flux/action/CompositeIndicesRequest *com/groupbyinc/flux/action/RealtimeRequest
MultiTermVectorsRequest.java 8com/groupbyinc/flux/common/xcontent/XContentParser$Token
2com/groupbyinc/flux/common/xcontent/XContentParser Token
preference Ljava/lang/String; requests Ljava/util/List; MLjava/util/List; ids Ljava/util/Set; #Ljava/util/Set; ()V
java/util/ArrayList
! java/util/HashSet #
$ & this @Lcom/groupbyinc/flux/action/termvectors/MultiTermVectorsRequest; add }(Lcom/groupbyinc/flux/action/termvectors/TermVectorsRequest;)Lcom/groupbyinc/flux/action/termvectors/MultiTermVectorsRequest; java/util/List , (Ljava/lang/Object;)Z * . - / termVectorsRequest ;Lcom/groupbyinc/flux/action/termvectors/TermVectorsRequest; x(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/action/termvectors/MultiTermVectorsRequest; %Lcom/groupbyinc/flux/common/Nullable; 9com/groupbyinc/flux/action/termvectors/TermVectorsRequest 5 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V 7
6 8 index type id validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; isEmpty ()Z ? @ - A *multi term vectors: no documents requested C *com/groupbyinc/flux/action/ValidateActions E addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; G H
F I ;com/groupbyinc/flux/action/ActionRequestValidationException K size ()I M N - O get (I)Ljava/lang/Object; Q R - S = >
6 U java/lang/StringBuilder W
X at multi term vectors for doc Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; \ ]
X ^ (I)Ljava/lang/StringBuilder; \ `
X a toString ()Ljava/lang/String; c d
X e validationExceptionForDoc =Lcom/groupbyinc/flux/action/ActionRequestValidationException; i I validationException iterator ()Ljava/util/Iterator; java/util/Collections n unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection; p q
o r java/util/Collection t l m u v
java/util/Set x y A getRequests ()Ljava/util/List; r(Lcom/groupbyinc/flux/action/termvectors/TermVectorsRequest;Lcom/groupbyinc/flux/common/xcontent/XContentParser;)V java/io/IOException ~ java/lang/String ? nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ?
FIELD_NAME ? ? ? currentName ? d ? START_ARRAY ? ? ? docs ? equals ? .
? ? END_ARRAY ? ? ? START_OBJECT ? ? ? "java/lang/IllegalArgumentException ? +docs array element should include an object ? (Ljava/lang/String;)V ?
? ? >(Lcom/groupbyinc/flux/action/termvectors/TermVectorsRequest;)V ?
6 ? parseRequest ? }
6 ? * +
? isValue ? @
? )ids array element should only contain ids ? text ? d ? y / /com/groupbyinc/flux/ElasticsearchParseException ? &no parameter named [{}] and type ARRAY ? java/lang/Object ? ((Ljava/lang/String;[Ljava/lang/Object;)V ?
? ?
parameters ? 'no parameter named [{}] and type OBJECT ? +_mtermvectors: Parameter [{}] not supported ? y v java/util/Iterator ? hasNext ? @ ? ? next ()Ljava/lang/Object; ? ? ? ? O(Ljava/lang/String;)Lcom/groupbyinc/flux/action/termvectors/TermVectorsRequest; <