com.groupbyinc.flux.cluster.block.ClusterBlocks$Builder.class Maven / Gradle / Ivy
???? 4 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder java/lang/Object ClusterBlocks.java /com/groupbyinc/flux/cluster/block/ClusterBlocks Builder java/util/Map$Entry
java/util/Map Entry ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup global Ljava/util/Set; ALjava/util/Set; indices Ljava/util/Map; dLjava/util/Map;>; ()V " #
$ java/util/HashSet &
' $ ) java/util/HashMap +
, $ . this 9Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; blocks l(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ()Ljava/util/Set; 4
5
java/util/Set 7 addAll (Ljava/util/Collection;)Z 9 : 8 ; 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; =
> iterator ()Ljava/util/Iterator; @ A
B java/util/Iterator D hasNext ()Z F G E H next ()Ljava/lang/Object; J K E L Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor N key Ljava/lang/Object; P Q O R containsKey (Ljava/lang/Object;)Z T U V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; X Y Z get &(Ljava/lang/Object;)Ljava/lang/Object; \ ] ^ value ` Q O a java/util/Collection c entry ?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;>; ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor; 1Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; addBlocks o(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; getIndex #()Lcom/groupbyinc/flux/index/Index; k l
m com/groupbyinc/flux/index/Index o getName ()Ljava/lang/String; q r
p s getState <()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; u v
w CLOSE :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; y z { >com/groupbyinc/flux/cluster/metadata/MetaDataIndexStateService } INDEX_CLOSED_BLOCK 0Lcom/groupbyinc/flux/cluster/block/ClusterBlock; ? ~ ?
addIndexBlock }(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
? java/lang/String ? INDEX_READ_ONLY_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ? ? ? getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? +com/groupbyinc/flux/common/settings/Setting ? B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; \ ?
? ? java/lang/Boolean ? booleanValue ? G
? ? INDEX_READ_ONLY_BLOCK ? ? ? INDEX_BLOCKS_READ_SETTING ? ? ? INDEX_READ_BLOCK ? ? ? INDEX_BLOCKS_WRITE_SETTING ? ? ? INDEX_WRITE_BLOCK ? ? ? INDEX_BLOCKS_METADATA_SETTING ? ? ? INDEX_METADATA_BLOCK ? ? ? +INDEX_BLOCKS_READ_ONLY_ALLOW_DELETE_SETTING ? ? ? "INDEX_READ_ONLY_ALLOW_DELETE_BLOCK ? ? ?
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; indexName Ljava/lang/String; updateBlocks remove ? ] ? i j
? addGlobalBlock k(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; add ? U 8 ? block removeGlobalBlock ? U 8 ? <(I)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; "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; ? ?
? ? ? U lambda$removeGlobalBlock$0 4(ILcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z ? ?
? ? 3(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z ? test !(I)Ljava/util/function/Predicate; ? ? ? removeIf !(Ljava/util/function/Predicate;)Z ? ? 8 ? blockId I index removeIndexBlocks M(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; removeIndexBlock isEmpty ? G 8 ? build 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; size ()I ? ? ? builder @(I)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ? ?
? entrySet ? 4 ? 8 B getKey ? K
? getValue ? K
? (Ljava/util/Collection;)V " ?
' ? java/util/Collections unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;
Z ? =
G(Ljava/util/Set;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)V "
jLjava/util/Map$Entry;>; Ljava/util/Map$Entry; indicesBuilder ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;>; =Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; .com/groupbyinc/flux/cluster/block/ClusterBlock id ?
Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable BootstrapMethods
SourceFile InnerClasses ! ! " # Q *? %*? 'Y? (? **? ,Y? -? /? 0 1 @ <