org.apache.jackrabbit.oak.plugins.segment.SegmentBufferWriter.class Maven / Gradle / Ivy
???? 3?
k ?
? ? i ?
? ? i ? i ? i ? ?
? ?
?
? ?
?
? i ? ? ? i ?
i ? i ?
i ? ?
? i ?
?
i
i
I
I
i!
"#$
%
3&
'
()
*+
(,
*-
(.
?/01 i23034567879: G;< G=>
K?06 i@A
BCDE ?F
*G
*H
*I
J
KL0L
MN3
OPQ
] ?N651R535S5T ??
iU
IVWX
YZ[ LOG Lorg/slf4j/Logger; roots Ljava/util/Map; Signature {Ljava/util/Map; blobrefs Ljava/util/List; FLjava/util/List; store 8Lorg/apache/jackrabbit/oak/plugins/segment/SegmentStore; version :Lorg/apache/jackrabbit/oak/plugins/segment/SegmentVersion; wid Ljava/lang/String; tracker :Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker; buffer [B segment 3Lorg/apache/jackrabbit/oak/plugins/segment/Segment; length I position ?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentStore;Lorg/apache/jackrabbit/oak/plugins/segment/SegmentVersion;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this ?Lorg/apache/jackrabbit/oak/plugins/segment/SegmentBufferWriter;
StackMapTableX\]^
Exceptions_
newSegment (Ljava/lang/String;)V metaInfo data createNewBuffer >(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentVersion;)[B v writeByte (B)V value B
writeShort (S)V S writeInt (I)V writeLong (J)V J
writeRecordId 7(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)V listId 4Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; offset
getSegmentRef 8(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;)I index segmentId 5Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId; refCount
writeBytes ([BII)V
addBlobRef blobId flush ()V entry Entry InnerClasses Ljava/util/Map$Entry; i$ Ljava/util/Iterator; blobref Ljava/nio/ByteBuffer; refcount rootcount blobrefcount pos
segmentOffset LocalVariableTypeTable ?Ljava/util/Map$Entry;`ab prepare ?(Lorg/apache/jackrabbit/oak/plugins/segment/RecordType;ILjava/util/Collection;)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; recordId refid
segmentIds Ljava/util/Set; notRoots type 6Lorg/apache/jackrabbit/oak/plugins/segment/RecordType; size ids Ljava/util/Collection; idCount
recordSize blobRefCount rootCount
headerSize segmentSize id FLjava/util/Set; ELjava/util/Set; LLjava/util/Collection;>cd< ?(Lorg/apache/jackrabbit/oak/plugins/segment/RecordType;ILjava/util/Collection;)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;
SourceFile SegmentBufferWriter.java ? ?efg n ohij r s u v w x java/lang/StringBuilder w-klmnokpqr y z\st { | ? ? } ~ ? ? 1org/apache/jackrabbit/oak/plugins/segment/Segment ?u ? {"wid":"kv ,"sno":wxy ,"gc":z{|}y ,"t":~k? }???^????????]?? ? ? ? ????????y?????? ? ??y Borg/apache/jackrabbit/oak/plugins/segment/SegmentOverflowException -Segment cannot have more than 255 references k? ? ???a??b??????????? ? ? ?y??d??`???? java/util/Map$Entry?? 2org/apache/jackrabbit/oak/plugins/segment/RecordId?? 4org/apache/jackrabbit/oak/plugins/segment/RecordType?y l m "Writing data segment {} ({} bytes)?????????????? ????? ???c??? java/util/HashSet?????? ? ? ???? =org/apache/jackrabbit/oak/plugins/segment/SegmentBufferWriter??? java/lang/Object 6org/apache/jackrabbit/oak/plugins/segment/SegmentStore 8org/apache/jackrabbit/oak/plugins/segment/SegmentVersion java/lang/String java/io/IOException java/util/Iterator 3org/apache/jackrabbit/oak/plugins/segment/SegmentId java/nio/ByteBuffer java/util/Collection
java/util/Set com/google/common/collect/Maps newLinkedHashMap ()Ljava/util/LinkedHashMap; com/google/common/collect/Lists newArrayList ()Ljava/util/ArrayList; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; java/lang/System identityHashCode (Ljava/lang/Object;)I (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String;
getTracker <()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker; ?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;[B)V (C)Ljava/lang/StringBuilder; 8org/apache/jackrabbit/oak/plugins/segment/SegmentTracker getNextSegmentNo ()I getCompactionMap ;()Lorg/apache/jackrabbit/oak/plugins/segment/CompactionMap; 7org/apache/jackrabbit/oak/plugins/segment/CompactionMap
getGeneration currentTimeMillis ()J (J)Ljava/lang/StringBuilder; com/google/common/base/Charsets UTF_8 Ljava/nio/charset/Charset; getBytes (Ljava/nio/charset/Charset;)[B 7org/apache/jackrabbit/oak/plugins/segment/RecordWriters newValueWriter RecordWriter K(I[B)Lorg/apache/jackrabbit/oak/plugins/segment/RecordWriters$RecordWriter; Dorg/apache/jackrabbit/oak/plugins/segment/RecordWriters$RecordWriter write S(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentBufferWriter;)Ljava/lang/Object; asByte =(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentVersion;)B $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
java/util/Map remove getOffset
checkState (Z)V align (II)I getSegmentId 7()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId; getRefCount -(Ljava/lang/Object;)Ljava/lang/StringBuilder; getRefId 8(I)Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId; equals (Ljava/lang/Object;)Z wrap ([BII)Ljava/nio/ByteBuffer; getMostSignificantBits putLong (J)Ljava/nio/ByteBuffer; getLeastSignificantBits arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V java/util/List add entrySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; getKey getValue ordinal java/lang/Integer valueOf (I)Ljava/lang/Integer; org/slf4j/Logger debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V writeSegment <(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;[BII)V allocate (I)Ljava/nio/ByteBuffer; put rewind ()Ljava/nio/Buffer; ?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;Ljava/nio/ByteBuffer;)V
setSegment k(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;Lorg/apache/jackrabbit/oak/plugins/segment/Segment;)V clear
checkArgument com/google/common/collect/Sets
newHashSet ()Ljava/util/HashSet; containsKey isEmpty 9(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;I)V 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; i k l m n o p q r s p t u v w x y z { | } ~ ? ? ? ? ? ? ? ? ? Y*? *? ? *? ? *+? *,? *-? ? Y?
? *? ?
? ? -? *+? ? *,? ? **? ? ? ? *
p G L q r s > w H x P y X z ? * Y ? ? Y u v Y w x Y y z ? 1 ? : ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? q*? Y*? *? ? ? ? Y? ? +? "? ? *? ? ?
? *? ? ? ?
? ? ? !"? ? M,? #? $N-?-? %*? &W? ? ? ? ] ? e ? p ? ? * q ? ? q y z ] ? z e ? ~ ? ? ? ? ? u %'?L+0T+aT+KT+*? (T+T+T+? ? " ? ?
? ? ? ? ? # ? ? % ? x } ~ ? ? ? J *? *Y? )Z`? )T? ?
? ? ? ? ? ? ? ? ? ? d (*? *Y? )Z`? )z?T*? *Y? )Z`? )?T? ? ? ? ' ? ? ( ? ? ( ? ? ? ? ? ? R*? *Y? )Z`? )z?T*? *Y? )Z`? )z?T*? *Y? )Z`? )z?T*? *Y? )Z`? )?T? ? ? ? * ? ? ? Q ? ? R ? ? R ? ? ? ? ? L * {?? **?? *? ? ? ? ? ? ? ? ? ? ? ? ? ? |+? +W*? +? , W+? -=?
'? ? ? .? /? ? ? .*? *Y? )Z`? )*+? 0? 1?T*? *Y? )Z`? )
z?T*? *Y? )Z`? )z?T? ? &