
org.apache.jackrabbit.oak.segment.file.TarWriter.class Maven / Gradle / Ivy
???? 3 $%
& ' ( )
*+ ,
*- . / 0 12 3 4567
;89
U:
; C< C=
>?
@AB
C CD CEF
<
GH
I
JK
GL
@M
@NO
'&
'PQ
'R
ST
U VWXY
Z[\
2;
2]
2^
2_
2`
a bc ???
d
e
f Cg1hij
>k Dl
2m
no
p
q
r
2s
s
t
u Cvwxyzy{ Dx| }~
U C?? Y?
;? Y?
G?
G? D<
G?
G?
G?
0B
?
d&
?
d??
d?
0G
??w? ?
??
?
?
?
0K
??
????
?? ??
??
???x D? D?
?
?
??? log Lorg/slf4j/Logger; INDEX_MAGIC I
ConstantValue GRAPH_MAGIC BINARY_REFERENCES_MAGIC
BLOCK_SIZE
ZERO_BYTES [B
writeIndex file Ljava/io/File; monitor 9Lorg/apache/jackrabbit/oak/segment/file/FileStoreMonitor; access Ljava/io/RandomAccessFile; channel Ljava/nio/channels/FileChannel; closed Z index Ljava/util/Map; Signature RLjava/util/Map; binaryReferences hLjava/util/Map;>;>; graph BLjava/util/Map;>; getPaddingSize (I)I Code LineNumberTable LocalVariableTable size remainder
StackMapTable (Ljava/io/File;)V this 2Lorg/apache/jackrabbit/oak/segment/file/TarWriter; K(Ljava/io/File;Lorg/apache/jackrabbit/oak/segment/file/FileStoreMonitor;I)V directory count ()I getUUIDs ()Ljava/util/Set; #()Ljava/util/Set;
containsEntry (JJ)Z msb J lsb readEntry (JJ)Ljava/nio/ByteBuffer; entry 1Lorg/apache/jackrabbit/oak/segment/file/TarEntry; data Ljava/nio/ByteBuffer;%7?F
Exceptions?
writeEntry
(JJ[BIII)J offset
generation uuid Ljava/util/UUID; checksum Ljava/util/zip/CRC32; entryName Ljava/lang/String; header (Ljava/util/UUID;[B[BIII)J
initialLength padding
currentLength addBinaryReference &(ILjava/util/UUID;Ljava/lang/String;)V segmentId reference segmentToReferences
references Ljava/util/Set; LocalVariableTypeTable DLjava/util/Map;>; #Ljava/util/Set;ij addGraphEdge #(Ljava/util/UUID;Ljava/util/UUID;)V from to adj !Ljava/util/Set; flush ()V
descriptor Ljava/io/FileDescriptor;? close initialPosition currentPosition createNextGeneration 4()Lorg/apache/jackrabbit/oak/segment/file/TarWriter; newIndex writeBinaryReferences bytes se Entry InnerClasses Ljava/util/Map$Entry; be binaryReferenceSize buffer paddingSize JLjava/util/Map$Entry;>; nLjava/util/Map$Entry;>;>;???BO ?
writeGraph graphSize HLjava/util/Map$Entry;>; indexSize indexName sorted 2[Lorg/apache/jackrabbit/oak/segment/file/TarEntry;| newEntryHeader (Ljava/lang/String;I)[B i name nameBytes time collectReferences (Ljava/util/Set;)V refs
referencedIds $(Ljava/util/Set;)V
fileLength ()J getFile ()Ljava/io/File; isClosed ()Z toString ()Ljava/lang/String;
SourceFile TarWriter.java 0org/apache/jackrabbit/oak/segment/file/FileStore 0org/apache/jackrabbit/oak/segment/file/TarWriter ? ? ? ? ? ? ? ???? ? ??? ? ? ? ? ? ??? ? ? ? ? ? java/io/File data%05d%s.tar java/lang/Object?? a?? ?? ? ?? ??????? java/util/UUID ?????? /org/apache/jackrabbit/oak/segment/file/TarEntry??? ? ?????????? java/util/zip/CRC32?? %s.%08x???? ? ? Writing segment {} to {}??? ? ? java/io/RandomAccessFile rw??????? ? ? ? ? java/lang/Integer?? ??????
java/util/Map
java/util/Set???????? ? ? ? ? ? ? ? ?? ? ?????????? java/lang/String?????? ? java/util/Map$Entry??? ?????????? ? java/lang/StringBuilder .brf .gph .idx
? ? ? ?
%07o %011o %06o?? ? java/io/Closeable java/lang/Throwable java/io/IOException java/io/FileDescriptor java/util/Iterator java/nio/ByteBuffer com/google/common/collect/Maps newLinkedHashMap ()Ljava/util/LinkedHashMap;
newHashMap ()Ljava/util/HashMap; 7org/apache/jackrabbit/oak/segment/file/FileStoreMonitor DEFAULT valueOf (I)Ljava/lang/Integer; format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; #(Ljava/io/File;Ljava/lang/String;)V keySet com/google/common/collect/Sets
newHashSet )(Ljava/lang/Iterable;)Ljava/util/HashSet; $com/google/common/base/Preconditions
checkState (Z)V (JJ)V containsKey (Ljava/lang/Object;)Z get &(Ljava/lang/Object;)Ljava/lang/Object; allocate (I)Ljava/nio/ByteBuffer; java/nio/channels/FileChannel read (Ljava/nio/ByteBuffer;J)I rewind ()Ljava/nio/Buffer; checkNotNull checkPositionIndexes (III)V update ([BII)V getValue java/lang/Long (J)Ljava/lang/Long; org/slf4j/Logger debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
getChannel !()Ljava/nio/channels/FileChannel; getFilePointer write ([B)V getMostSignificantBits getLeastSignificantBits (JJIII)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; written (J)V ()Ljava/util/HashSet; add getFD ()Ljava/io/FileDescriptor; sync
getParentFile values ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; com/google/common/base/Charsets UTF_8 Ljava/nio/charset/Charset; getBytes (Ljava/nio/charset/Charset;)[B entrySet getKey intValue putInt putLong (J)Ljava/nio/ByteBuffer; ([B)Ljava/nio/ByteBuffer; array ()[B position getName append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toArray (([Ljava/lang/Object;)[Ljava/lang/Object; IDENTIFIER_ORDER Ljava/util/Comparator; java/util/Arrays sort ,([Ljava/lang/Object;Ljava/util/Comparator;)V java/lang/Math min (II)I java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V currentTimeMillis com/google/common/collect/Lists newArrayList +(Ljava/lang/Iterable;)Ljava/util/ArrayList; reverse "(Ljava/util/List;)Ljava/util/List; java/util/List remove addAll (Ljava/util/Collection;)Z length org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ? ? ? ? ? ? t ? ? ? j ? ? ? c ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ p<? d?? ? k l
m o ? ? ? ? ? ? ? ? ? ? ? :*? *? *? *? *? ? *? ?
*? ? *+? *?
? *? ? ? . ? ? ? ? ? ? ! ? ( ? - ? 4 ? 9 ? ? : ? ? : ? ? ? ? ? ? T*? *? *? *? *? ? *? ?
*? ? *? Y+? Y? SYS? ? ? *,? *? ? ? . ? ? ? ? ? ? ! ? ( ? I ? N ? S ? ? * T ? ? T ? ? T ? ? T ? ? ? ? ? 4
*? ? ? ? ? ?
? ? ? ? ? 7
*? ? ? ? ? ? ?
? ? ? ? ? ? ? o "*? ? ? ? *? ? Y!? ? ? ?
? ? ? " ? ? " ? ? " ? ? ? @ ? ? ? 7 r*? ? ? ? *Y:?*? ? Y!? ? ? :ç :??? 5*? ? ? ? ? ? !:*? ? "?? #W? $W?? . 1 1 6 1 ? . ? ? ? + ? 9 ? > ? M ? W ? g ? m ? p ? ? > + ? ? W ? ? r ? ? r ? ? r ? ? 9 9 ? ? ? + @? $ ? ? ?? ? ? @% ? ? ? ? ? %
w? %W`?? &? Y!? : ? 'Y? (:
? )*? Y SY
? +? ,S? :? -:? ./ *? ? 0 * ? 1? ? &