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: 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 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.maxDoc:I
2: aload 0
iload 1
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: aload 0
iconst_m1
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
4: aload 0
iconst_m1
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
5: aload 0
sipush 4096
newarray 9
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
6: return
end local 1 end local 0 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 0: getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 1
aload 0
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: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
sipush 4096
if_icmpgt 6
2: getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 3
aload 0
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: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
ifle 24
4: aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
new org.apache.lucene.util.RoaringDocIdSet$ShortArrayDocIdSet
dup
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
iconst_0
aload 0
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: goto 24
6: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 7
aload 0
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: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 8
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
invokevirtual org.apache.lucene.util.FixedBitSet.cardinality:()I
aload 0
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: StackMap locals:
StackMap stack:
aload 0
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
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
isub
sipush 4096
if_icmpge 22
9: ldc 65536
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
isub
newarray 9
astore 1
start local 1 10: aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
iconst_0
aload 0
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: iconst_m1
istore 2
start local 2 12: iconst_0
istore 3
start local 3 13: goto 18
14: StackMap locals: short[] int int
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
iload 2
iconst_1
iadd
invokevirtual org.apache.lucene.util.FixedBitSet.nextSetBit:(I)I
istore 2
15: getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 16
iload 2
ldc 2147483647
if_icmpne 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals:
StackMap stack:
aload 1
iload 3
iload 2
i2s
sastore
17: iinc 3 1
StackMap locals:
StackMap stack:
18: iload 3
aload 1
arraylength
if_icmplt 14
end local 3 19: getstatic org.apache.lucene.util.RoaringDocIdSet$Builder.$assertionsDisabled:Z
ifne 20
iload 2
iconst_1
iadd
aload 0
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
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
iload 2
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: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
aload 0
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
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 end local 1 21: goto 23
22: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
new org.apache.lucene.util.BitDocIdSet
dup
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
aload 0
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: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
24: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.cardinality:I
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
iadd
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.cardinality:I
25: aload 0
aconst_null
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
26: aload 0
iconst_0
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
27: return
end local 0 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 start local 1 0: iload 1
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
if_icmpgt 2
1: 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
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
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: StackMap locals:
StackMap stack:
iload 1
bipush 16
iushr
istore 2
start local 2 3: iload 2
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
if_icmpeq 6
4: aload 0
invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.flush:()V
5: aload 0
iload 2
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlock:I
6: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
sipush 4096
if_icmpge 9
7: aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.buffer:[S
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
iload 1
i2s
sastore
8: goto 18
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
ifnonnull 17
10: ldc 65536
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.maxDoc:I
iload 2
bipush 16
ishl
isub
invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 11: aload 0
new org.apache.lucene.util.FixedBitSet
dup
iload 3
invokespecial org.apache.lucene.util.FixedBitSet.<init>:(I)V
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
12: aload 0
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
start local 4 14: aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
iload 4
ldc 65535
iand
invokevirtual org.apache.lucene.util.FixedBitSet.set:(I)V
end local 4 15: iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
iload 6
if_icmplt 13
end local 3 17: StackMap locals: org.apache.lucene.util.RoaringDocIdSet$Builder int int
StackMap stack:
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.denseBuffer:Lorg/apache/lucene/util/FixedBitSet;
iload 1
ldc 65535
iand
invokevirtual org.apache.lucene.util.FixedBitSet.set:(I)V
18: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.lastDocId:I
19: aload 0
dup
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
iconst_1
iadd
putfield org.apache.lucene.util.RoaringDocIdSet$Builder.currentBlockCardinality:I
20: aload 0
areturn
end local 2 end local 1 end local 0 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 start local 1 0: aload 1
invokevirtual org.apache.lucene.search.DocIdSetIterator.nextDoc:()I
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.add:(I)Lorg/apache/lucene/util/RoaringDocIdSet$Builder;
pop
3: aload 1
invokevirtual org.apache.lucene.search.DocIdSetIterator.nextDoc:()I
istore 2
StackMap locals:
StackMap stack:
4: iload 2
ldc 2147483647
if_icmpne 2
end local 2 5: aload 0
areturn
end local 1 end local 0 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 0: aload 0
invokevirtual org.apache.lucene.util.RoaringDocIdSet$Builder.flush:()V
1: new org.apache.lucene.util.RoaringDocIdSet
dup
aload 0
getfield org.apache.lucene.util.RoaringDocIdSet$Builder.sets:[Lorg/apache/lucene/search/DocIdSet;
aload 0
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 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