org.apache.jackrabbit.oak.plugins.segment.PersistedCompactionMap.class Maven / Gradle / Ivy
???? 3?
b ?
? ? Z ? Z ?
Z ?
? ?
? ? Z ?
?
? ?
? ?
? ?
?
? ?
Z ?
? ?
? ?
Z ?
Z ? ? ? ?
? ?
? ?
?
? ?
? ?
? ? ?
?
? ?
?
?
? Z
Z
Z
Z
?
?
?
2 2
Z
?
?
? ?
? ?
? !
E ?"
E#
E$%
E&
E ?
'
?() Z*+,-./
S01
2
34
E56
789
:;
:< Z=> ????@ LOG Lorg/slf4j/Logger; BYTES_PER_ENTRY I COMPRESS_INTERVAL PERSISTED_COMPACTION_MAP Ljava/lang/String;
ConstantValueA recent Ljava/util/TreeMap; Signature \Ljava/util/TreeMap; tracker :Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker; recordCount J entries 5Lorg/apache/jackrabbit/oak/plugins/segment/MapRecord; =(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;)V Code LineNumberTable LocalVariableTable this BLorg/apache/jackrabbit/oak/plugins/segment/PersistedCompactionMap; "RuntimeVisibleParameterAnnotations Ljavax/annotation/Nonnull; wasCompactedTo k(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)Z before 4Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; after wasCompacted (Ljava/util/UUID;)Z uuid Ljava/util/UUID;
StackMapTable asUUID G(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId;)Ljava/util/UUID; id 5Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId; get j(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; offset S recordId ?B RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; V(Ljava/util/Map;Ljava/util/UUID;S)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; map Ljava/util/Map;
newSegment 7Lorg/apache/jackrabbit/oak/plugins/segment/RecordIdMap; LocalVariableTypeTable XLjava/util/Map; ? ?(Ljava/util/Map;Ljava/util/UUID;S)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; ?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;Lorg/apache/jackrabbit/oak/plugins/segment/MapRecord;Ljava/util/UUID;S)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; newSegmentId 4Lorg/apache/jackrabbit/oak/plugins/segment/MapEntry; newRecordIdC ? Ljavax/annotation/Nullable; put k(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)V entry remove (Ljava/util/Set;)V uuids Ljava/util/Set; !Ljava/util/Set; $(Ljava/util/Set;)V compress ()V getSegmentCount ()J getRecordCount isEmpty ()Z k base baseEntry offsetMap
newEntryId recentEntry Entry InnerClasses Ljava/util/Map$Entry; i$ Ljava/util/Iterator; toRemove previousBaseId mapInfo writer 9Lorg/apache/jackrabbit/oak/plugins/segment/SegmentWriter; segmentIdMap e Ljava/io/IOException; removed WLjava/util/Map; ^Ljava/util/Map$Entry;DEF6G) createWid ()Ljava/lang/String; getEstimatedWeight
SourceFile PersistedCompactionMap.java w ?HIJ m n q r ? ?BKLMNL u vO ?PQ java/util/UUIDRS ?T ? wUVW ? ?XYZ[\ ? ? ? ?E ?] 5org/apache/jackrabbit/oak/plugins/segment/RecordIdMap ?^ 3org/apache/jackrabbit/oak/plugins/segment/MapRecordC_` wabcdefgh "java/lang/IllegalArgumentException ?i ?jkY h g ? ? ? ?lmn s t ? ?GopqnrsFt ?uv java/util/Map$Entrywv_vxL ? ?yz{w\|}~ ?D???|`??? ? java/lang/StringBuilder PersistedCompactionMap{id=???? , baseId=??? ?? ? java/io/IOException d e Error compression compaction map??? java/lang/IllegalStateException Unexpected IOException w? cm-????Y?? @org/apache/jackrabbit/oak/plugins/segment/PersistedCompactionMap??? bytes-per-entry????Y f g compress-interval java/lang/Object >org/apache/jackrabbit/oak/plugins/segment/PartialCompactionMap PersistedCompactionMap 2org/apache/jackrabbit/oak/plugins/segment/RecordId 2org/apache/jackrabbit/oak/plugins/segment/MapEntry 7org/apache/jackrabbit/oak/plugins/segment/SegmentWriter
java/util/Map java/util/Iterator
java/util/Set com/google/common/collect/Maps
newTreeMap ()Ljava/util/TreeMap; equals (Ljava/lang/Object;)Z java/util/TreeMap containsKey toString getEntry H(Ljava/lang/String;)Lorg/apache/jackrabbit/oak/plugins/segment/MapEntry; 3org/apache/jackrabbit/oak/plugins/segment/SegmentId getMostSignificantBits getLeastSignificantBits (JJ)V getSegmentId 7()Lorg/apache/jackrabbit/oak/plugins/segment/SegmentId; getOffset ()I 1org/apache/jackrabbit/oak/plugins/segment/Segment encode (I)S &(Ljava/lang/Object;)Ljava/lang/Object; 7(S)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; getValue 6()Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; 7(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)V java/lang/String valueOf (I)Ljava/lang/String;
readString H(Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;)Ljava/lang/String;
fromString ?(Lorg/apache/jackrabbit/oak/plugins/segment/SegmentTracker;Ljava/lang/String;)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 8(SLorg/apache/jackrabbit/oak/plugins/segment/RecordId;)Z size java/util/Collections emptySet ()Ljava/util/Set;
newHashMap ()Ljava/util/HashMap; entrySet iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getKey contains 8org/apache/jackrabbit/oak/plugins/segment/SegmentTracker createSegmentWriter M(Ljava/lang/String;)Lorg/apache/jackrabbit/oak/plugins/segment/SegmentWriter; getRecordId 7(I)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId;
toString10 writeString H(Ljava/lang/String;)Lorg/apache/jackrabbit/oak/plugins/segment/RecordId; writeMap {(Lorg/apache/jackrabbit/oak/plugins/segment/MapRecord;Ljava/util/Map;)Lorg/apache/jackrabbit/oak/plugins/segment/MapRecord;
getSegment 5()Lorg/apache/jackrabbit/oak/plugins/segment/Segment; pin append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; flush clear org/slf4j/Logger error *(Ljava/lang/String;Ljava/lang/Throwable;)V getCompactionMap ;()Lorg/apache/jackrabbit/oak/plugins/segment/CompactionMap; 7org/apache/jackrabbit/oak/plugins/segment/CompactionMap
getGeneration (I)Ljava/lang/StringBuilder; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; java/lang/Integer
getInteger ((Ljava/lang/String;I)Ljava/lang/Integer; intValue ! Z b c d e f g h g i j k l m n o p q r s t u v w x y Q *? *? ? *+? ? z K D L M { | } q r ~ ? ? y H
,*+? ? ? z Q {
| }
? ?
? ? ~
? ? y f &*? +? ? *? ? *? +? ?
? ? ? z V { &