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 equals getClass ()Ljava/lang/Class;;<
=: ? Q? ?? obj Ljava/lang/Object; that hashCode java/util/ObjectsF hash ([Ljava/lang/Object;)IHI
GJ resolveIndexId >(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/IndexId; '(Ljava/lang/String;Ljava/lang/String;)V ?N
fO indexName resolveIndices java/lang/StringSLM
U ? ? $Ljava/util/List; resolvedIndices resolveNewIndices
? B com/groupbyinc/flux/common/UUIDs\ randomBase64UUID^ h
]_ index indicesToResolve snapshotIndices snapshotsToXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOExceptionf 3com/groupbyinc/flux/common/xcontent/XContentBuilderh startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;jk
il
startArray I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;no
ip ? ?
r
? i field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;uv
iw value ()Byz
?{ J(Ljava/lang/String;B)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;u}
i~ endObject?k
i? endArray?k
i?jo
i? ? ?
? getId? h
f? W ?yo
i? snapshot builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; snapshotsFromXContent h(Lcom/groupbyinc/flux/common/xcontent/XContentParser;J)Lcom/groupbyinc/flux/repositories/RepositoryData; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ?
FIELD_NAME?? ? currentName? h ?
T? START_ARRAY?? ? END_ARRAY?? ? currentToken?? ?
END_OBJECT?? ? text? h ? numberValue ()Ljava/lang/Number;?? ? java/lang/Number? byteValue?z
?? fromValue 0(B)Lcom/groupbyinc/flux/snapshots/SnapshotState;??
??
?O /com/groupbyinc/flux/ElasticsearchParseException? expected array for [? ]?
?
start object expected [indices]? start object expected index[? start array expected [snapshots]? 'Detected a corrupted repository, index ? & references an unknown snapshot uuid [? unknown field name [? start object expected? emptyList ()Ljava/util/List;??
G? currentFieldName indexMetaFieldName parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; incompatibleSnapshotsToXContent ? ?
?
toXContent?e
?? !incompatibleSnapshotsFromXContent g(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/repositories/RepositoryData; fromXContent `(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/snapshots/SnapshotId;??
??
?? java/lang/Class? desiredAssertionStatus? ?
?? emptyMap? ?
G? ?
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTableS(JLjava/util/Map;Ljava/util/Map;Ljava/util/Map;>;Ljava/util/List;)V D()Ljava/util/Collection; RuntimeVisibleAnnotations O()Ljava/util/Map;
StackMapTable ?(Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/snapshots/SnapshotState;Ljava/util/List;)Lcom/groupbyinc/flux/repositories/RepositoryData; g(Lcom/groupbyinc/flux/repositories/IndexId;)Ljava/util/Set; b(Ljava/util/List;)Ljava/util/List;
Exceptions BootstrapMethods
SourceFile InnerClasses 1 ? ? ? ! ? " # ? $ % &