com.groupbyinc.flux.repositories.RepositoryData.class Maven / Gradle / Ivy
???? 4 /com/groupbyinc/flux/repositories/RepositoryData java/lang/Object RepositoryData.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser
Token %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup EMPTY_REPO_GEN J???????? EMPTY 1Lcom/groupbyinc/flux/repositories/RepositoryData; genId snapshotIds Ljava/util/Map; MLjava/util/Map; snapshotStates PLjava/util/Map; indices MLjava/util/Map; indexSnapshots vLjava/util/Map;>; incompatibleSnapshotIds Ljava/util/List; ; SNAPSHOTS Ljava/lang/String; snapshots * INCOMPATIBLE_SNAPSHOTS incompatible-snapshots - INDICES ! INDEX_ID id 2 NAME name 5 UUID uuid 8 STATE state ; $assertionsDisabled Z A(JLjava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;)V ()V ? A
B D java/util/Collections F unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; H I
G J L N
java/util/Map P keySet ()Ljava/util/Set; R S Q T
java/util/Set V stream ()Ljava/util/stream/Stream; X Y W Z "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 &(Ljava/lang/Object;)Ljava/lang/Object; c (com/groupbyinc/flux/repositories/IndexId e getName ()Ljava/lang/String; g h
f i j >(Lcom/groupbyinc/flux/repositories/IndexId;)Ljava/lang/String; l apply ()Ljava/util/function/Function; n o p java/util/function/Function r identity t o s u java/util/stream/Collectors w toMap X(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector; y z
x { java/util/stream/Stream } collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ~ ? ! ? # ? unmodifiableList "(Ljava/util/List;)Ljava/util/List; ? ?
G ? % & ? this copy 3()Lcom/groupbyinc/flux/repositories/RepositoryData; ? @
? getGenId ()J getSnapshotIds ()Ljava/util/Collection; values ? ? Q ? unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection; ? ?
G ? getIncompatibleSnapshotIds getAllSnapshotIds java/util/ArrayList ? size ()I ? ? Q ? java/util/List ? ? ? (I)V ? ?
? ? addAll (Ljava/util/Collection;)Z ? ? ? ? allSnapshotIds getSnapshotState Y(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lcom/groupbyinc/flux/snapshots/SnapshotState; %Lcom/groupbyinc/flux/common/Nullable; (com/groupbyinc/flux/snapshots/SnapshotId ? getUUID ? h
? ? get ? c Q ? +com/groupbyinc/flux/snapshots/SnapshotState ?
snapshotId *Lcom/groupbyinc/flux/snapshots/SnapshotId;
getIndices ()Ljava/util/Map; addSnapshot ?(Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/snapshots/SnapshotState;Ljava/util/List;)Lcom/groupbyinc/flux/repositories/RepositoryData; containsKey (Ljava/lang/Object;)Z ? ? Q ? java/util/HashMap ? (Ljava/util/Map;)V ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? Q ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? java/util/LinkedHashSet ?
? B add ? ? W ? ids ;Ljava/util/Set; Ljava/util/Set; indexId *Lcom/groupbyinc/flux/repositories/IndexId;
snapshotState -Lcom/groupbyinc/flux/snapshots/SnapshotState; snapshottedIndices ; newSnapshotStates allIndexSnapshots removeSnapshot ](Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lcom/groupbyinc/flux/repositories/RepositoryData; java/util/Collection ? ? Z ? lambda$removeSnapshot$0 W(Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/snapshots/SnapshotId;)Z ? ?
? ? -(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Z ? test J(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Ljava/util/function/Predicate; ? ? ? filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; ~ ? >(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Ljava/lang/String; p -com/groupbyinc/flux/ResourceNotFoundException DAttempting to remove non-existent snapshot [{}] from repository data
((Ljava/lang/String;[Ljava/lang/Object;)V ?
remove c Q
? B ? ? = > java/lang/AssertionError
B contains ? W W ? (Ljava/util/Collection;)V ?
? ? W set newSnapshotIds getSnapshots ;(Lcom/groupbyinc/flux/repositories/IndexId;)Ljava/util/Set; "java/lang/IllegalArgumentException& java/lang/StringBuilder(
) B unknown snapshot index + append -(Ljava/lang/String;)Ljava/lang/StringBuilder;-.
)/ -(Ljava/lang/Object;)Ljava/lang/StringBuilder;-1
)2 toString4 h
)5 (Ljava/lang/String;)V ?7
'8 initIndices B(Ljava/util/Map;)Lcom/groupbyinc/flux/repositories/RepositoryData; equals getClass ()Ljava/lang/Class;=>
?<