class org.apache.lucene.index.FlushByRamOrCountsPolicy extends org.apache.lucene.index.FlushPolicy
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.lucene.index.FlushByRamOrCountsPolicy
super_class: org.apache.lucene.index.FlushPolicy
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.lucene.index.FlushPolicy.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
public void onDelete(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnRAM:()Z
ifeq 4
aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
l2d
ldc 1048576.0
aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
dmul
dcmpl
ifle 4
1: aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setApplyAllDeletes:()V
2: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "FP"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "FP"
new java.lang.StringBuilder
dup
ldc "force apply deletes bytesUsed="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs ramBufferMB="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
0 5 1 control Lorg/apache/lucene/index/DocumentsWriterFlushControl;
0 5 2 perThread Lorg/apache/lucene/index/DocumentsWriterPerThread;
MethodParameters:
Name Flags
control
perThread
public void onInsert(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnDocCount:()Z
ifeq 5
1: aload 2
invokevirtual org.apache.lucene.index.DocumentsWriterPerThread.getNumDocsInRAM:()I
aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
2: invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getMaxBufferedDocs:()I
if_icmplt 5
3: aload 1
aload 2
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setFlushPending:(Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
4: goto 12
StackMap locals:
StackMap stack:
5: aload 0
invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.flushOnRAM:()Z
ifeq 12
6: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
ldc 1024.0
dmul
ldc 1024.0
dmul
d2l
lstore 3
start local 3 7: aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.activeBytes:()J
aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
ladd
lstore 5
start local 5 8: lload 5
lload 3
lcmp
iflt 12
9: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "FP"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 11
10: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "FP"
new java.lang.StringBuilder
dup
ldc "trigger flush: activeBytes="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.activeBytes:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " deleteBytes="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.getDeleteBytesUsed:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs limit="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
11: StackMap locals: long long
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.markLargestWriterPending:(Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
end local 5 end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
0 13 1 control Lorg/apache/lucene/index/DocumentsWriterFlushControl;
0 13 2 perThread Lorg/apache/lucene/index/DocumentsWriterPerThread;
7 12 3 limit J
8 12 5 totalRam J
MethodParameters:
Name Flags
control
perThread
protected void markLargestWriterPending(org.apache.lucene.index.DocumentsWriterFlushControl, org.apache.lucene.index.DocumentsWriterPerThread);
descriptor: (Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.apache.lucene.index.FlushByRamOrCountsPolicy.findLargestNonPendingWriter:(Lorg/apache/lucene/index/DocumentsWriterFlushControl;Lorg/apache/lucene/index/DocumentsWriterPerThread;)Lorg/apache/lucene/index/DocumentsWriterPerThread;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 1
aload 3
invokevirtual org.apache.lucene.index.DocumentsWriterFlushControl.setFlushPending:(Lorg/apache/lucene/index/DocumentsWriterPerThread;)V
3: StackMap locals: org.apache.lucene.index.DocumentsWriterPerThread
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/FlushByRamOrCountsPolicy;
0 4 1 control Lorg/apache/lucene/index/DocumentsWriterFlushControl;
0 4 2 perThread Lorg/apache/lucene/index/DocumentsWriterPerThread;
1 4 3 largestNonPendingWriter Lorg/apache/lucene/index/DocumentsWriterPerThread;
MethodParameters:
Name Flags
control
perThread
protected boolean flushOnDocCount();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getMaxBufferedDocs:()I
iconst_m1
if_icmpeq 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/index/FlushByRamOrCountsPolicy;
protected boolean flushOnRAM();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.FlushByRamOrCountsPolicy.indexWriterConfig:Lorg/apache/lucene/index/LiveIndexWriterConfig;
invokevirtual org.apache.lucene.index.LiveIndexWriterConfig.getRAMBufferSizeMB:()D
ldc -1.0
dcmpl
ifeq 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/index/FlushByRamOrCountsPolicy;
}
SourceFile: "FlushByRamOrCountsPolicy.java"