public final class org.apache.lucene.util.MergedIterator<T extends java.lang.Comparable<T>> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.MergedIterator
super_class: java.lang.Object
{
private T current;
descriptor: Ljava/lang/Comparable;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
private final org.apache.lucene.util.MergedIterator$TermMergeQueue<T> queue;
descriptor: Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/lucene/util/MergedIterator$TermMergeQueue<TT;>;
private final org.apache.lucene.util.MergedIterator$SubIterator<T>[] top;
descriptor: [Lorg/apache/lucene/util/MergedIterator$SubIterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Lorg/apache/lucene/util/MergedIterator$SubIterator<TT;>;
private final boolean removeDuplicates;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int numTop;
descriptor: I
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/MergedIterator;
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.MergedIterator.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Iterator<T>[]);
descriptor: ([Ljava/util/Iterator;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
aload 1
invokespecial org.apache.lucene.util.MergedIterator.<init>:(Z[Ljava/util/Iterator;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
0 2 1 iterators [Ljava/util/Iterator;
Signature: ([Ljava/util/Iterator<TT;>;)V
MethodParameters:
Name Flags
iterators
public void <init>(boolean, java.util.Iterator<T>[]);
descriptor: (Z[Ljava/util/Iterator;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.apache.lucene.util.MergedIterator.removeDuplicates:Z
2: aload 0
new org.apache.lucene.util.MergedIterator$TermMergeQueue
dup
aload 2
arraylength
invokespecial org.apache.lucene.util.MergedIterator$TermMergeQueue.<init>:(I)V
putfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
3: aload 0
aload 2
arraylength
anewarray org.apache.lucene.util.MergedIterator$SubIterator
putfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
4: iconst_0
istore 3
start local 3 5: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 14
StackMap locals: org.apache.lucene.util.MergedIterator int java.util.Iterator[] int top int int java.util.Iterator[]
StackMap stack:
6: aload 7
iload 5
aaload
astore 4
start local 4 7: aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 13
8: new org.apache.lucene.util.MergedIterator$SubIterator
dup
invokespecial org.apache.lucene.util.MergedIterator$SubIterator.<init>:()V
astore 8
start local 8 9: aload 8
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Comparable
putfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
10: aload 8
aload 4
putfield org.apache.lucene.util.MergedIterator$SubIterator.iterator:Ljava/util/Iterator;
11: aload 8
iload 3
iinc 3 1
putfield org.apache.lucene.util.MergedIterator$SubIterator.index:I
12: aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
aload 8
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.add:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 4 13: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
14: iload 5
iload 6
if_icmplt 6
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
0 16 1 removeDuplicates Z
0 16 2 iterators [Ljava/util/Iterator;
5 16 3 index I
7 13 4 iterator Ljava/util/Iterator<TT;>;
9 13 8 sub Lorg/apache/lucene/util/MergedIterator$SubIterator<TT;>;
Signature: (Z[Ljava/util/Iterator<TT;>;)V
MethodParameters:
Name Flags
removeDuplicates
iterators
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.size:()I
ifle 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
getfield org.apache.lucene.util.MergedIterator$SubIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
getfield org.apache.lucene.util.MergedIterator.numTop:I
if_icmplt 4
end local 1 8: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
3 8 1 i I
public T next();
descriptor: ()Ljava/lang/Comparable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.util.MergedIterator.pushTop:()V
1: aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.size:()I
ifle 4
2: aload 0
invokevirtual org.apache.lucene.util.MergedIterator.pullTop:()V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.lucene.util.MergedIterator.current:Ljava/lang/Comparable;
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.current:Ljava/lang/Comparable;
ifnonnull 7
6: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.current:Ljava/lang/Comparable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
private void pullTop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.MergedIterator.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.lucene.util.MergedIterator.numTop:I
ifeq 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.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
aload 0
dup
getfield org.apache.lucene.util.MergedIterator.numTop:I
dup_x1
iconst_1
iadd
putfield org.apache.lucene.util.MergedIterator.numTop:I
aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.pop:()Ljava/lang/Object;
checkcast org.apache.lucene.util.MergedIterator$SubIterator
aastore
2: aload 0
getfield org.apache.lucene.util.MergedIterator.removeDuplicates:Z
ifeq 7
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
aload 0
dup
getfield org.apache.lucene.util.MergedIterator.numTop:I
dup_x1
iconst_1
iadd
putfield org.apache.lucene.util.MergedIterator.numTop:I
aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.pop:()Ljava/lang/Object;
checkcast org.apache.lucene.util.MergedIterator$SubIterator
aastore
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.size:()I
ifeq 7
6: aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.top:()Ljava/lang/Object;
checkcast org.apache.lucene.util.MergedIterator$SubIterator
getfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iconst_0
aaload
getfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 4
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iconst_0
aaload
getfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
putfield org.apache.lucene.util.MergedIterator.current:Ljava/lang/Comparable;
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
private void pushTop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 8
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
getfield org.apache.lucene.util.MergedIterator$SubIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 6
3: aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
getfield org.apache.lucene.util.MergedIterator$SubIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Comparable
putfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
4: aload 0
getfield org.apache.lucene.util.MergedIterator.queue:Lorg/apache/lucene/util/MergedIterator$TermMergeQueue;
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
invokevirtual org.apache.lucene.util.MergedIterator$TermMergeQueue.add:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.MergedIterator.top:[Lorg/apache/lucene/util/MergedIterator$SubIterator;
iload 1
aaload
aconst_null
putfield org.apache.lucene.util.MergedIterator$SubIterator.current:Ljava/lang/Comparable;
7: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
8: iload 1
aload 0
getfield org.apache.lucene.util.MergedIterator.numTop:I
if_icmplt 2
end local 1 9: aload 0
iconst_0
putfield org.apache.lucene.util.MergedIterator.numTop:I
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/util/MergedIterator<TT;>;
1 9 1 i I
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.lucene.util.MergedIterator.next:()Ljava/lang/Comparable;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T::Ljava/lang/Comparable<TT;>;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "MergedIterator.java"
NestMembers:
org.apache.lucene.util.MergedIterator$SubIterator org.apache.lucene.util.MergedIterator$TermMergeQueue
InnerClasses:
private SubIterator = org.apache.lucene.util.MergedIterator$SubIterator of org.apache.lucene.util.MergedIterator
private TermMergeQueue = org.apache.lucene.util.MergedIterator$TermMergeQueue of org.apache.lucene.util.MergedIterator