public class org.apache.lucene.search.UsageTrackingQueryCachingPolicy implements org.apache.lucene.search.QueryCachingPolicy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.search.UsageTrackingQueryCachingPolicy
super_class: java.lang.Object
{
private static final int SENTINEL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2147483648
private final org.apache.lucene.util.FrequencyTrackingRingBuffer recentlyUsedFilters;
descriptor: Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
flags: (0x0012) ACC_PRIVATE, 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/UsageTrackingQueryCachingPolicy;
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.UsageTrackingQueryCachingPolicy.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private static boolean isPointQuery(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 1: goto 6
2: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "Point"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
aload 2
ldc "Query"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
StackMap locals:
StackMap stack:
6: aload 1
ldc Lorg/apache/lucene/search/Query;
if_acmpne 2
end local 1 7: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 query Lorg/apache/lucene/search/Query;
1 7 1 clazz Ljava/lang/Class<*>;
3 5 2 simpleName Ljava/lang/String;
MethodParameters:
Name Flags
query
static boolean isCostly(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.apache.lucene.search.MultiTermQuery
ifne 5
1: aload 0
instanceof org.apache.lucene.search.MultiTermQueryConstantScoreWrapper
ifne 5
2: aload 0
instanceof org.apache.lucene.search.TermInSetQuery
ifne 5
3: aload 0
invokestatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.isPointQuery:(Lorg/apache/lucene/search/Query;)Z
ifne 5
4: iconst_0
ireturn
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 query Lorg/apache/lucene/search/Query;
MethodParameters:
Name Flags
query
private static boolean shouldNeverCache(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
instanceof org.apache.lucene.search.TermQuery
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.lucene.search.MatchAllDocsQuery
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.lucene.search.MatchNoDocsQuery
ifeq 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.lucene.search.BooleanQuery
ifeq 10
7: aload 0
checkcast org.apache.lucene.search.BooleanQuery
astore 1
start local 1 8: aload 1
invokevirtual org.apache.lucene.search.BooleanQuery.clauses:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 10
9: iconst_1
ireturn
end local 1 10: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.lucene.search.DisjunctionMaxQuery
ifeq 14
11: aload 0
checkcast org.apache.lucene.search.DisjunctionMaxQuery
astore 1
start local 1 12: aload 1
invokevirtual org.apache.lucene.search.DisjunctionMaxQuery.getDisjuncts:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 14
13: iconst_1
ireturn
end local 1 14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 query Lorg/apache/lucene/search/Query;
8 10 1 bq Lorg/apache/lucene/search/BooleanQuery;
12 14 1 dmq Lorg/apache/lucene/search/DisjunctionMaxQuery;
MethodParameters:
Name Flags
query
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.lucene.util.FrequencyTrackingRingBuffer
dup
iload 1
ldc -2147483648
invokespecial org.apache.lucene.util.FrequencyTrackingRingBuffer.<init>:(II)V
putfield org.apache.lucene.search.UsageTrackingQueryCachingPolicy.recentlyUsedFilters:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
0 3 1 historySize I
MethodParameters:
Name Flags
historySize
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 256
invokespecial org.apache.lucene.search.UsageTrackingQueryCachingPolicy.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
protected int minFrequencyToCache(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.isCostly:(Lorg/apache/lucene/search/Query;)Z
ifeq 2
1: iconst_2
ireturn
2: StackMap locals:
StackMap stack:
iconst_5
istore 2
start local 2 3: aload 1
instanceof org.apache.lucene.search.BooleanQuery
ifne 5
4: aload 1
instanceof org.apache.lucene.search.DisjunctionMaxQuery
ifeq 6
5: StackMap locals: int
StackMap stack:
iinc 2 -1
6: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
0 7 1 query Lorg/apache/lucene/search/Query;
3 7 2 minFrequency I
MethodParameters:
Name Flags
query
public void onUse(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.$assertionsDisabled:Z
ifne 1
aload 1
instanceof org.apache.lucene.search.BoostQuery
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.$assertionsDisabled:Z
ifne 2
aload 1
instanceof org.apache.lucene.search.ConstantScoreQuery
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.shouldNeverCache:(Lorg/apache/lucene/search/Query;)Z
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.search.Query.hashCode:()I
istore 2
start local 2 5: aload 0
dup
astore 3
monitorenter
6: aload 0
getfield org.apache.lucene.search.UsageTrackingQueryCachingPolicy.recentlyUsedFilters:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer.add:(I)V
7: aload 3
monitorexit
8: goto 11
StackMap locals: org.apache.lucene.search.UsageTrackingQueryCachingPolicy org.apache.lucene.search.Query int org.apache.lucene.search.UsageTrackingQueryCachingPolicy
StackMap stack: java.lang.Throwable
9: aload 3
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
0 12 1 query Lorg/apache/lucene/search/Query;
5 12 2 hashCode I
Exception table:
from to target type
6 8 9 any
9 10 9 any
MethodParameters:
Name Flags
query
int frequency(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)I
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.$assertionsDisabled:Z
ifne 1
aload 1
instanceof org.apache.lucene.search.BoostQuery
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.$assertionsDisabled:Z
ifne 2
aload 1
instanceof org.apache.lucene.search.ConstantScoreQuery
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.search.Query.hashCode:()I
istore 2
start local 2 3: aload 0
dup
astore 3
monitorenter
4: aload 0
getfield org.apache.lucene.search.UsageTrackingQueryCachingPolicy.recentlyUsedFilters:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer.frequency:(I)I
aload 3
monitorexit
5: ireturn
6: StackMap locals: org.apache.lucene.search.UsageTrackingQueryCachingPolicy org.apache.lucene.search.Query int org.apache.lucene.search.UsageTrackingQueryCachingPolicy
StackMap stack: java.lang.Throwable
aload 3
monitorexit
7: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
0 8 1 query Lorg/apache/lucene/search/Query;
3 8 2 hashCode I
Exception table:
from to target type
4 5 6 any
6 7 6 any
MethodParameters:
Name Flags
query
public boolean shouldCache(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.lucene.search.UsageTrackingQueryCachingPolicy.shouldNeverCache:(Lorg/apache/lucene/search/Query;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.search.UsageTrackingQueryCachingPolicy.frequency:(Lorg/apache/lucene/search/Query;)I
istore 2
start local 2 3: aload 0
aload 1
invokevirtual org.apache.lucene.search.UsageTrackingQueryCachingPolicy.minFrequencyToCache:(Lorg/apache/lucene/search/Query;)I
istore 3
start local 3 4: iload 2
iload 3
if_icmplt 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/search/UsageTrackingQueryCachingPolicy;
0 6 1 query Lorg/apache/lucene/search/Query;
3 6 2 frequency I
4 6 3 minFrequency I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
query
}
SourceFile: "UsageTrackingQueryCachingPolicy.java"