public class org.apache.lucene.search.TopDocs
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.search.TopDocs
super_class: java.lang.Object
{
public org.apache.lucene.search.TotalHits totalHits;
descriptor: Lorg/apache/lucene/search/TotalHits;
flags: (0x0001) ACC_PUBLIC
public org.apache.lucene.search.ScoreDoc[] scoreDocs;
descriptor: [Lorg/apache/lucene/search/ScoreDoc;
flags: (0x0001) ACC_PUBLIC
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/search/TopDocs;
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.search.TopDocs.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.lucene.search.TotalHits, org.apache.lucene.search.ScoreDoc[]);
descriptor: (Lorg/apache/lucene/search/TotalHits;[Lorg/apache/lucene/search/ScoreDoc;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.lucene.search.TopDocs.totalHits:Lorg/apache/lucene/search/TotalHits;
2: aload 0
aload 2
putfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/search/TopDocs;
0 4 1 totalHits Lorg/apache/lucene/search/TotalHits;
0 4 2 scoreDocs [Lorg/apache/lucene/search/ScoreDoc;
MethodParameters:
Name Flags
totalHits
scoreDocs
static boolean tieBreakLessThan(org.apache.lucene.search.TopDocs$ShardRef, org.apache.lucene.search.ScoreDoc, org.apache.lucene.search.TopDocs$ShardRef, org.apache.lucene.search.ScoreDoc);
descriptor: (Lorg/apache/lucene/search/TopDocs$ShardRef;Lorg/apache/lucene/search/ScoreDoc;Lorg/apache/lucene/search/TopDocs$ShardRef;Lorg/apache/lucene/search/ScoreDoc;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual org.apache.lucene.search.TopDocs$ShardRef.getShardIndex:(Lorg/apache/lucene/search/ScoreDoc;)I
istore 4
start local 4 1: aload 2
aload 3
invokevirtual org.apache.lucene.search.TopDocs$ShardRef.getShardIndex:(Lorg/apache/lucene/search/ScoreDoc;)I
istore 5
start local 5 2: iload 4
iload 5
if_icmpge 4
3: iconst_1
ireturn
4: StackMap locals: int int
StackMap stack:
iload 4
iload 5
if_icmple 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.search.TopDocs.$assertionsDisabled:Z
ifne 7
aload 0
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
aload 2
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
if_icmpne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
aload 2
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
if_icmpge 8
iconst_1
ireturn
StackMap locals:
StackMap stack:
8: iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 first Lorg/apache/lucene/search/TopDocs$ShardRef;
0 9 1 firstDoc Lorg/apache/lucene/search/ScoreDoc;
0 9 2 second Lorg/apache/lucene/search/TopDocs$ShardRef;
0 9 3 secondDoc Lorg/apache/lucene/search/ScoreDoc;
1 9 4 firstShardIndex I
2 9 5 secondShardIndex I
MethodParameters:
Name Flags
first
firstDoc
second
secondDoc
public static org.apache.lucene.search.TopDocs merge(int, org.apache.lucene.search.TopDocs[]);
descriptor: (I[Lorg/apache/lucene/search/TopDocs;)Lorg/apache/lucene/search/TopDocs;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
iload 0
aload 1
iconst_1
invokestatic org.apache.lucene.search.TopDocs.merge:(II[Lorg/apache/lucene/search/TopDocs;Z)Lorg/apache/lucene/search/TopDocs;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 topN I
0 1 1 shardHits [Lorg/apache/lucene/search/TopDocs;
MethodParameters:
Name Flags
topN
shardHits
public static org.apache.lucene.search.TopDocs merge(int, int, org.apache.lucene.search.TopDocs[], boolean);
descriptor: (II[Lorg/apache/lucene/search/TopDocs;Z)Lorg/apache/lucene/search/TopDocs;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
iload 0
iload 1
aload 2
iload 3
invokestatic org.apache.lucene.search.TopDocs.mergeAux:(Lorg/apache/lucene/search/Sort;II[Lorg/apache/lucene/search/TopDocs;Z)Lorg/apache/lucene/search/TopDocs;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 start I
0 1 1 topN I
0 1 2 shardHits [Lorg/apache/lucene/search/TopDocs;
0 1 3 setShardIndex Z
MethodParameters:
Name Flags
start
topN
shardHits
setShardIndex
public static org.apache.lucene.search.TopFieldDocs merge(org.apache.lucene.search.Sort, int, org.apache.lucene.search.TopFieldDocs[]);
descriptor: (Lorg/apache/lucene/search/Sort;I[Lorg/apache/lucene/search/TopFieldDocs;)Lorg/apache/lucene/search/TopFieldDocs;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
iload 1
aload 2
iconst_1
invokestatic org.apache.lucene.search.TopDocs.merge:(Lorg/apache/lucene/search/Sort;II[Lorg/apache/lucene/search/TopFieldDocs;Z)Lorg/apache/lucene/search/TopFieldDocs;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sort Lorg/apache/lucene/search/Sort;
0 1 1 topN I
0 1 2 shardHits [Lorg/apache/lucene/search/TopFieldDocs;
MethodParameters:
Name Flags
sort
topN
shardHits
public static org.apache.lucene.search.TopFieldDocs merge(org.apache.lucene.search.Sort, int, int, org.apache.lucene.search.TopFieldDocs[], boolean);
descriptor: (Lorg/apache/lucene/search/Sort;II[Lorg/apache/lucene/search/TopFieldDocs;Z)Lorg/apache/lucene/search/TopFieldDocs;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "sort must be non-null when merging field-docs"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
aload 3
iload 4
invokestatic org.apache.lucene.search.TopDocs.mergeAux:(Lorg/apache/lucene/search/Sort;II[Lorg/apache/lucene/search/TopDocs;Z)Lorg/apache/lucene/search/TopDocs;
checkcast org.apache.lucene.search.TopFieldDocs
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 sort Lorg/apache/lucene/search/Sort;
0 3 1 start I
0 3 2 topN I
0 3 3 shardHits [Lorg/apache/lucene/search/TopFieldDocs;
0 3 4 setShardIndex Z
MethodParameters:
Name Flags
sort
start
topN
shardHits
setShardIndex
private static org.apache.lucene.search.TopDocs mergeAux(org.apache.lucene.search.Sort, int, int, org.apache.lucene.search.TopDocs[], boolean);
descriptor: (Lorg/apache/lucene/search/Sort;II[Lorg/apache/lucene/search/TopDocs;Z)Lorg/apache/lucene/search/TopDocs;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=16, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
ifnonnull 3
1: new org.apache.lucene.search.TopDocs$ScoreMergeSortQueue
dup
aload 3
invokespecial org.apache.lucene.search.TopDocs$ScoreMergeSortQueue.<init>:([Lorg/apache/lucene/search/TopDocs;)V
astore 5
start local 5 2: goto 4
end local 5 3: StackMap locals:
StackMap stack:
new org.apache.lucene.search.TopDocs$MergeSortQueue
dup
aload 0
aload 3
invokespecial org.apache.lucene.search.TopDocs$MergeSortQueue.<init>:(Lorg/apache/lucene/search/Sort;[Lorg/apache/lucene/search/TopDocs;)V
astore 5
start local 5 4: StackMap locals: org.apache.lucene.util.PriorityQueue
StackMap stack:
lconst_0
lstore 6
start local 6 5: getstatic org.apache.lucene.search.TotalHits$Relation.EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
astore 8
start local 8 6: iconst_0
istore 9
start local 9 7: iconst_0
istore 10
start local 10 8: goto 20
9: StackMap locals: org.apache.lucene.search.Sort int int org.apache.lucene.search.TopDocs[] int org.apache.lucene.util.PriorityQueue long org.apache.lucene.search.TotalHits$Relation int int
StackMap stack:
aload 3
iload 10
aaload
astore 11
start local 11 10: lload 6
aload 11
getfield org.apache.lucene.search.TopDocs.totalHits:Lorg/apache/lucene/search/TotalHits;
getfield org.apache.lucene.search.TotalHits.value:J
ladd
lstore 6
11: aload 11
getfield org.apache.lucene.search.TopDocs.totalHits:Lorg/apache/lucene/search/TotalHits;
getfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
getstatic org.apache.lucene.search.TotalHits$Relation.GREATER_THAN_OR_EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
if_acmpne 13
12: getstatic org.apache.lucene.search.TotalHits$Relation.GREATER_THAN_OR_EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
astore 8
13: StackMap locals: org.apache.lucene.search.TopDocs
StackMap stack:
aload 11
getfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
ifnull 19
aload 11
getfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
arraylength
ifle 19
14: iload 9
aload 11
getfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
arraylength
iadd
istore 9
15: aload 5
16: new org.apache.lucene.search.TopDocs$ShardRef
dup
iload 10
iload 4
ifeq 17
iconst_0
goto 18
StackMap locals: org.apache.lucene.search.Sort int int org.apache.lucene.search.TopDocs[] int org.apache.lucene.util.PriorityQueue long org.apache.lucene.search.TotalHits$Relation int int org.apache.lucene.search.TopDocs
StackMap stack: org.apache.lucene.util.PriorityQueue new 16 new 16 int
17: iconst_1
StackMap locals: org.apache.lucene.search.Sort int int org.apache.lucene.search.TopDocs[] int org.apache.lucene.util.PriorityQueue long org.apache.lucene.search.TotalHits$Relation int int org.apache.lucene.search.TopDocs
StackMap stack: org.apache.lucene.util.PriorityQueue new 16 new 16 int int
18: invokespecial org.apache.lucene.search.TopDocs$ShardRef.<init>:(IZ)V
invokevirtual org.apache.lucene.util.PriorityQueue.add:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 11 19: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
20: iload 10
aload 3
arraylength
if_icmplt 9
end local 10 21: iload 9
iload 1
if_icmpgt 24
22: iconst_0
anewarray org.apache.lucene.search.ScoreDoc
astore 10
start local 10 23: goto 45
end local 10 24: StackMap locals:
StackMap stack:
iload 2
iload 9
iload 1
isub
invokestatic java.lang.Math.min:(II)I
anewarray org.apache.lucene.search.ScoreDoc
astore 10
start local 10 25: iload 1
iload 2
iadd
istore 11
start local 11 26: iload 9
iload 11
invokestatic java.lang.Math.min:(II)I
istore 12
start local 12 27: iconst_0
istore 13
start local 13 28: goto 44
29: StackMap locals: org.apache.lucene.search.Sort int int org.apache.lucene.search.TopDocs[] int org.apache.lucene.util.PriorityQueue long org.apache.lucene.search.TotalHits$Relation int org.apache.lucene.search.ScoreDoc[] int int int
StackMap stack:
getstatic org.apache.lucene.search.TopDocs.$assertionsDisabled:Z
ifne 30
aload 5
invokevirtual org.apache.lucene.util.PriorityQueue.size:()I
ifgt 30
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
30: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.apache.lucene.util.PriorityQueue.top:()Ljava/lang/Object;
checkcast org.apache.lucene.search.TopDocs$ShardRef
astore 14
start local 14 31: aload 3
aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.shardIndex:I
aaload
getfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
aload 14
dup
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
dup_x1
iconst_1
iadd
putfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
aaload
astore 15
start local 15 32: iload 4
ifeq 35
33: aload 15
aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.shardIndex:I
putfield org.apache.lucene.search.ScoreDoc.shardIndex:I
34: goto 37
StackMap locals: org.apache.lucene.search.TopDocs$ShardRef org.apache.lucene.search.ScoreDoc
StackMap stack:
35: aload 15
getfield org.apache.lucene.search.ScoreDoc.shardIndex:I
iconst_m1
if_icmpne 37
36: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "setShardIndex is false but TopDocs["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.shardIndex:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "].scoreDocs["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
iconst_1
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] is not set"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals:
StackMap stack:
iload 13
iload 1
if_icmplt 39
38: aload 10
iload 13
iload 1
isub
aload 15
aastore
39: StackMap locals:
StackMap stack:
iinc 13 1
40: aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.hitIndex:I
aload 3
aload 14
getfield org.apache.lucene.search.TopDocs$ShardRef.shardIndex:I
aaload
getfield org.apache.lucene.search.TopDocs.scoreDocs:[Lorg/apache/lucene/search/ScoreDoc;
arraylength
if_icmpge 43
41: aload 5
invokevirtual org.apache.lucene.util.PriorityQueue.updateTop:()Ljava/lang/Object;
pop
42: goto 44
43: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.apache.lucene.util.PriorityQueue.pop:()Ljava/lang/Object;
pop
end local 15 end local 14 44: StackMap locals:
StackMap stack:
iload 13
iload 12
if_icmplt 29
end local 13 end local 12 end local 11 45: StackMap locals:
StackMap stack:
new org.apache.lucene.search.TotalHits
dup
lload 6
aload 8
invokespecial org.apache.lucene.search.TotalHits.<init>:(JLorg/apache/lucene/search/TotalHits$Relation;)V
astore 11
start local 11 46: aload 0
ifnonnull 48
47: new org.apache.lucene.search.TopDocs
dup
aload 11
aload 10
invokespecial org.apache.lucene.search.TopDocs.<init>:(Lorg/apache/lucene/search/TotalHits;[Lorg/apache/lucene/search/ScoreDoc;)V
areturn
48: StackMap locals: org.apache.lucene.search.TotalHits
StackMap stack:
new org.apache.lucene.search.TopFieldDocs
dup
aload 11
aload 10
aload 0
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
invokespecial org.apache.lucene.search.TopFieldDocs.<init>:(Lorg/apache/lucene/search/TotalHits;[Lorg/apache/lucene/search/ScoreDoc;[Lorg/apache/lucene/search/SortField;)V
areturn
end local 11 end local 10 end local 9 end local 8 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 sort Lorg/apache/lucene/search/Sort;
0 49 1 start I
0 49 2 size I
0 49 3 shardHits [Lorg/apache/lucene/search/TopDocs;
0 49 4 setShardIndex Z
2 3 5 queue Lorg/apache/lucene/util/PriorityQueue<Lorg/apache/lucene/search/TopDocs$ShardRef;>;
4 49 5 queue Lorg/apache/lucene/util/PriorityQueue<Lorg/apache/lucene/search/TopDocs$ShardRef;>;
5 49 6 totalHitCount J
6 49 8 totalHitsRelation Lorg/apache/lucene/search/TotalHits$Relation;
7 49 9 availHitCount I
8 21 10 shardIDX I
10 19 11 shard Lorg/apache/lucene/search/TopDocs;
23 24 10 hits [Lorg/apache/lucene/search/ScoreDoc;
25 49 10 hits [Lorg/apache/lucene/search/ScoreDoc;
26 45 11 requestedResultWindow I
27 45 12 numIterOnHits I
28 45 13 hitUpto I
31 44 14 ref Lorg/apache/lucene/search/TopDocs$ShardRef;
32 44 15 hit Lorg/apache/lucene/search/ScoreDoc;
46 49 11 totalHits Lorg/apache/lucene/search/TotalHits;
MethodParameters:
Name Flags
sort
start
size
shardHits
setShardIndex
}
SourceFile: "TopDocs.java"
NestMembers:
org.apache.lucene.search.TopDocs$MergeSortQueue org.apache.lucene.search.TopDocs$ScoreMergeSortQueue org.apache.lucene.search.TopDocs$ShardRef
InnerClasses:
private MergeSortQueue = org.apache.lucene.search.TopDocs$MergeSortQueue of org.apache.lucene.search.TopDocs
private ScoreMergeSortQueue = org.apache.lucene.search.TopDocs$ScoreMergeSortQueue of org.apache.lucene.search.TopDocs
private final ShardRef = org.apache.lucene.search.TopDocs$ShardRef of org.apache.lucene.search.TopDocs
public final Relation = org.apache.lucene.search.TotalHits$Relation of org.apache.lucene.search.TotalHits