org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker$BlobIdStore.class Maven / Gradle / Ivy
???? 3?
b ? a ? a ? ?
? a ?
? ?
? ? f ?
f ?
? ?
? ? ? a ? f ?
? ?
? ?
? ? a ?
a ? a ?
? ?
? ?
? ?
? ? ? ? ? ?
?
?
a ?
? ?
?
? ? ? ? ? ?
?
a ?
? ?
? ? ?
+ ?
+ ? f ?
f ?
+ ?
?
? ?
?
? ? ? ?
? ? ? ? ?
? ? ?
? ?
a ? ? ?
B
B
?
? ?
a
?
? ?
?
a
?
?
? ? ! ?"#$% BlobIdStore InnerClasses& Type genFileNameSuffix Ljava/lang/String;
ConstantValue' workingCopySuffix( writer Ljava/io/BufferedWriter; processFile Ljava/io/File; generations Ljava/util/List; Signature Ljava/util/List; rootDir prefix refLock *Ljava/util/concurrent/locks/ReentrantLock; #(Ljava/io/File;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this LLorg/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker$BlobIdStore;
Exceptions addRecord (Ljava/lang/String;)V id
getRecords ()Ljava/util/Iterator; path e Ljava/io/IOException;
StackMapTable ? *()Ljava/util/Iterator; "(Ljava/lang/String;)Ljava/io/File; copiedRecsFile#) ?* getBlobRecordsFile ()Ljava/io/File; refs merge (Ljava/util/List;Z)V merged refFiles doSort Z LocalVariableTypeTable $(Ljava/util/List;Z)V
removeRecords (Ljava/util/Iterator;)V recs Ljava/util/Iterator; deleted (Ljava/util/Iterator; +(Ljava/util/Iterator;)V (Ljava/io/File;)V temp iterator FileLineDifferenceIterator JLorg/apache/jackrabbit/oak/commons/FileIOUtils$FileLineDifferenceIterator; blobRecs nextGeneration ()V
addRecords added snapshot close Ljava/lang/Exception; renamed success
SourceFile BlobIdTracker.java z ? v q w i (java/util/concurrent/locks/ReentrantLock x y+,-./0123456789: java/io/File p q;23<=>?@AB r s ? ? n oCDEF ?G ?HIJ Added record {}KLMNOPQ ? ?RST z ?UWX java/io/IOException )Error in retrieving blob records iteratorYZ[ ? ? ?\]^ ? %Error in retrieving blob records file java/lang/StringBuilderD_`2aQbQ z {cd File created {}edfghijdkDl Merged files into references {}m ?n ?op ? ? Removed recordsq ? Sorted files sorted Horg/apache/jackrabbit/oak/commons/FileIOUtils$FileLineDifferenceIterator zr ? ?s] removed recordst ? Failed to delete file {}Luvwxyz ,Created new process file and writer over {} {M>| ? ?}~
Closed writer{ ?????? File renamed {}?? Process file renamed to {} Trying a copy file operation?] {} File copied to {}{u java/lang/Exception RUnable to copy process file to corresponding gen file. Some elements may be missed?Z Jorg/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker$BlobIdStore java/lang/Object java/io/Closeable Oorg/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker$BlobIdStore$Type .gen .process java/lang/String java/lang/Throwable com/google/common/io/Files fileTreeTraverser +()Lcom/google/common/collect/TreeTraverser; 'com/google/common/collect/TreeTraverser breadthFirstTraversal >(Ljava/lang/Object;)Lcom/google/common/collect/FluentIterable;
IN_PROCESS QLorg/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker$BlobIdStore$Type; filter $()Lcom/google/common/base/Predicate; (com/google/common/collect/FluentIterable
firstMatch E(Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; com/google/common/base/Optional orNull ()Ljava/lang/Object;
GENERATION N(Lcom/google/common/base/Predicate;)Lcom/google/common/collect/FluentIterable; com/google/common/collect/Lists newArrayList +(Ljava/lang/Iterable;)Ljava/util/ArrayList; java/util/Collections synchronizedList "(Ljava/util/List;)Ljava/util/List; java/io/BufferedWriter append *(Ljava/lang/CharSequence;)Ljava/io/Writer; newLine flush >org/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker
access$000 ()Lorg/slf4j/Logger; org/slf4j/Logger debug '(Ljava/lang/String;Ljava/lang/Object;)V createTempFile 4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; getAbsolutePath ()Ljava/lang/String; org/apache/commons/io/FileUtils lineIterator 4(Ljava/io/File;)Lorg/apache/commons/io/LineIterator; Eorg/apache/jackrabbit/oak/commons/FileIOUtils$BurnOnCloseFileIterator BurnOnCloseFileIterator wrap {(Lorg/apache/commons/io/LineIterator;Ljava/io/File;)Lorg/apache/jackrabbit/oak/commons/FileIOUtils$BurnOnCloseFileIterator; error *(Ljava/lang/String;Ljava/lang/Throwable;)V lock copyFile (Ljava/io/File;Ljava/io/File;)V unlock -(Ljava/lang/String;)Ljava/lang/StringBuilder; REFS getFileNameSuffix toString exists ()Z
createNewFile java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; java/util/List isEmpty -org/apache/jackrabbit/oak/commons/FileIOUtils "(Ljava/util/List;Ljava/io/File;Z)V clear sort writeStrings &(Ljava/util/Iterator;Ljava/io/File;Z)I trace @(Ljava/io/File;Ljava/io/File;Lcom/google/common/base/Function;)V move forceDelete 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V com/google/common/base/Charsets UTF_8 Ljava/nio/charset/Charset; newWriter B(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/BufferedWriter; info *([Ljava/lang/Object;)Ljava/util/ArrayList; org/apache/commons/io/IOUtils closeQuietly (Ljava/io/Writer;)V #org/apache/commons/io/FilenameUtils removeExtension &(Ljava/lang/String;)Ljava/lang/String; renameTo (Ljava/io/File;)Z add (Ljava/lang/Object;)Z copy warn a b c h i j k l i j m n o p q r s t u v q w i x y
z { | ? R*? *+? *,? *? Y? ? *? +? ? ?
? ? ?
? *? +? ? ?
? ? ? ? *? ? } " ; <