public class org.apache.lucene.util.RoaringDocIdSet$Builder
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.lucene.util.RoaringDocIdSet$Builder
  super_class: java.lang.Object
{
  private final int maxDoc;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.apache.lucene.search.DocIdSet[] sets;
    descriptor: [Lorg/apache/lucene/search/DocIdSet;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private int cardinality;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int lastDocId;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int currentBlock;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int currentBlockCardinality;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private final short[] buffer;
    descriptor: [S
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private org.apache.lucene.util.FixedBitSet denseBuffer;
    descriptor: Lorg/apache/lucene/util/FixedBitSet;
    flags: (0x0002) ACC_PRIVATE

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 45
            ldc Lorg/apache/lucene/util/RoaringDocIdSet;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
        start local 1 // int maxDoc
         0: .line 61
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 62
            aload 0 /* this */
            iload 1 /* maxDoc */
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.maxDoc:I
         2: .line 63
            aload 0 /* this */
            iload 1 /* maxDoc */
            ldc 65536
            iadd
            iconst_1
            isub
            bipush 16
            iushr
            anewarray org.apache.lucene.search.DocIdSet
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
         3: .line 64
            aload 0 /* this */
            iconst_m1
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
         4: .line 65
            aload 0 /* this */
            iconst_m1
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
         5: .line 66
            aload 0 /* this */
            sipush 4096
            newarray 9
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
         6: .line 67
            return
        end local 1 // int maxDoc
        end local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0    this  Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
            0    7     1  maxDoc  I
    MethodParameters:
        Name  Flags
      maxDoc  

  private void flush();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=8, locals=4, args_size=1
        start local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
         0: .line 70
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            ldc 65536
            if_icmple 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 71
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            sipush 4096
            if_icmpgt 6
         2: .line 73
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 3
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            ifnull 3
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         3: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            ifle 24
         4: .line 75
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
            new org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet
            dup
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
            iconst_0
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            invokestatic org.apache.lucene.util.ArrayUtil.copyOfSubArray:([SII)[S
            invokespecial org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet.<init>:([S)V
            aastore
         5: .line 77
            goto 24
         6: .line 78
      StackMap locals:
      StackMap stack:
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 7
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            ifnonnull 7
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         7: .line 79
      StackMap locals:
      StackMap stack:
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 8
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            invokevirtual org.apache.lucene.util.FixedBitSet.cardinality:()I
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            if_icmpeq 8
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         8: .line 80
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            invokevirtual org.apache.lucene.util.FixedBitSet.length:()I
            ldc 65536
            if_icmpne 22
            ldc 65536
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            isub
            sipush 4096
            if_icmpge 22
         9: .line 82
            ldc 65536
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            isub
            newarray 9
            astore 1 /* excludedDocs */
        start local 1 // short[] excludedDocs
        10: .line 83
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            iconst_0
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            invokevirtual org.apache.lucene.util.FixedBitSet.length:()I
            invokevirtual org.apache.lucene.util.FixedBitSet.flip:(II)V
        11: .line 84
            iconst_m1
            istore 2 /* excludedDoc */
        start local 2 // int excludedDoc
        12: .line 85
            iconst_0
            istore 3 /* i */
        start local 3 // int i
        13: goto 18
        14: .line 86
      StackMap locals: short[] int int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            iload 2 /* excludedDoc */
            iconst_1
            iadd
            invokevirtual org.apache.lucene.util.FixedBitSet.nextSetBit:(I)I
            istore 2 /* excludedDoc */
        15: .line 87
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 16
            iload 2 /* excludedDoc */
            ldc 2147483647
            if_icmpne 16
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        16: .line 88
      StackMap locals:
      StackMap stack:
            aload 1 /* excludedDocs */
            iload 3 /* i */
            iload 2 /* excludedDoc */
            i2s
            sastore
        17: .line 85
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
        18: iload 3 /* i */
            aload 1 /* excludedDocs */
            arraylength
            if_icmplt 14
        end local 3 // int i
        19: .line 90
            getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
            ifne 20
            iload 2 /* excludedDoc */
            iconst_1
            iadd
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            invokevirtual org.apache.lucene.util.FixedBitSet.length:()I
            if_icmpeq 20
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            iload 2 /* excludedDoc */
            iconst_1
            iadd
            invokevirtual org.apache.lucene.util.FixedBitSet.nextSetBit:(I)I
            ldc 2147483647
            if_icmpeq 20
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        20: .line 91
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
            new org.apache.lucene.util.NotDocIdSet
            dup
            ldc 65536
            new org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet
            dup
            aload 1 /* excludedDocs */
            invokespecial org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet.<init>:([S)V
            invokespecial org.apache.lucene.util.NotDocIdSet.<init>:(ILorg/apache/lucene/search/DocIdSet;)V
            aastore
        end local 2 // int excludedDoc
        end local 1 // short[] excludedDocs
        21: .line 92
            goto 23
        22: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
            new org.apache.lucene.util.BitDocIdSet
            dup
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            i2l
            invokespecial org.apache.lucene.util.BitDocIdSet.<init>:(Lorg/apache/lucene/util/BitSet;J)V
            aastore
        23: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
        24: .line 99
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.cardinality:I
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            iadd
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.cardinality:I
        25: .line 100
            aload 0 /* this */
            aconst_null
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
        26: .line 101
            aload 0 /* this */
            iconst_0
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
        27: .line 102
            return
        end local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   28     0          this  Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
           10   21     1  excludedDocs  [S
           12   21     2   excludedDoc  I
           13   19     3             i  I

  public org.apache.lucene.util.RoaringDocIdSet$Builder add(int);
    descriptor: (I)Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=8, args_size=2
        start local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
        start local 1 // int docId
         0: .line 109
            iload 1 /* docId */
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
            if_icmpgt 2
         1: .line 110
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Doc ids must be added in-order, got "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* docId */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " which is <= lastDocID="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 112
      StackMap locals:
      StackMap stack:
            iload 1 /* docId */
            bipush 16
            iushr
            istore 2 /* block */
        start local 2 // int block
         3: .line 113
            iload 2 /* block */
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
            if_icmpeq 6
         4: .line 115
            aload 0 /* this */
            invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.flush:()V
         5: .line 116
            aload 0 /* this */
            iload 2 /* block */
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
         6: .line 119
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            sipush 4096
            if_icmpge 9
         7: .line 120
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            iload 1 /* docId */
            i2s
            sastore
         8: .line 121
            goto 18
         9: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            ifnonnull 17
        10: .line 124
            ldc 65536
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.maxDoc:I
            iload 2 /* block */
            bipush 16
            ishl
            isub
            invokestatic java.lang.Math.min:(II)I
            istore 3 /* numBits */
        start local 3 // int numBits
        11: .line 125
            aload 0 /* this */
            new org.apache.lucene.util.FixedBitSet
            dup
            iload 3 /* numBits */
            invokespecial org.apache.lucene.util.FixedBitSet.<init>:(I)V
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
        12: .line 126
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
            dup
            astore 7
            arraylength
            istore 6
            iconst_0
            istore 5
            goto 16
      StackMap locals: org.apache.lucene.util.RoaringDocIdSet$Builder int int int top int int short[]
      StackMap stack:
        13: aload 7
            iload 5
            saload
            istore 4 /* doc */
        start local 4 // short doc
        14: .line 127
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            iload 4 /* doc */
            ldc 65535
            iand
            invokevirtual org.apache.lucene.util.FixedBitSet.set:(I)V
        end local 4 // short doc
        15: .line 126
            iinc 5 1
      StackMap locals:
      StackMap stack:
        16: iload 5
            iload 6
            if_icmplt 13
        end local 3 // int numBits
        17: .line 130
      StackMap locals: org.apache.lucene.util.RoaringDocIdSet$Builder int int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
            iload 1 /* docId */
            ldc 65535
            iand
            invokevirtual org.apache.lucene.util.FixedBitSet.set:(I)V
        18: .line 133
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* docId */
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
        19: .line 134
            aload 0 /* this */
            dup
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
            iconst_1
            iadd
            putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
        20: .line 135
            aload 0 /* this */
            areturn
        end local 2 // int block
        end local 1 // int docId
        end local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   21     0     this  Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
            0   21     1    docId  I
            3   21     2    block  I
           11   17     3  numBits  I
           14   15     4      doc  S
    MethodParameters:
       Name  Flags
      docId  

  public org.apache.lucene.util.RoaringDocIdSet$Builder add(org.apache.lucene.search.DocIdSetIterator);
    descriptor: (Lorg/apache/lucene/search/DocIdSetIterator;)Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
        start local 1 // org.apache.lucene.search.DocIdSetIterator disi
         0: .line 140
            aload 1 /* disi */
            invokevirtual org.apache.lucene.search.DocIdSetIterator.nextDoc:()I
            istore 2 /* doc */
        start local 2 // int doc
         1: goto 4
         2: .line 141
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            iload 2 /* doc */
            invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.add:(I)Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
            pop
         3: .line 140
            aload 1 /* disi */
            invokevirtual org.apache.lucene.search.DocIdSetIterator.nextDoc:()I
            istore 2 /* doc */
      StackMap locals:
      StackMap stack:
         4: iload 2 /* doc */
            ldc 2147483647
            if_icmpne 2
        end local 2 // int doc
         5: .line 143
            aload 0 /* this */
            areturn
        end local 1 // org.apache.lucene.search.DocIdSetIterator disi
        end local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
            0    6     1  disi  Lorg/apache/lucene/search/DocIdSetIterator;
            1    5     2   doc  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      disi  

  public org.apache.lucene.util.RoaringDocIdSet build();
    descriptor: ()Lorg/apache/lucene/util/RoaringDocIdSet;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
         0: .line 148
            aload 0 /* this */
            invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.flush:()V
         1: .line 149
            new org.apache.lucene.util.RoaringDocIdSet
            dup
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
            aload 0 /* this */
            getfield org.apache.lucene.util.RoaringDocIdSet$Builder.cardinality:I
            invokespecial org.apache.lucene.util.RoaringDocIdSet.<init>:([Lorg/apache/lucene/search/DocIdSet;I)V
            areturn
        end local 0 // org.apache.lucene.util.RoaringDocIdSet$Builder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
}
SourceFile: "RoaringDocIdSet.java"
NestHost: org.apache.lucene.util.RoaringDocIdSet
InnerClasses:
  public Builder = org.apache.lucene.util.RoaringDocIdSet$Builder of org.apache.lucene.util.RoaringDocIdSet
  private ShortArrayDocIdSet = org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet of org.apache.lucene.util.RoaringDocIdSet