
org.apache.jackrabbit.oak.segment.file.TarWriter.class Maven / Gradle / Ivy
???? 3
%
!
"#$%
&'
(
)*
&+
,
-.
!
!/01
!2
34
56
7 89:;
<=>
.?
.@
.A
.B
.C
D EF ???
G
H
IJ
KL
&M
&N
&O
PQ
&RST UT
UVWJ
X
.Y
Z[
\
]
.^S U_ UW`abcdcefg
V
hi
Vjk
Vl
m Ub
&n
7oWpSbq br
7s
&t bu
&v
0G
w`ax ? y
z{
|
}
~
0K
?
5?
??
????
?? ??
hl
??? log Lorg/slf4j/Logger; INDEX_MAGIC I
ConstantValue GRAPH_MAGIC
BLOCK_SIZE
ZERO_BYTES [B 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;
references Ljava/util/Set; !Ljava/util/Set; graph Ljava/util/SortedMap; ILjava/util/SortedMap;>; getPaddingSize (I)I Code LineNumberTable LocalVariableTable size remainder
StackMapTable (Ljava/io/File;)V this 2Lorg/apache/jackrabbit/oak/segment/file/TarWriter; J(Ljava/io/File;Lorg/apache/jackrabbit/oak/segment/file/FileStoreMonitor;)V 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; 1?%
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 refid refpos refend list Ljava/util/List; segment pos refcount
initialLength padding
currentLength LocalVariableTypeTable "Ljava/util/List;! ??f flush ()V
descriptor Ljava/io/FileDescriptor;? isDirty ()Z close initialPosition currentPosition
writeGraph Entry InnerClasses Ljava/util/Map$Entry; uuids graphSize graphName buffer refmap ILjava/util/Map$Entry;>; 4Ljava/util/Map;???q.
writeIndex indexSize indexName sorted 2[Lorg/apache/jackrabbit/oak/segment/file/TarEntry; newEntryHeader (Ljava/lang/String;I)[B i name nameBytes time toString ()Ljava/lang/String;
SourceFile TarWriter.java )org/apache/jackrabbit/oak/segment/Segment 0org/apache/jackrabbit/oak/segment/file/TarWriter?? ? ? ? ? ? ? ? ? ? ? ???? ? ???? ? ??? ? ? ? ? ? ?? ? ?? ?????? java/util/UUID ?????? /org/apache/jackrabbit/oak/segment/file/TarEntry??? ? ?????????? java/util/zip/CRC32?? %s.%08x java/lang/Object???????? ? ? ? ? Writing segment {} to {}??? ? ? java/io/RandomAccessFile rw ?????????? ? ? ? ? java/lang/Integer???? ?????????? ????????????????????? ? ? ? ? ? ? ?????????? ??? java/util/List java/lang/StringBuilder???? .gph??????? ? java/util/Map$Entry??? ??????? .idx??????? ?? ?? ? ?? %07o %011o
? %06o??
java/io/Closeable java/lang/Throwable java/io/IOException java/nio/ByteBuffer java/io/FileDescriptor java/util/Iterator java/lang/String
java/util/Map 7org/apache/jackrabbit/oak/segment/file/FileStoreMonitor DEFAULT com/google/common/collect/Maps newLinkedHashMap ()Ljava/util/LinkedHashMap; com/google/common/collect/Sets
newHashSet ()Ljava/util/HashSet;
newTreeMap ()Ljava/util/TreeMap; keySet )(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 ()J java/lang/Long valueOf (J)Ljava/lang/Long; format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; org/slf4j/Logger debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V #(Ljava/io/File;Ljava/lang/String;)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; +org/apache/jackrabbit/oak/segment/SegmentId isDataSegmentId (J)Z wrap ([BII)Ljava/nio/ByteBuffer; position (I)B com/google/common/collect/Lists newArrayListWithCapacity (I)Ljava/util/ArrayList; getLong (I)J
java/util/Set add java/util/Collections sort (Ljava/util/List;)V java/util/SortedMap written (J)V getFD ()Ljava/io/FileDescriptor; sync addAll (Ljava/util/Collection;)Z values ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; java/io/File getName append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
newHashMap ()Ljava/util/HashMap; putLong (J)Ljava/nio/ByteBuffer; (I)Ljava/lang/Integer; entrySet getKey intValue putInt array ()[B toArray (([Ljava/lang/Object;)[Ljava/lang/Object; IDENTIFIER_ORDER Ljava/util/Comparator; java/util/Arrays ,([Ljava/lang/Object;Ljava/util/Comparator;)V com/google/common/base/Charsets UTF_8 Ljava/nio/charset/Charset; getBytes (Ljava/nio/charset/Charset;)[B java/lang/Math min (II)I java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V currentTimeMillis org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; %
? ? ? ? ? r ? ? ? h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ p<? d?? ? i j
k m ? ? ? ? ? ? ? ? ? ? A *+? ? ? ?
? ? ? ? ? ? ? ? ? ? ? 3*? *? *? *? *? ?
*? ? *?
? *+? *,? ? ? *
? ? ? ? ? ? ! ? ( ? - ? 2 ? ? 3 ? ? 3 ? ? 3 ? ? ? ? ? 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? (:? ):? *+ *? ? , * ? -? ? &