
org.apache.jackrabbit.oak.segment.file.TarWriter.class Maven / Gradle / Ivy
???? 3,$% &'
(
') * + ,
-. /
01 2
-3 4
-5 6 7 8 L9 L:
0;
<=>
? L@ LAB
9
CD
E
FG
CH
<I
<JK
#)
#LMN
#O
PQ
YR
S TUVW
XYZ
0[
0\
0]
0^
0_
` ab ???
c
d
e Lf
gh
Ci
Cj
Ck
lm
Cn Mo po
pqrf&s
9tuv
0w
xy
z
{
|
0} L~????? M?? ??
Y? L?? ]?
9? ]?
C?
C? M9
C?
C?
0B
?
g)
??
g??
g? p? p9r~?? p?r?
0G
?? ?
??
?
?
?
0K
??
????
?? ??
??
??? log Lorg/slf4j/Logger; INDEX_MAGIC I
ConstantValue GRAPH_MAGIC BINARY_REFERENCES_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;>; binaryReferences hLjava/util/Map;>;>; 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;%N?B
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;> ??? addBinaryReference &(ILjava/util/UUID;Ljava/lang/String;)V segmentId reference segmentToReferences DLjava/util/Map;>; #Ljava/util/Set;uv flush ()V
descriptor Ljava/io/FileDescriptor;? isDirty ()Z close initialPosition currentPosition writeBinaryReferences bytes se Entry InnerClasses Ljava/util/Map$Entry; be binaryReferenceSize buffer paddingSize JLjava/util/Map$Entry;>; nLjava/util/Map$Entry;>;>;??K
writeGraph uuids graphSize graphName refmap ILjava/util/Map$Entry;>; 4Ljava/util/Map;?
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/Map
java/util/Set???? ? ? ? ? ? ? ? ? ? java/lang/String
? java/util/Map$Entry ???? java/lang/StringBuilder .brf java/util/List .gph .idx ?! ?? ?? ? ?"#$%&' %07o %011o(? %06o?? )*+ java/io/Closeable java/lang/Throwable java/io/IOException java/nio/ByteBuffer java/io/FileDescriptor java/util/Iterator 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;
newHashMap ()Ljava/util/HashMap; 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 add java/util/Collections sort (Ljava/util/List;)V java/util/SortedMap written (J)V (I)Ljava/lang/Integer; getFD ()Ljava/io/FileDescriptor; sync 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 java/io/File getName append -(Ljava/lang/String;)Ljava/lang/StringBuilder; addAll (Ljava/util/Collection;)Z toArray (([Ljava/lang/Object;)[Ljava/lang/Object; IDENTIFIER_ORDER Ljava/util/Comparator; java/util/Arrays ,([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 org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ' ? ? ? ? ? ? } ? ? ? t ? ? ? f ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ p<? d?? ? n o
p r ? ? ? ? ? ? ? ? ? ? A *+? ? ? ?
? ? ? ? ? ? ? ? ? ? ? :*? *? *? *? *? ?
*? ? *?
? *? ? *+? *,? ? ? . ? ? ? ? ? ? ! ? ( ? / ? 4 ? 9 ? ? : ? ? : ? ? : ? ? ? ? ? 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? *:? +:? ,- *? ? . * ? /? ? &