com.groupbyinc.flux.common.apache.lucene.index.DocumentsWriterFlushQueue.class Maven / Gradle / Ivy
???? 4 ? Hcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue java/lang/Object DocumentsWriterFlushQueue.java [com/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$SegmentFlushTicket SegmentFlushTicket \com/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$GlobalDeletesTicket GlobalDeletesTicket Tcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$FlushTicket FlushTicket Vcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread$FlushedSegment Gcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread FlushedSegment Ucom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterDeleteQueue$DeleteSlice Icom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterDeleteQueue DeleteSlice queue Ljava/util/Queue; iLjava/util/Queue; ticketCount +Ljava/util/concurrent/atomic/AtomicInteger; purgeLock *Ljava/util/concurrent/locks/ReentrantLock; $assertionsDisabled Z ()V " #
$ java/util/LinkedList &
' $ ) )java/util/concurrent/atomic/AtomicInteger +
, $ . (java/util/concurrent/locks/ReentrantLock 0
1 $ 3 this JLcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue;
addDeletes N(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterDeleteQueue;)V java/io/IOException 9
incTickets ; #
< freezeGlobalBuffer ?(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterDeleteQueue$DeleteSlice;)Lcom/groupbyinc/flux/common/apache/lucene/index/FrozenBufferedUpdates; > ?
@ I(Lcom/groupbyinc/flux/common/apache/lucene/index/FrozenBufferedUpdates;)V " B
C java/util/Queue E add (Ljava/lang/Object;)Z G H F I
decTickets K #
L java/lang/Throwable N success deleteQueue KLcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterDeleteQueue; incrementAndGet ()I S T
, U ! W java/lang/AssertionError Y
Z $
numTickets I decrementAndGet ^ T
, _ addFlushTicket ?(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread;)Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$SegmentFlushTicket; prepareFlush H()Lcom/groupbyinc/flux/common/apache/lucene/index/FrozenBufferedUpdates; c d
e
C ticket ]Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$SegmentFlushTicket; dwpt ILcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread;
addSegment ?(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$SegmentFlushTicket;Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread$FlushedSegment;)V
setSegment [(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread$FlushedSegment;)V n o
p segment XLcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterPerThread$FlushedSegment; markTicketFailed `(Lcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$SegmentFlushTicket;)V setFailed v #
w
hasTickets ()Z get { T
, | java/lang/StringBuilder ~
$ $ticketCount should be >= 0 but was: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? (I)Ljava/lang/StringBuilder; ? ?
? toString ()Ljava/lang/String; ? ?
? (Ljava/lang/Object;)V " ?
Z ?
innerPurge ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriter;)I isHeldByCurrentThread ? z
1 ? peek ()Ljava/lang/Object; ? ? F ?
canPublish ? z
? :com/groupbyinc/flux/common/apache/lucene/index/IndexWriter ? publish ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriter;)V ? ?
? poll ? ? F ? head VLcom/groupbyinc/flux/common/apache/lucene/index/DocumentsWriterFlushQueue$FlushTicket; writer