
com.groupbyinc.flux.index.engine.LiveVersionMap.class Maven / Gradle / Ivy
???? 3 ? /com/groupbyinc/flux/index/engine/LiveVersionMap java/lang/Object Pcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager$RefreshListener 9com/groupbyinc/flux/common/apache/lucene/util/Accountable LiveVersionMap.java 4com/groupbyinc/flux/index/engine/LiveVersionMap$Maps
Maps java/util/Map$Entry
java/util/Map Entry @com/groupbyinc/flux/common/apache/lucene/search/ReferenceManager RefreshListener
tombstones Ljava/util/Map; xLjava/util/Map; maps 6Lcom/groupbyinc/flux/index/engine/LiveVersionMap$Maps; mgr BLcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager; BASE_BYTES_PER_BYTESREF I BASE_BYTES_PER_CHM_ENTRY ramBytesUsedCurrent (Ljava/util/concurrent/atomic/AtomicLong; ramBytesUsedTombstones $assertionsDisabled Z ()V $ %
& @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections ( )newConcurrentMapWithAggressiveConcurrency &()Ljava/util/concurrent/ConcurrentMap; * +
) , .
& 1 &java/util/concurrent/atomic/AtomicLong 3
4 & 6 ! 8 this 1Lcom/groupbyinc/flux/index/engine/LiveVersionMap;
setManager E(Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager;)V > removeListener U(Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager$RefreshListener;)V @ A
B addListener D A
E newMgr
beforeRefresh java/io/IOException I current K L !(Ljava/util/Map;Ljava/util/Map;)V $ N
O set (J)V Q R
4 S afterRefresh (Z)V
didRefresh getUnderLock i(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/index/engine/VersionValue; get &(Ljava/lang/Object;)Ljava/lang/Object; Z [ \ -com/groupbyinc/flux/index/engine/VersionValue ^ old ` a uid 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; currentMaps value /Lcom/groupbyinc/flux/index/engine/VersionValue; putUnderLock j(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/index/engine/VersionValue;)V j 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef l bytes [B n o m p put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; r s t v delete ()Z x y
_ z ramBytesUsed ()J | }
_ ~ addAndGet (J)J ? ?
4 ? remove ? [ ? " # ? java/lang/AssertionError ? java/lang/StringBuilder ?
? & bytes= ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (J)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/Object;)V $ ?
? ? prevBytes J
prevTombstone v version uidRAMBytesUsed prev newBytes removeTombstoneUnderLock ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V
? &
curVersion getTombstoneUnderLock getAllTombstones ()Ljava/lang/Iterable; entrySet ()Ljava/util/Set; ? ? ? clear ? % ? Z }
4 ? ramBytesUsedForRefresh getChildResources ()Ljava/util/Collection; java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? java/lang/Class ? desiredAssertionStatus ? y
? ? ?com/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator ? NUM_BYTES_OBJECT_HEADER ? ? ? NUM_BYTES_OBJECT_REF ? ? ? NUM_BYTES_ARRAY_HEADER ? ? ? Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions ?()Ljava/lang/Iterable;>; U()Ljava/util/Collection;
SourceFile InnerClasses ? B ! " # $ % ? g -*? '*? -? /*? Y? 0? 2*? 4Y? 5? 7*? 4Y? 5? 9? ? - : ; ? # 9 ; T ! W <