com.groupbyinc.flux.cluster.block.ClusterBlocks.class Maven / Gradle / Ivy
???? 4? /com/groupbyinc/flux/cluster/block/ClusterBlocks aLcom/groupbyinc/flux/cluster/AbstractDiffable; ,com/groupbyinc/flux/cluster/AbstractDiffable ClusterBlocks.java 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder Builder Dcom/groupbyinc/flux/cluster/block/ClusterBlocks$ImmutableLevelHolder
ImmutableLevelHolder ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder
3com/groupbyinc/flux/common/collect/ImmutableOpenMap 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup EMPTY_CLUSTER_BLOCK 1Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; global Ljava/util/Set; ALjava/util/Set;
indicesBlocks 5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;>; levelHolders G[Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$ImmutableLevelHolder; G(Ljava/util/Set;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)V ()V % '
( * ! , generateLevelHolders ?(Ljava/util/Set;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)[Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$ImmutableLevelHolder; . /
0 # $ 2 this ()Ljava/util/Set; indices 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; F(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Ljava/util/Set; 3com/groupbyinc/flux/cluster/block/ClusterBlockLevel 9 ordinal ()I ; <
: = 5
? level 5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; l(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; 6 7
D blocksForIndex X(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Ljava/util/Set; 6 C
H java/util/Collections J emptySet L 5
K M getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; O P
Q
java/util/Set S index Ljava/lang/String; values 8()[Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; W X
: Y $ 6[Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; \ "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; ` a
_ b c (Ljava/lang/Object;)Z e lambda$generateLevelHolders$0 h(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z g h
i j 3(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z l test U(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Ljava/util/function/Predicate; n o p stream ()Ljava/util/stream/Stream; r s T t java/util/stream/Stream v filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; x y w z java/util/stream/Collectors | toSet ()Ljava/util/stream/Collector; ~
} ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? w ? unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; ? ?
K ? builder ?()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ? ?
? iterator ()Ljava/util/Iterator; ? ?
? java/util/function/Predicate ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor ? key Ljava/lang/Object; ? ? ? ? value ? ? ? ? put ? P
? build ? 7
? % &
? entry ?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;>; ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;
containsLevel PLjava/util/function/Predicate; Ljava/util/function/Predicate; newGlobal indicesBuilder ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;>; =Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; disableStatePersistence T ? .com/groupbyinc/flux/cluster/block/ClusterBlock ? ? ?
? ? clusterBlock 0Lcom/groupbyinc/flux/cluster/block/ClusterBlock; hasGlobalBlock contains ? e T ? block (I)Z id ? <
? ? blockId I 8(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Z 8
? size ? < T ? ((Lcom/groupbyinc/flux/rest/RestStatus;)Z status '()Lcom/groupbyinc/flux/rest/RestStatus; ? ?
? ? #com/groupbyinc/flux/rest/RestStatus ? equals ? e
? ? %Lcom/groupbyinc/flux/rest/RestStatus;
hasIndexBlock E(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z containsKey ? e
? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? globalBlockedRaiseException 8(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)V 7com/groupbyinc/flux/cluster/block/ClusterBlockException ? globalBlockedException p(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; ? ?
? blockException 9Lcom/groupbyinc/flux/cluster/block/ClusterBlockException;
globalBlocked isEmpty ? ? T ? ? ?
? (Ljava/util/Set;)V % ?
? ? indexBlockedRaiseException J(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)V indexBlockedException ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; ? ?
? indexBlocked J(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Z ?
F G
concat M(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream; w blocks KLjava/util/stream/Stream; Ljava/util/stream/Stream; indicesBlockedException ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; [Ljava/lang/String; ? lambda$indicesBlockedException$1 b(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Ljava/util/stream/Stream;
-(Ljava/lang/String;)Ljava/util/stream/Stream; apply ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Ljava/util/function/Function; of .([Ljava/lang/Object;)Ljava/util/stream/Stream; w flatMap 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ! w" indexIsBlocked Z blocksForIndexAtLevel |Ljava/util/function/Function;>; Ljava/util/function/Function; indicesAllowReleaseResources N([Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; %lambda$indicesAllowReleaseResources$2+
,- P(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Ljava/util/function/Function;/ 0 METADATA_WRITE2 B :3 %lambda$indicesAllowReleaseResources$35 l
67 ()Ljava/util/function/Predicate; n9 : java/util/function/Function<
clusterBlocks toString ()Ljava/lang/String;
D
? C java/lang/StringBuilderE
F ( blocks:
H append -(Ljava/lang/String;)Ljava/lang/StringBuilder;JK
FL
_global_:
N P -(Ljava/lang/Object;)Ljava/lang/StringBuilder;JR
FS U java/lang/StringW :
Y
[?@
F] sb Ljava/lang/StringBuilder; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V java/io/IOExceptionc
writeBlockSet E(Ljava/util/Set;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Vef
g
? 1com/groupbyinc/flux/common/io/stream/StreamOutputj writeVInt (I)Vlm
kn writeString (Ljava/lang/String;)Vpq
kr out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;ab
?v 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V readBlockSet C(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/util/Set;yz
{ 0com/groupbyinc/flux/common/io/stream/StreamInput} readVInt <
~? @(I)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ??
?
readString?@
~? intern?@
X? j in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; java/util/HashSet? %m
?? readClusterBlock d(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/block/ClusterBlock;??
?? add? e T? i totalBlocks readDiffFrom V(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff; F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;? %x
?? e(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;? read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;?? ? ?(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff;??
? ;()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;
( isAllowReleaseResources? ?
?? ? ?
?? 7
?
? ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable ?(Ljava/util/Set;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;>;)V C()Ljava/util/Set; ?()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;>; x(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Ljava/util/Set; ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;>; ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Ljava/util/Set;
StackMapTable(Ljava/util/Set;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;>;)[Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$ImmutableLevelHolder;
Exceptions w(Ljava/util/Set;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V u(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/util/Set; ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff; BootstrapMethods
SourceFile InnerClasses ! ? ! ? " # $ ! % &