public abstract class org.apache.lucene.search.TopFieldCollector extends org.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.FieldValueHitQueue$Entry>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.lucene.search.TopFieldCollector
super_class: org.apache.lucene.search.TopDocsCollector
{
private static final org.apache.lucene.search.ScoreDoc[] EMPTY_SCOREDOCS;
descriptor: [Lorg/apache/lucene/search/ScoreDoc;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
final int numHits;
descriptor: I
flags: (0x0010) ACC_FINAL
final int totalHitsThreshold;
descriptor: I
flags: (0x0010) ACC_FINAL
final org.apache.lucene.search.FieldComparator$RelevanceComparator firstComparator;
descriptor: Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
flags: (0x0010) ACC_FINAL
final boolean canSetMinScore;
descriptor: Z
flags: (0x0010) ACC_FINAL
final int numComparators;
descriptor: I
flags: (0x0010) ACC_FINAL
org.apache.lucene.search.FieldValueHitQueue$Entry bottom;
descriptor: Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
flags: (0x0000)
boolean queueFull;
descriptor: Z
flags: (0x0000)
int docBase;
descriptor: I
flags: (0x0000)
final boolean needsScores;
descriptor: Z
flags: (0x0010) ACC_FINAL
final org.apache.lucene.search.ScoreMode scoreMode;
descriptor: Lorg/apache/lucene/search/ScoreMode;
flags: (0x0010) ACC_FINAL
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/TopFieldCollector;
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.TopFieldCollector.$assertionsDisabled:Z
3: iconst_0
anewarray org.apache.lucene.search.ScoreDoc
putstatic org.apache.lucene.search.TopFieldCollector.EMPTY_SCOREDOCS:[Lorg/apache/lucene/search/ScoreDoc;
return
LocalVariableTable:
Start End Slot Name Signature
static boolean canEarlyTerminate(org.apache.lucene.search.Sort, org.apache.lucene.search.Sort);
descriptor: (Lorg/apache/lucene/search/Sort;Lorg/apache/lucene/search/Sort;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.apache.lucene.search.TopFieldCollector.canEarlyTerminateOnDocId:(Lorg/apache/lucene/search/Sort;)Z
ifne 3
1: aload 0
aload 1
invokestatic org.apache.lucene.search.TopFieldCollector.canEarlyTerminateOnPrefix:(Lorg/apache/lucene/search/Sort;Lorg/apache/lucene/search/Sort;)Z
ifne 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 searchSort Lorg/apache/lucene/search/Sort;
0 4 1 indexSort Lorg/apache/lucene/search/Sort;
MethodParameters:
Name Flags
searchSort
indexSort
private static boolean canEarlyTerminateOnDocId(org.apache.lucene.search.Sort);
descriptor: (Lorg/apache/lucene/search/Sort;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
astore 1
start local 1 1: getstatic org.apache.lucene.search.SortField.FIELD_DOC:Lorg/apache/lucene/search/SortField;
aload 1
iconst_0
aaload
invokevirtual org.apache.lucene.search.SortField.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 searchSort Lorg/apache/lucene/search/Sort;
1 2 1 fields1 [Lorg/apache/lucene/search/SortField;
MethodParameters:
Name Flags
searchSort
private static boolean canEarlyTerminateOnPrefix(org.apache.lucene.search.Sort, org.apache.lucene.search.Sort);
descriptor: (Lorg/apache/lucene/search/Sort;Lorg/apache/lucene/search/Sort;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 6
1: aload 0
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
astore 2
start local 2 2: aload 1
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
astore 3
start local 3 3: aload 2
arraylength
aload 3
arraylength
if_icmple 5
4: iconst_0
ireturn
5: StackMap locals: org.apache.lucene.search.SortField[] org.apache.lucene.search.SortField[]
StackMap stack:
aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
aload 3
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
iconst_0
aload 2
arraylength
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ireturn
end local 3 end local 2 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 searchSort Lorg/apache/lucene/search/Sort;
0 7 1 indexSort Lorg/apache/lucene/search/Sort;
2 6 2 fields1 [Lorg/apache/lucene/search/SortField;
3 6 3 fields2 [Lorg/apache/lucene/search/SortField;
MethodParameters:
Name Flags
searchSort
indexSort
private void <init>(org.apache.lucene.search.FieldValueHitQueue<org.apache.lucene.search.FieldValueHitQueue$Entry>, int, int, );
descriptor: (Lorg/apache/lucene/search/FieldValueHitQueue;IIZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
invokespecial org.apache.lucene.search.TopDocsCollector.<init>:(Lorg/apache/lucene/util/PriorityQueue;)V
1: aload 0
aconst_null
putfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
2: aload 0
iload 4
putfield org.apache.lucene.search.TopFieldCollector.needsScores:Z
3: aload 0
iload 2
putfield org.apache.lucene.search.TopFieldCollector.numHits:I
4: aload 0
iload 3
putfield org.apache.lucene.search.TopFieldCollector.totalHitsThreshold:I
5: aload 0
aload 1
invokevirtual org.apache.lucene.search.FieldValueHitQueue.getComparators:()[Lorg/apache/lucene/search/FieldComparator;
arraylength
putfield org.apache.lucene.search.TopFieldCollector.numComparators:I
6: aload 1
invokevirtual org.apache.lucene.search.FieldValueHitQueue.getComparators:()[Lorg/apache/lucene/search/FieldComparator;
iconst_0
aaload
astore 5
start local 5 7: aload 1
getfield org.apache.lucene.search.FieldValueHitQueue.reverseMul:[I
iconst_0
iaload
istore 6
start local 6 8: aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 15
9: iload 6
iconst_1
if_icmpne 15
10: iload 3
ldc 2147483647
if_icmpeq 15
11: aload 0
aload 5
checkcast org.apache.lucene.search.FieldComparator$RelevanceComparator
putfield org.apache.lucene.search.TopFieldCollector.firstComparator:Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
12: aload 0
getstatic org.apache.lucene.search.ScoreMode.TOP_SCORES:Lorg/apache/lucene/search/ScoreMode;
putfield org.apache.lucene.search.TopFieldCollector.scoreMode:Lorg/apache/lucene/search/ScoreMode;
13: aload 0
iconst_1
putfield org.apache.lucene.search.TopFieldCollector.canSetMinScore:Z
14: goto 20
15: StackMap locals: org.apache.lucene.search.TopFieldCollector org.apache.lucene.search.FieldValueHitQueue int int int org.apache.lucene.search.FieldComparator int
StackMap stack:
aload 0
aconst_null
putfield org.apache.lucene.search.TopFieldCollector.firstComparator:Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
16: aload 0
iload 4
ifeq 17
getstatic org.apache.lucene.search.ScoreMode.COMPLETE:Lorg/apache/lucene/search/ScoreMode;
goto 18
StackMap locals:
StackMap stack: org.apache.lucene.search.TopFieldCollector
17: getstatic org.apache.lucene.search.ScoreMode.COMPLETE_NO_SCORES:Lorg/apache/lucene/search/ScoreMode;
StackMap locals: org.apache.lucene.search.TopFieldCollector org.apache.lucene.search.FieldValueHitQueue int int int org.apache.lucene.search.FieldComparator int
StackMap stack: org.apache.lucene.search.TopFieldCollector org.apache.lucene.search.ScoreMode
18: putfield org.apache.lucene.search.TopFieldCollector.scoreMode:Lorg/apache/lucene/search/ScoreMode;
19: aload 0
iconst_0
putfield org.apache.lucene.search.TopFieldCollector.canSetMinScore:Z
20: StackMap locals:
StackMap stack:
return
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 21 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 21 1 pq Lorg/apache/lucene/search/FieldValueHitQueue<Lorg/apache/lucene/search/FieldValueHitQueue$Entry;>;
0 21 2 numHits I
0 21 3 totalHitsThreshold I
0 21 4 needsScores Z
7 21 5 fieldComparator Lorg/apache/lucene/search/FieldComparator<*>;
8 21 6 reverseMul I
Signature: (Lorg/apache/lucene/search/FieldValueHitQueue<Lorg/apache/lucene/search/FieldValueHitQueue$Entry;>;IIZ)V
MethodParameters:
Name Flags
pq
numHits
totalHitsThreshold
needsScores
public org.apache.lucene.search.ScoreMode scoreMode();
descriptor: ()Lorg/apache/lucene/search/ScoreMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.TopFieldCollector.scoreMode:Lorg/apache/lucene/search/ScoreMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TopFieldCollector;
protected void updateMinCompetitiveScore(org.apache.lucene.search.Scorable);
descriptor: (Lorg/apache/lucene/search/Scorable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.search.TopFieldCollector.canSetMinScore:Z
ifeq 6
aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHits:I
aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHitsThreshold:I
if_icmple 6
aload 0
getfield org.apache.lucene.search.TopFieldCollector.queueFull:Z
ifeq 6
1: getstatic org.apache.lucene.search.TopFieldCollector.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
ifnull 2
aload 0
getfield org.apache.lucene.search.TopFieldCollector.firstComparator:Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
ifnonnull 3
StackMap locals:
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.search.TopFieldCollector.firstComparator:Lorg/apache/lucene/search/FieldComparator$RelevanceComparator;
aload 0
getfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
getfield org.apache.lucene.search.FieldValueHitQueue$Entry.slot:I
invokevirtual org.apache.lucene.search.FieldComparator$RelevanceComparator.value:(I)Ljava/lang/Float;
invokevirtual java.lang.Float.floatValue:()F
fstore 2
start local 2 4: aload 1
fload 2
invokevirtual org.apache.lucene.search.Scorable.setMinCompetitiveScore:(F)V
5: aload 0
getstatic org.apache.lucene.search.TotalHits$Relation.GREATER_THAN_OR_EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
putfield org.apache.lucene.search.TopFieldCollector.totalHitsRelation:Lorg/apache/lucene/search/TotalHits$Relation;
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 7 1 scorer Lorg/apache/lucene/search/Scorable;
4 6 2 minScore F
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
scorer
public static org.apache.lucene.search.TopFieldCollector create(org.apache.lucene.search.Sort, int, int);
descriptor: (Lorg/apache/lucene/search/Sort;II)Lorg/apache/lucene/search/TopFieldCollector;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aconst_null
iload 2
invokestatic org.apache.lucene.search.TopFieldCollector.create:(Lorg/apache/lucene/search/Sort;ILorg/apache/lucene/search/FieldDoc;I)Lorg/apache/lucene/search/TopFieldCollector;
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 numHits I
0 1 2 totalHitsThreshold I
MethodParameters:
Name Flags
sort
numHits
totalHitsThreshold
public static org.apache.lucene.search.TopFieldCollector create(org.apache.lucene.search.Sort, int, org.apache.lucene.search.FieldDoc, int);
descriptor: (Lorg/apache/lucene/search/Sort;ILorg/apache/lucene/search/FieldDoc;I)Lorg/apache/lucene/search/TopFieldCollector;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.lucene.search.Sort.fields:[Lorg/apache/lucene/search/SortField;
arraylength
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Sort must contain at least one field"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
ifgt 4
3: new java.lang.IllegalArgumentException
dup
ldc "numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 3
ifge 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "totalHitsThreshold must be >= 0, got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
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
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.search.Sort.fields:[Lorg/apache/lucene/search/SortField;
iload 1
invokestatic org.apache.lucene.search.FieldValueHitQueue.create:([Lorg/apache/lucene/search/SortField;I)Lorg/apache/lucene/search/FieldValueHitQueue;
astore 4
start local 4 7: aload 2
ifnonnull 9
8: new org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector
dup
aload 0
aload 4
iload 1
iload 3
invokespecial org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector.<init>:(Lorg/apache/lucene/search/Sort;Lorg/apache/lucene/search/FieldValueHitQueue;II)V
areturn
9: StackMap locals: org.apache.lucene.search.FieldValueHitQueue
StackMap stack:
aload 2
getfield org.apache.lucene.search.FieldDoc.fields:[Ljava/lang/Object;
ifnonnull 11
10: new java.lang.IllegalArgumentException
dup
ldc "after.fields wasn't set; you must pass fillFields=true for the previous search"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.lucene.search.FieldDoc.fields:[Ljava/lang/Object;
arraylength
aload 0
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
arraylength
if_icmpeq 13
12: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "after.fields has "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
getfield org.apache.lucene.search.FieldDoc.fields:[Ljava/lang/Object;
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " values but sort has "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.lucene.search.Sort.getSort:()[Lorg/apache/lucene/search/SortField;
arraylength
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
13: StackMap locals:
StackMap stack:
new org.apache.lucene.search.TopFieldCollector$PagingFieldCollector
dup
aload 0
aload 4
aload 2
iload 1
iload 3
invokespecial org.apache.lucene.search.TopFieldCollector$PagingFieldCollector.<init>:(Lorg/apache/lucene/search/Sort;Lorg/apache/lucene/search/FieldValueHitQueue;Lorg/apache/lucene/search/FieldDoc;II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 sort Lorg/apache/lucene/search/Sort;
0 14 1 numHits I
0 14 2 after Lorg/apache/lucene/search/FieldDoc;
0 14 3 totalHitsThreshold I
7 14 4 queue Lorg/apache/lucene/search/FieldValueHitQueue<Lorg/apache/lucene/search/FieldValueHitQueue$Entry;>;
MethodParameters:
Name Flags
sort
numHits
after
totalHitsThreshold
public static void populateScores(org.apache.lucene.search.ScoreDoc[], org.apache.lucene.search.IndexSearcher, org.apache.lucene.search.Query);
descriptor: ([Lorg/apache/lucene/search/ScoreDoc;Lorg/apache/lucene/search/IndexSearcher;Lorg/apache/lucene/search/Query;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.search.ScoreDoc[].clone:()Ljava/lang/Object;
checkcast org.apache.lucene.search.ScoreDoc[]
astore 0
1: aload 0
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)I
org/apache/lucene/search/TopFieldCollector.lambda$0(Lorg/apache/lucene/search/ScoreDoc;)I (6)
(Lorg/apache/lucene/search/ScoreDoc;)I
invokestatic java.util.Comparator.comparingInt:(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator;
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
2: aload 1
aload 1
aload 2
invokevirtual org.apache.lucene.search.IndexSearcher.rewrite:(Lorg/apache/lucene/search/Query;)Lorg/apache/lucene/search/Query;
getstatic org.apache.lucene.search.ScoreMode.COMPLETE:Lorg/apache/lucene/search/ScoreMode;
fconst_1
invokevirtual org.apache.lucene.search.IndexSearcher.createWeight:(Lorg/apache/lucene/search/Query;Lorg/apache/lucene/search/ScoreMode;F)Lorg/apache/lucene/search/Weight;
astore 3
start local 3 3: aload 1
invokevirtual org.apache.lucene.search.IndexSearcher.getIndexReader:()Lorg/apache/lucene/index/IndexReader;
invokevirtual org.apache.lucene.index.IndexReader.leaves:()Ljava/util/List;
astore 4
start local 4 4: aconst_null
astore 5
start local 5 5: aconst_null
astore 6
start local 6 6: aload 0
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 23
StackMap locals: org.apache.lucene.search.ScoreDoc[] org.apache.lucene.search.IndexSearcher org.apache.lucene.search.Query org.apache.lucene.search.Weight java.util.List org.apache.lucene.index.LeafReaderContext org.apache.lucene.search.Scorer top int int org.apache.lucene.search.ScoreDoc[]
StackMap stack:
7: aload 10
iload 8
aaload
astore 7
start local 7 8: aload 5
ifnull 9
aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
aload 5
getfield org.apache.lucene.index.LeafReaderContext.docBase:I
aload 5
invokevirtual org.apache.lucene.index.LeafReaderContext.reader:()Lorg/apache/lucene/index/LeafReader;
invokevirtual org.apache.lucene.index.LeafReader.maxDoc:()I
iadd
if_icmplt 16
9: StackMap locals: org.apache.lucene.search.ScoreDoc[] org.apache.lucene.search.IndexSearcher org.apache.lucene.search.Query org.apache.lucene.search.Weight java.util.List org.apache.lucene.index.LeafReaderContext org.apache.lucene.search.Scorer org.apache.lucene.search.ScoreDoc int int org.apache.lucene.search.ScoreDoc[]
StackMap stack:
aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
aload 1
invokevirtual org.apache.lucene.search.IndexSearcher.getIndexReader:()Lorg/apache/lucene/index/IndexReader;
invokevirtual org.apache.lucene.index.IndexReader.maxDoc:()I
invokestatic org.apache.lucene.util.FutureObjects.checkIndex:(II)I
pop
10: aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
aload 4
invokestatic org.apache.lucene.index.ReaderUtil.subIndex:(ILjava/util/List;)I
istore 11
start local 11 11: aload 4
iload 11
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.LeafReaderContext
astore 5
12: aload 3
aload 5
invokevirtual org.apache.lucene.search.Weight.scorerSupplier:(Lorg/apache/lucene/index/LeafReaderContext;)Lorg/apache/lucene/search/ScorerSupplier;
astore 12
start local 12 13: aload 12
ifnonnull 15
14: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Doc id "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " doesn't match the query"
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
15: StackMap locals: int org.apache.lucene.search.ScorerSupplier
StackMap stack:
aload 12
lconst_1
invokevirtual org.apache.lucene.search.ScorerSupplier.get:(J)Lorg/apache/lucene/search/Scorer;
astore 6
end local 12 end local 11 16: StackMap locals:
StackMap stack:
aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
aload 5
getfield org.apache.lucene.index.LeafReaderContext.docBase:I
isub
istore 11
start local 11 17: getstatic org.apache.lucene.search.TopFieldCollector.$assertionsDisabled:Z
ifne 18
iload 11
ifge 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals: int
StackMap stack:
aload 6
invokevirtual org.apache.lucene.search.Scorer.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
iload 11
invokevirtual org.apache.lucene.search.DocIdSetIterator.advance:(I)I
istore 12
start local 12 19: iload 11
iload 12
if_icmpeq 21
20: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Doc id "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
getfield org.apache.lucene.search.ScoreDoc.doc:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " doesn't match the query"
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
21: StackMap locals: int
StackMap stack:
aload 7
aload 6
invokevirtual org.apache.lucene.search.Scorer.score:()F
putfield org.apache.lucene.search.ScoreDoc.score:F
end local 12 end local 11 end local 7 22: iinc 8 1
StackMap locals: org.apache.lucene.search.ScoreDoc[] org.apache.lucene.search.IndexSearcher org.apache.lucene.search.Query org.apache.lucene.search.Weight java.util.List org.apache.lucene.index.LeafReaderContext org.apache.lucene.search.Scorer top int int org.apache.lucene.search.ScoreDoc[]
StackMap stack:
23: iload 8
iload 9
if_icmplt 7
24: return
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 25 0 topDocs [Lorg/apache/lucene/search/ScoreDoc;
0 25 1 searcher Lorg/apache/lucene/search/IndexSearcher;
0 25 2 query Lorg/apache/lucene/search/Query;
3 25 3 weight Lorg/apache/lucene/search/Weight;
4 25 4 contexts Ljava/util/List<Lorg/apache/lucene/index/LeafReaderContext;>;
5 25 5 currentContext Lorg/apache/lucene/index/LeafReaderContext;
6 25 6 currentScorer Lorg/apache/lucene/search/Scorer;
8 22 7 scoreDoc Lorg/apache/lucene/search/ScoreDoc;
11 16 11 newContextIndex I
13 16 12 scorerSupplier Lorg/apache/lucene/search/ScorerSupplier;
17 22 11 leafDoc I
19 22 12 advanced I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
topDocs
searcher
query
final void add(int, int);
descriptor: (II)V
flags: (0x0010) ACC_FINAL
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
getfield org.apache.lucene.search.TopFieldCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
new org.apache.lucene.search.FieldValueHitQueue$Entry
dup
iload 1
aload 0
getfield org.apache.lucene.search.TopFieldCollector.docBase:I
iload 2
iadd
invokespecial org.apache.lucene.search.FieldValueHitQueue$Entry.<init>:(II)V
invokevirtual org.apache.lucene.util.PriorityQueue.add:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.search.FieldValueHitQueue$Entry
putfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
1: aload 0
aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHits:I
aload 0
getfield org.apache.lucene.search.TopFieldCollector.numHits:I
if_icmpne 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.apache.lucene.search.TopFieldCollector
2: iconst_0
StackMap locals: org.apache.lucene.search.TopFieldCollector int int
StackMap stack: org.apache.lucene.search.TopFieldCollector int
3: putfield org.apache.lucene.search.TopFieldCollector.queueFull:Z
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 5 1 slot I
0 5 2 doc I
MethodParameters:
Name Flags
slot
doc
final void updateBottom(int);
descriptor: (I)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
aload 0
getfield org.apache.lucene.search.TopFieldCollector.docBase:I
iload 1
iadd
putfield org.apache.lucene.search.FieldValueHitQueue$Entry.doc:I
1: aload 0
aload 0
getfield org.apache.lucene.search.TopFieldCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
invokevirtual org.apache.lucene.util.PriorityQueue.updateTop:()Ljava/lang/Object;
checkcast org.apache.lucene.search.FieldValueHitQueue$Entry
putfield org.apache.lucene.search.TopFieldCollector.bottom:Lorg/apache/lucene/search/FieldValueHitQueue$Entry;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 3 1 doc I
MethodParameters:
Name Flags
doc
protected void populateResults(org.apache.lucene.search.ScoreDoc[], int);
descriptor: ([Lorg/apache/lucene/search/ScoreDoc;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.lucene.search.TopFieldCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
checkcast org.apache.lucene.search.FieldValueHitQueue
astore 3
start local 3 1: iload 2
iconst_1
isub
istore 4
start local 4 2: goto 5
3: StackMap locals: org.apache.lucene.search.FieldValueHitQueue int
StackMap stack:
aload 1
iload 4
aload 3
aload 3
invokevirtual org.apache.lucene.search.FieldValueHitQueue.pop:()Ljava/lang/Object;
checkcast org.apache.lucene.search.FieldValueHitQueue$Entry
invokevirtual org.apache.lucene.search.FieldValueHitQueue.fillFields:(Lorg/apache/lucene/search/FieldValueHitQueue$Entry;)Lorg/apache/lucene/search/FieldDoc;
aastore
4: iinc 4 -1
StackMap locals:
StackMap stack:
5: iload 4
ifge 3
end local 4 6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 7 1 results [Lorg/apache/lucene/search/ScoreDoc;
0 7 2 howMany I
1 7 3 queue Lorg/apache/lucene/search/FieldValueHitQueue<Lorg/apache/lucene/search/FieldValueHitQueue$Entry;>;
2 6 4 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 2
1: getstatic org.apache.lucene.search.TopFieldCollector.EMPTY_SCOREDOCS:[Lorg/apache/lucene/search/ScoreDoc;
astore 1
2: StackMap locals:
StackMap stack:
new org.apache.lucene.search.TopFieldDocs
dup
new org.apache.lucene.search.TotalHits
dup
aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHits:I
i2l
aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHitsRelation:Lorg/apache/lucene/search/TotalHits$Relation;
invokespecial org.apache.lucene.search.TotalHits.<init>:(JLorg/apache/lucene/search/TotalHits$Relation;)V
aload 1
aload 0
getfield org.apache.lucene.search.TopFieldCollector.pq:Lorg/apache/lucene/util/PriorityQueue;
checkcast org.apache.lucene.search.FieldValueHitQueue
invokevirtual org.apache.lucene.search.FieldValueHitQueue.getFields:()[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 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/TopFieldCollector;
0 3 1 results [Lorg/apache/lucene/search/ScoreDoc;
0 3 2 start I
MethodParameters:
Name Flags
results
start
public org.apache.lucene.search.TopFieldDocs topDocs();
descriptor: ()Lorg/apache/lucene/search/TopFieldDocs;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.lucene.search.TopDocsCollector.topDocs:()Lorg/apache/lucene/search/TopDocs;
checkcast org.apache.lucene.search.TopFieldDocs
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TopFieldCollector;
public boolean isEarlyTerminated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.TopFieldCollector.totalHitsRelation: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 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/search/TopFieldCollector;
public org.apache.lucene.search.TopDocs topDocs();
descriptor: ()Lorg/apache/lucene/search/TopDocs;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.lucene.search.TopFieldCollector.topDocs:()Lorg/apache/lucene/search/TopFieldDocs;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static int lambda$0(org.apache.lucene.search.ScoreDoc);
descriptor: (Lorg/apache/lucene/search/ScoreDoc;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.ScoreDoc.doc:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 scoreDoc Lorg/apache/lucene/search/ScoreDoc;
}
Signature: Lorg/apache/lucene/search/TopDocsCollector<Lorg/apache/lucene/search/FieldValueHitQueue$Entry;>;
SourceFile: "TopFieldCollector.java"
NestMembers:
org.apache.lucene.search.TopFieldCollector$MultiComparatorLeafCollector org.apache.lucene.search.TopFieldCollector$PagingFieldCollector org.apache.lucene.search.TopFieldCollector$PagingFieldCollector$1 org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final RelevanceComparator = org.apache.lucene.search.FieldComparator$RelevanceComparator of org.apache.lucene.search.FieldComparator
public Entry = org.apache.lucene.search.FieldValueHitQueue$Entry of org.apache.lucene.search.FieldValueHitQueue
private abstract MultiComparatorLeafCollector = org.apache.lucene.search.TopFieldCollector$MultiComparatorLeafCollector of org.apache.lucene.search.TopFieldCollector
private final PagingFieldCollector = org.apache.lucene.search.TopFieldCollector$PagingFieldCollector of org.apache.lucene.search.TopFieldCollector
private SimpleFieldCollector = org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector of org.apache.lucene.search.TopFieldCollector
public final Relation = org.apache.lucene.search.TotalHits$Relation of org.apache.lucene.search.TotalHits