
com.groupbyinc.flux.index.store.Store$LegacyChecksums.class Maven / Gradle / Ivy
???? 3 ? 5com/groupbyinc/flux/index/store/Store$LegacyChecksums java/lang/Object
Store.java %com/groupbyinc/flux/index/store/Store LegacyChecksums 4com/groupbyinc/flux/index/store/Store$StoreDirectory StoreDirectory 6com/groupbyinc/flux/index/store/Store$MetadataSnapshot MetadataSnapshot legacyChecksums Ljava/util/Map; 5Ljava/util/Map; ()V
java/util/HashMap
this 7Lcom/groupbyinc/flux/index/store/Store$LegacyChecksums; add 6(Lcom/groupbyinc/flux/index/store/StoreFileMetaData;)V java/io/IOException 1com/groupbyinc/flux/index/store/StoreFileMetaData ! hasLegacyChecksum ()Z # $
" % name ()Ljava/lang/String; ' (
" ) checksum + (
" ,
java/util/Map . put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 0 1 / 2 java/lang/Throwable 4 metaData 3Lcom/groupbyinc/flux/index/store/StoreFileMetaData; write *(Lcom/groupbyinc/flux/index/store/Store;)V
access$300 _(Lcom/groupbyinc/flux/index/store/Store;)Lcom/groupbyinc/flux/index/store/Store$StoreDirectory; : ;
< readLegacyChecksums f(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/collect/Tuple; > ?
@ (com/groupbyinc/flux/common/collect/Tuple B v1 ()Ljava/lang/Object; D E
C F putAll (Ljava/util/Map;)V H I / J isEmpty L $ / M v2 O E
C P java/lang/Long R longValue ()J T U
S V writeChecksums M(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/util/Map;J)V X Y
Z tuple qLcom/groupbyinc/flux/common/collect/Tuple;Ljava/lang/Long;>; *Lcom/groupbyinc/flux/common/collect/Tuple; store 'Lcom/groupbyinc/flux/index/store/Store; java/lang/System a currentTimeMillis c U
b d java/lang/Math f max (JJ)J h i
g j java/lang/StringBuilder l
m _checksums- o append -(Ljava/lang/String;)Ljava/lang/StringBuilder; q r
m s (J)Ljava/lang/StringBuilder; q u
m v toString x (
m y 8com/groupbyinc/flux/common/apache/lucene/store/IOContext { DEFAULT :Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext; } ~ | 8com/groupbyinc/flux/common/apache/lucene/store/Directory ? createOutput ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput; ? ?
? ? :com/groupbyinc/flux/common/apache/lucene/store/IndexOutput ? writeInt (I)V ? ?
? ? writeStringStringMap ? I
? ? close ?
? ? java/lang/String ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
5 ? java/util/Collections ? singleton #(Ljava/lang/Object;)Ljava/util/Set; ? ?
? ? sync (Ljava/util/Collection;)V ? ?
? ? cleanLegacyChecksums >(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;J)V ? ?
? output