public final class org.apache.lucene.search.BoostQuery extends org.apache.lucene.search.Query
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.search.BoostQuery
super_class: org.apache.lucene.search.Query
{
private final org.apache.lucene.search.Query query;
descriptor: Lorg/apache/lucene/search/Query;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final float boost;
descriptor: F
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.apache.lucene.search.Query, float);
descriptor: (Lorg/apache/lucene/search/Query;F)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.lucene.search.Query.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.search.Query
putfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
2: fload 2
invokestatic java.lang.Float.isFinite:(F)Z
ifeq 3
fload 2
fconst_0
invokestatic java.lang.Float.compare:(FF)I
ifge 4
3: StackMap locals: org.apache.lucene.search.BoostQuery org.apache.lucene.search.Query float
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "boost must be a positive float, got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
fload 2
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
fload 2
putfield org.apache.lucene.search.BoostQuery.boost:F
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/BoostQuery;
0 6 1 query Lorg/apache/lucene/search/Query;
0 6 2 boost F
MethodParameters:
Name Flags
query
boost
public org.apache.lucene.search.Query getQuery();
descriptor: ()Lorg/apache/lucene/search/Query;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/BoostQuery;
public float getBoost();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/BoostQuery;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.search.BoostQuery.sameClassAs:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.search.BoostQuery
invokevirtual org.apache.lucene.search.BoostQuery.equalsTo:(Lorg/apache/lucene/search/BoostQuery;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/search/BoostQuery;
0 4 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
private boolean equalsTo(org.apache.lucene.search.BoostQuery);
descriptor: (Lorg/apache/lucene/search/BoostQuery;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 1
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
invokevirtual org.apache.lucene.search.Query.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
invokestatic java.lang.Float.floatToIntBits:(F)I
aload 1
getfield org.apache.lucene.search.BoostQuery.boost:F
invokestatic java.lang.Float.floatToIntBits:(F)I
if_icmpne 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/search/BoostQuery;
0 4 1 other Lorg/apache/lucene/search/BoostQuery;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.search.BoostQuery.classHash:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
invokevirtual org.apache.lucene.search.Query.hashCode:()I
iadd
istore 1
2: bipush 31
iload 1
imul
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
invokestatic java.lang.Float.floatToIntBits:(F)I
iadd
istore 1
3: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/search/BoostQuery;
1 4 1 h I
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader);
descriptor: (Lorg/apache/lucene/index/IndexReader;)Lorg/apache/lucene/search/Query;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 1
invokevirtual org.apache.lucene.search.Query.rewrite:(Lorg/apache/lucene/index/IndexReader;)Lorg/apache/lucene/search/Query;
astore 2
start local 2 1: aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
fconst_1
fcmpl
ifne 3
2: aload 2
areturn
3: StackMap locals: org.apache.lucene.search.Query
StackMap stack:
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lorg/apache/lucene/search/BoostQuery;
if_acmpne 6
4: aload 2
checkcast org.apache.lucene.search.BoostQuery
astore 3
start local 3 5: new org.apache.lucene.search.BoostQuery
dup
aload 3
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
aload 3
getfield org.apache.lucene.search.BoostQuery.boost:F
fmul
invokespecial org.apache.lucene.search.BoostQuery.<init>:(Lorg/apache/lucene/search/Query;F)V
areturn
end local 3 6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
fconst_0
fcmpl
ifne 8
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lorg/apache/lucene/search/ConstantScoreQuery;
if_acmpeq 8
7: new org.apache.lucene.search.BoostQuery
dup
new org.apache.lucene.search.ConstantScoreQuery
dup
aload 2
invokespecial org.apache.lucene.search.ConstantScoreQuery.<init>:(Lorg/apache/lucene/search/Query;)V
fconst_0
invokespecial org.apache.lucene.search.BoostQuery.<init>:(Lorg/apache/lucene/search/Query;F)V
areturn
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 2
if_acmpeq 10
9: new org.apache.lucene.search.BoostQuery
dup
aload 2
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
invokespecial org.apache.lucene.search.BoostQuery.<init>:(Lorg/apache/lucene/search/Query;F)V
areturn
10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial org.apache.lucene.search.Query.rewrite:(Lorg/apache/lucene/index/IndexReader;)Lorg/apache/lucene/search/Query;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/search/BoostQuery;
0 11 1 reader Lorg/apache/lucene/index/IndexReader;
1 11 2 rewritten Lorg/apache/lucene/search/Query;
5 6 3 in Lorg/apache/lucene/search/BoostQuery;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
public void visit(org.apache.lucene.search.QueryVisitor);
descriptor: (Lorg/apache/lucene/search/QueryVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 1
getstatic org.apache.lucene.search.BooleanClause$Occur.MUST:Lorg/apache/lucene/search/BooleanClause$Occur;
aload 0
invokevirtual org.apache.lucene.search.QueryVisitor.getSubVisitor:(Lorg/apache/lucene/search/BooleanClause$Occur;Lorg/apache/lucene/search/Query;)Lorg/apache/lucene/search/QueryVisitor;
invokevirtual org.apache.lucene.search.Query.visit:(Lorg/apache/lucene/search/QueryVisitor;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/search/BoostQuery;
0 2 1 visitor Lorg/apache/lucene/search/QueryVisitor;
MethodParameters:
Name Flags
visitor
public java.lang.String toString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 2
ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 2
aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 1
invokevirtual org.apache.lucene.search.Query.toString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 2
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 2
ldc "^"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 2
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
pop
6: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/search/BoostQuery;
0 7 1 field Ljava/lang/String;
1 7 2 builder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
field
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher, org.apache.lucene.search.ScoreMode, float);
descriptor: (Lorg/apache/lucene/search/IndexSearcher;Lorg/apache/lucene/search/ScoreMode;F)Lorg/apache/lucene/search/Weight;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.lucene.search.BoostQuery.query:Lorg/apache/lucene/search/Query;
aload 1
aload 2
aload 0
getfield org.apache.lucene.search.BoostQuery.boost:F
fload 3
fmul
invokevirtual org.apache.lucene.search.Query.createWeight:(Lorg/apache/lucene/search/IndexSearcher;Lorg/apache/lucene/search/ScoreMode;F)Lorg/apache/lucene/search/Weight;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/BoostQuery;
0 1 1 searcher Lorg/apache/lucene/search/IndexSearcher;
0 1 2 scoreMode Lorg/apache/lucene/search/ScoreMode;
0 1 3 boost F
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
searcher
scoreMode
boost
}
SourceFile: "BoostQuery.java"
InnerClasses:
public Occur = org.apache.lucene.search.BooleanClause$Occur of org.apache.lucene.search.BooleanClause