class org.apache.lucene.index.FlushByRamOrCountsPolicy extends org.apache.lucene.index.FlushPolicy
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.apache.lucene.index.FlushByRamOrCountsPolicy
  super_class: org.apache.lucene.index.FlushPolicy
{
  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
         0: .line 56
            aload 0 /* this */
            invokespecial org.apache.lucene.index.FlushPolicy.<init>:()V
            return
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;

  public void onDelete(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
    descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=3, args_size=3
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
        start local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        start local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
         0: .line 60
            aload 0 /* this */
            invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnRAM:()Z
            ifeq 4
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
            l2d
            ldc 1048576.0
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
            dmul
            dcmpl
            ifle 4
         1: .line 61
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setApplyAllDeletes:()V
         2: .line 62
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
            ldc "FP"
            invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
            ifeq 4
         3: .line 63
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
            ldc "FP"
            new java.lang.StringBuilder
            dup
            ldc "force apply deletes bytesUsed="
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " vs ramBufferMB="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
            invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
         4: .line 66
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
        end local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    5     0       this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
            0    5     1    control  Lorg/apache/lucene/index/DocumentsWriterFlushControl;
            0    5     2  perThread  Lorg/apache/lucene/index/DocumentsWriterPerThread;
    MethodParameters:
           Name  Flags
      control    
      perThread  

  public void onInsert(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
    descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
        start local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        start local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
         0: .line 70
            aload 0 /* this */
            invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnDocCount:()Z
            ifeq 5
         1: .line 71
            aload 2 /* perThread */
            invokevirtual org.apache.lucene.index.DocumentsWriterPerThread.getNumDocsInRAM:()I
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
         2: .line 72
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getMaxBufferedDocs:()I
            if_icmplt 5
         3: .line 74
            aload 1 /* control */
            aload 2 /* perThread */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setFlushPending:(Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
         4: .line 75
            goto 12
      StackMap locals:
      StackMap stack:
         5: aload 0 /* this */
            invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnRAM:()Z
            ifeq 12
         6: .line 76
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
            ldc 1024.0
            dmul
            ldc 1024.0
            dmul
            d2l
            lstore 3 /* limit */
        start local 3 // long limit
         7: .line 77
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.activeBytes:()J
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
            ladd
            lstore 5 /* totalRam */
        start local 5 // long totalRam
         8: .line 78
            lload 5 /* totalRam */
            lload 3 /* limit */
            lcmp
            iflt 12
         9: .line 79
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
            ldc "FP"
            invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
            ifeq 11
        10: .line 80
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
            ldc "FP"
            new java.lang.StringBuilder
            dup
            ldc "trigger flush: activeBytes="
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.activeBytes:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " deleteBytes="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* control */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " vs limit="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            lload 3 /* limit */
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
        11: .line 82
      StackMap locals: long long
      StackMap stack:
            aload 0 /* this */
            aload 1 /* control */
            aload 2 /* perThread */
            invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.markLargestWriterPending:(Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
        end local 5 // long totalRam
        end local 3 // long limit
        12: .line 85
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
        end local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
            0   13     1    control  Lorg/apache/lucene/index/DocumentsWriterFlushControl;
            0   13     2  perThread  Lorg/apache/lucene/index/DocumentsWriterPerThread;
            7   12     3      limit  J
            8   12     5   totalRam  J
    MethodParameters:
           Name  Flags
      control    
      perThread  

  protected void markLargestWriterPending(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
    descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=4, args_size=3
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
        start local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        start local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
         0: .line 93
            aload 0 /* this */
            aload 1 /* control */
            aload 2 /* perThread */
            invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.findLargestNonPendingWriter:(Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)Lorg/apache/lucene/index/DocumentsWriterPerThread;
            astore 3 /* largestNonPendingWriter */
        start local 3 // org.apache.lucene.index.DocumentsWriterPerThread largestNonPendingWriter
         1: .line 94
            aload 3 /* largestNonPendingWriter */
            ifnull 3
         2: .line 95
            aload 1 /* control */
            aload 3 /* largestNonPendingWriter */
            invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setFlushPending:(Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
         3: .line 97
      StackMap locals: org.apache.lucene.index.DocumentsWriterPerThread
      StackMap stack:
            return
        end local 3 // org.apache.lucene.index.DocumentsWriterPerThread largestNonPendingWriter
        end local 2 // org.apache.lucene.index.DocumentsWriterPerThread perThread
        end local 1 // org.apache.lucene.index.DocumentsWriterFlushControl control
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot                     Name  Signature
            0    4     0                     this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
            0    4     1                  control  Lorg/apache/lucene/index/DocumentsWriterFlushControl;
            0    4     2                perThread  Lorg/apache/lucene/index/DocumentsWriterPerThread;
            1    4     3  largestNonPendingWriter  Lorg/apache/lucene/index/DocumentsWriterPerThread;
    MethodParameters:
           Name  Flags
      control    
      perThread  

  protected boolean flushOnDocCount();
    descriptor: ()Z
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
         0: .line 105
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getMaxBufferedDocs:()I
            iconst_m1
            if_icmpeq 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;

  protected boolean flushOnRAM();
    descriptor: ()Z
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
         0: .line 114
            aload 0 /* this */
            getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
            invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
            ldc -1.0
            dcmpl
            ifeq 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.apache.lucene.index.FlushByRamOrCountsPolicy this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
}
SourceFile: "FlushByRamOrCountsPolicy.java"