
com.groupbyinc.flux.rest.action.search.RestSearchScrollAction.class Maven / Gradle / Ivy
???? 3 ? =com/groupbyinc/flux/rest/action/search/RestSearchScrollAction (com/groupbyinc/flux/rest/BaseRestHandler RestSearchScrollAction.java 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token +com/groupbyinc/flux/rest/RestRequest$Method $com/groupbyinc/flux/rest/RestRequest
Method }(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/rest/RestController;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject;
GET -Lcom/groupbyinc/flux/rest/RestRequest$Method; /_search/scroll 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
POST ! " /_search/scroll/{scroll_id} $ this ?Lcom/groupbyinc/flux/rest/action/search/RestSearchScrollAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client;
handleRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V scroll_id 0 param &(Ljava/lang/String;)Ljava/lang/String; 2 3
4 5com/groupbyinc/flux/action/search/SearchScrollRequest 6 ()V 8
7 9 scrollId K(Ljava/lang/String;)Lcom/groupbyinc/flux/action/search/SearchScrollRequest; ; <
7 = scroll ? !com/groupbyinc/flux/search/Scroll A )com/groupbyinc/flux/common/unit/TimeValue C parseTimeValue |(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue; E F
D G .(Lcom/groupbyinc/flux/common/unit/TimeValue;)V I
B J \(Lcom/groupbyinc/flux/search/Scroll;)Lcom/groupbyinc/flux/action/search/SearchScrollRequest; ? L
7 M java/lang/String O 3com/groupbyinc/flux/rest/action/support/RestActions Q hasBodyContent )(Lcom/groupbyinc/flux/rest/RestRequest;)Z S T
R U getRestContent Y(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/bytes/BytesReference; W X
R Y 3com/groupbyinc/flux/common/xcontent/XContentFactory [ xContentType e(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentType; ] ^
\ _ /com/groupbyinc/flux/common/bytes/BytesReference a toUtf8 ()Ljava/lang/String; c d b e 0com/groupbyinc/flux/common/xcontent/XContentType g buildFromContent k(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/search/SearchScrollRequest;)V i j
k Dcom/groupbyinc/flux/rest/action/support/RestStatusToXContentListener m )(Lcom/groupbyinc/flux/rest/RestChannel;)V o
n p !com/groupbyinc/flux/client/Client r searchScroll e(Lcom/groupbyinc/flux/action/search/SearchScrollRequest;Lcom/groupbyinc/flux/action/ActionListener;)V t u s v type 2Lcom/groupbyinc/flux/common/xcontent/XContentType; request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; Ljava/lang/String; searchScrollRequest 7Lcom/groupbyinc/flux/action/search/SearchScrollRequest; java/lang/Throwable ? java/io/IOException ? 2com/groupbyinc/flux/common/xcontent/XContentHelper ? createParser g(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ? ?
? ? nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? "java/lang/IllegalArgumentException ? -Malforrmed content, must start with an object ? (Ljava/lang/String;)V ?
? ?
END_OBJECT ? ? ?
FIELD_NAME ? ? ? currentName ? d ? equals (Ljava/lang/Object;)Z ? ?
P ? VALUE_STRING ? ? ? text ? d ? java/lang/StringBuilder ?
? 9 Unknown parameter [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? 4] in request body or parameter is of the wrong type[ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? d
? ? close ? 8 ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
? ? Failed to parse request body ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? ? token currentFieldName parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; e Ljava/io/IOException; content 1Lcom/groupbyinc/flux/common/bytes/BytesReference; Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses ! ? ? 0*+,-? ,? *? ,? #*? ,? %*? ,? #%*? ? ? * 0 &