com.groupbyinc.flux.action.admin.indices.shrink.ShrinkRequest.class Maven / Gradle / Ivy
???? 4 ? =com/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest ?Lcom/groupbyinc/flux/action/support/master/AcknowledgedRequest;Lcom/groupbyinc/flux/action/IndicesRequest; =com/groupbyinc/flux/action/support/master/AcknowledgedRequest )com/groupbyinc/flux/action/IndicesRequest ShrinkRequest.java 7com/groupbyinc/flux/common/xcontent/ObjectParser$Parser 0com/groupbyinc/flux/common/xcontent/ObjectParser Parser :com/groupbyinc/flux/common/xcontent/ObjectParser$ValueType ValueType %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup PARSER 2Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ObjectParser; shrinkIndexRequest DLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; sourceIndex Ljava/lang/String; ()V
this ?Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest; '(Ljava/lang/String;Ljava/lang/String;)V Bcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest $ (Ljava/lang/String;)V &
% ' ) + targetIndex sourceindex validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; / 0
% 1 ;com/groupbyinc/flux/action/ActionRequestValidationException 3 source index is missing 5 *com/groupbyinc/flux/action/ValidateActions 7 addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; 9 :
8 ; shrink index request is missing = settings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? @
% A index.sort. C ,com/groupbyinc/flux/common/settings/Settings E getByPrefix B(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings; G H
F I isEmpty ()Z K L
F M .can't override index sort when shrinking index O validationException =Lcom/groupbyinc/flux/action/ActionRequestValidationException; setSourceIndex index readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException W U V
Y
%
% Y 0com/groupbyinc/flux/common/io/stream/StreamInput ]
readString ()Ljava/lang/String; _ `
^ a in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V e f
g
% g 1com/groupbyinc/flux/common/io/stream/StreamOutput j writeString l &
k m out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; indices ()[Ljava/lang/String; java/lang/String s indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; 1com/groupbyinc/flux/action/support/IndicesOptions w lenientExpandOpen y v
x z setShrinkIndex G(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;)V %shrink index request must not be null ~ java/util/Objects ? requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? getShrinkIndexRequest F()Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; getSourceIndex setWaitForActiveShards 8(Lcom/groupbyinc/flux/action/support/ActiveShardCount;)V ? ?
? waitForActiveShards {(Lcom/groupbyinc/flux/action/support/ActiveShardCount;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ? ?
% ? 5Lcom/groupbyinc/flux/action/support/ActiveShardCount; (I)V 3com/groupbyinc/flux/action/support/ActiveShardCount ? from 8(I)Lcom/groupbyinc/flux/action/support/ActiveShardCount; ? ?
? ? ? ?
? I lambda$static$1 ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Ljava/lang/Void;)V 2com/groupbyinc/flux/common/xcontent/XContentParser ? map ()Ljava/util/Map; ? ? ? ? aliases U(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ? ?
% ? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; request context Ljava/lang/Void; lambda$static$0 ? ?
% ? shrink_request ? 2(Ljava/lang/String;Ljava/util/function/Supplier;)V ?
? ? "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; ? ?
? ? ? [(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ?
? ? ? parse ;()Lcom/groupbyinc/flux/common/xcontent/ObjectParser$Parser; ? ? ? %com/groupbyinc/flux/common/ParseField ? ? ((Ljava/lang/String;[Ljava/lang/String;)V ?
? ? OBJECT