com.groupbyinc.flux.index.engine.LiveVersionMap.class Maven / Gradle / Ivy
???? 4
/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; ~Ljava/util/Map; maps 6Lcom/groupbyinc/flux/index/engine/LiveVersionMap$Maps; mgr BLcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager; ELcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager<*>; BASE_BYTES_PER_BYTESREF J 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; + ,
* - /
' 2 &java/util/concurrent/atomic/AtomicLong 4
5 ' ! 7 " ! 9 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
C addListener E B
F newMgr
beforeRefresh java/io/IOException J current L M !(Ljava/util/Map;Ljava/util/Map;)V % O
P set (J)V R S
5 T afterRefresh (Z)V
didRefresh getUnderLock f(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)Lcom/groupbyinc/flux/index/engine/VersionValue; 3com/groupbyinc/flux/common/apache/lucene/index/Term [ bytes :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ] ^
\ _ get &(Ljava/lang/Object;)Ljava/lang/Object; a b c -com/groupbyinc/flux/index/engine/VersionValue e old g h uid 5Lcom/groupbyinc/flux/common/apache/lucene/index/Term; 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 # $ q 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef s [B ] u t v length I x y t z java/lang/AssertionError | java/lang/StringBuilder ~
' Oversized _uid! UID length: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? (I)Ljava/lang/StringBuilder; ? ?
? , bytes length: ? toString ()Ljava/lang/String; ? ?
? (Ljava/lang/Object;)V % ?
} ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? isDelete ()Z ? ?
f ? ramBytesUsed ()J ? ?
f ? addAndGet (J)J ? ?
5 ? 3com/groupbyinc/flux/index/engine/DeleteVersionValue ? remove ? b ? bytes= ? (J)Ljava/lang/StringBuilder; ? ?
? prevBytes
prevTombstone v 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; version uidRAMBytesUsed prev newBytes removeTombstoneUnderLock ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V
} '
curVersion getTombstoneUnderLock o(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/index/engine/DeleteVersionValue; getAllTombstones ()Ljava/lang/Iterable; entrySet ()Ljava/util/Set; ? ? ? clearTombstones clear ? & ? a ?
5 ? ramBytesUsedForRefresh getChildResources ()Ljava/util/Collection; java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? java/lang/Class ? desiredAssertionStatus ? ?
? ? ?com/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator ? shallowSizeOfInstance (Ljava/lang/Class;)J ? ?
? ? NUM_BYTES_ARRAY_HEADER ? y ? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? next ()Ljava/lang/Object; ? ? ? ?
shallowSizeOf (Ljava/lang/Object;)J ? ?
? ? NUM_BYTES_OBJECT_REF ? y ? ? map 7Ljava/util/Map; chmEntryShallowSize Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable H(Lcom/groupbyinc/flux/common/apache/lucene/search/ReferenceManager<*>;)V
Exceptions ?()Ljava/lang/Iterable;>; U()Ljava/util/Collection;
SourceFile InnerClasses B ! " ! # $ % &