public abstract class org.apache.lucene.search.TopDocsCollector<T extends org.apache.lucene.search.ScoreDoc> implements org.apache.lucene.search.Collector
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.lucene.search.TopDocsCollector
super_class: java.lang.Object
{
protected static final org.apache.lucene.search.TopDocs EMPTY_TOPDOCS;
descriptor: Lorg/apache/lucene/search/TopDocs;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final org.apache.lucene.util.PriorityQueue<T> pq;
descriptor: Lorg/apache/lucene/util/PriorityQueue;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/apache/lucene/util/PriorityQueue<TT;>;
protected int totalHits;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected org.apache.lucene.search.TotalHits$Relation totalHitsRelation;
descriptor: Lorg/apache/lucene/search/TotalHits$Relation;
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: new org.apache.lucene.search.TopDocs
dup
new org.apache.lucene.search.TotalHits
dup
lconst_0
getstatic org.apache.lucene.search.TotalHits$Relation.EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
invokespecial org.apache.lucene.search.TotalHits.<init>:(JLorg/apache/lucene/search/TotalHits$Relation;)V
iconst_0
anewarray org.apache.lucene.search.ScoreDoc
invokespecial org.apache.lucene.search.TopDocs.<init>:(Lorg/apache/lucene/search/TotalHits;[Lorg/apache/lucene/search/ScoreDoc;)V
putstatic org.apache.lucene.search.TopDocsCollector.EMPTY_TOPDOCS:Lorg/apache/lucene/search/TopDocs;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.apache.lucene.util.PriorityQueue<T>);
descriptor: (Lorg/apache/lucene/util/PriorityQueue;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.apache.lucene.search.TotalHits$Relation.EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
putfield org.apache.lucene.search.TopDocsCollector.totalHitsRelation:Lorg/apache/lucene/search/TotalHits$Relation;
2: aload 0
aload 1
putfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
0 4 1 pq Lorg/apache/lucene/util/PriorityQueue<TT;>;
Signature: (Lorg/apache/lucene/util/PriorityQueue<TT;>;)V
MethodParameters:
Name Flags
pq
protected void populateResults(org.apache.lucene.search.ScoreDoc[], int);
descriptor: ([Lorg/apache/lucene/search/ScoreDoc;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iconst_1
isub
istore 3
start local 3 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 1
iload 3
aload 0
getfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.pop:()Ljava/lang/Object;
checkcast org.apache.lucene.search.ScoreDoc
aastore
3: iinc 3 -1
StackMap locals:
StackMap stack:
4: iload 3
ifge 2
end local 3 5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
0 6 1 results [Lorg/apache/lucene/search/ScoreDoc;
0 6 2 howMany I
1 5 3 i I
MethodParameters:
Name Flags
results
howMany
protected org.apache.lucene.search.TopDocs newTopDocs(org.apache.lucene.search.ScoreDoc[], int);
descriptor: ([Lorg/apache/lucene/search/ScoreDoc;I)Lorg/apache/lucene/search/TopDocs;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 1
getstatic org.apache.lucene.search.TopDocsCollector.EMPTY_TOPDOCS:Lorg/apache/lucene/search/TopDocs;
goto 2
StackMap locals:
StackMap stack:
1: new org.apache.lucene.search.TopDocs
dup
new org.apache.lucene.search.TotalHits
dup
aload 0
getfield org.apache.lucene.search.TopDocsCollector.totalHits:I
i2l
aload 0
getfield org.apache.lucene.search.TopDocsCollector.totalHitsRelation:Lorg/apache/lucene/search/TotalHits$Relation;
invokespecial org.apache.lucene.search.TotalHits.<init>:(JLorg/apache/lucene/search/TotalHits$Relation;)V
aload 1
invokespecial org.apache.lucene.search.TopDocs.<init>:(Lorg/apache/lucene/search/TotalHits;[Lorg/apache/lucene/search/ScoreDoc;)V
StackMap locals:
StackMap stack: org.apache.lucene.search.TopDocs
2: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
0 3 1 results [Lorg/apache/lucene/search/ScoreDoc;
0 3 2 start I
MethodParameters:
Name Flags
results
start
public int getTotalHits();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.TopDocsCollector.totalHits:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
protected int topDocsSize();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.TopDocsCollector.totalHits:I
aload 0
getfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.size:()I
if_icmpge 1
aload 0
getfield org.apache.lucene.search.TopDocsCollector.totalHits:I
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.size:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
public org.apache.lucene.search.TopDocs topDocs();
descriptor: ()Lorg/apache/lucene/search/TopDocs;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
invokevirtual org.apache.lucene.search.TopDocsCollector.topDocsSize:()I
invokevirtual org.apache.lucene.search.TopDocsCollector.topDocs:(II)Lorg/apache/lucene/search/TopDocs;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
public org.apache.lucene.search.TopDocs topDocs(int);
descriptor: (I)Lorg/apache/lucene/search/TopDocs;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aload 0
invokevirtual org.apache.lucene.search.TopDocsCollector.topDocsSize:()I
invokevirtual org.apache.lucene.search.TopDocsCollector.topDocs:(II)Lorg/apache/lucene/search/TopDocs;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
0 1 1 start I
MethodParameters:
Name Flags
start
public org.apache.lucene.search.TopDocs topDocs(int, int);
descriptor: (II)Lorg/apache/lucene/search/TopDocs;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.search.TopDocsCollector.topDocsSize:()I
istore 3
start local 3 1: iload 1
iflt 2
iload 1
iload 3
if_icmpge 2
iload 2
ifgt 3
2: StackMap locals: int
StackMap stack:
aload 0
aconst_null
iload 1
invokevirtual org.apache.lucene.search.TopDocsCollector.newTopDocs:([Lorg/apache/lucene/search/ScoreDoc;I)Lorg/apache/lucene/search/TopDocs;
areturn
3: StackMap locals:
StackMap stack:
iload 3
iload 1
isub
iload 2
invokestatic java.lang.Math.min:(II)I
istore 2
4: iload 2
anewarray org.apache.lucene.search.ScoreDoc
astore 4
start local 4 5: aload 0
getfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.size:()I
iload 1
isub
iload 2
isub
istore 5
start local 5 6: goto 8
StackMap locals: org.apache.lucene.search.ScoreDoc[] int
StackMap stack:
7: aload 0
getfield org.apache.lucene.search.TopDocsCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.pop:()Ljava/lang/Object;
pop
iinc 5 -1
StackMap locals:
StackMap stack:
8: iload 5
ifgt 7
end local 5 9: aload 0
aload 4
iload 2
invokevirtual org.apache.lucene.search.TopDocsCollector.populateResults:([Lorg/apache/lucene/search/ScoreDoc;I)V
10: aload 0
aload 4
iload 1
invokevirtual org.apache.lucene.search.TopDocsCollector.newTopDocs:([Lorg/apache/lucene/search/ScoreDoc;I)Lorg/apache/lucene/search/TopDocs;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/search/TopDocsCollector<TT;>;
0 11 1 start I
0 11 2 howMany I
1 11 3 size I
5 11 4 results [Lorg/apache/lucene/search/ScoreDoc;
6 9 5 i I
MethodParameters:
Name Flags
start
howMany
}
Signature: <T:Lorg/apache/lucene/search/ScoreDoc;>Ljava/lang/Object;Lorg/apache/lucene/search/Collector;
SourceFile: "TopDocsCollector.java"
InnerClasses:
public final Relation = org.apache.lucene.search.TotalHits$Relation of org.apache.lucene.search.TotalHits