public class org.apache.lucene.index.MergePolicy$OneMerge
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.index.MergePolicy$OneMerge
super_class: java.lang.Object
{
private final java.util.concurrent.CompletableFuture<java.lang.Boolean> mergeCompleted;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<Ljava/lang/Boolean;>;
org.apache.lucene.index.SegmentCommitInfo info;
descriptor: Lorg/apache/lucene/index/SegmentCommitInfo;
flags: (0x0000)
boolean registerDone;
descriptor: Z
flags: (0x0000)
long mergeGen;
descriptor: J
flags: (0x0000)
boolean isExternal;
descriptor: Z
flags: (0x0000)
int maxNumSegments;
descriptor: I
flags: (0x0000)
public volatile long estimatedMergeBytes;
descriptor: J
flags: (0x0041) ACC_PUBLIC, ACC_VOLATILE
volatile long totalMergeBytes;
descriptor: J
flags: (0x0040) ACC_VOLATILE
private java.util.List<org.apache.lucene.index.MergePolicy$MergeReader> mergeReaders;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
public final java.util.List<org.apache.lucene.index.SegmentCommitInfo> segments;
descriptor: Ljava/util/List;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
private final org.apache.lucene.index.MergePolicy$OneMergeProgress mergeProgress;
descriptor: Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
volatile long mergeStartNS;
descriptor: J
flags: (0x0040) ACC_VOLATILE
final int totalMaxDoc;
descriptor: I
flags: (0x0010) ACC_FINAL
java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0000)
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/index/MergePolicy;
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.index.MergePolicy$OneMerge.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.List<org.apache.lucene.index.SegmentCommitInfo>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.CompletableFuture
dup
invokespecial java.util.concurrent.CompletableFuture.<init>:()V
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
2: aload 0
iconst_m1
putfield org.apache.lucene.index.MergePolicy$OneMerge.maxNumSegments:I
3: aload 0
ldc -1
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeStartNS:J
4: aload 1
invokeinterface java.util.List.size:()I
ifne 6
5: new java.lang.RuntimeException
dup
ldc "segments must include at least one segment"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.apache.lucene.index.MergePolicy$OneMerge java.util.List
StackMap stack:
aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
7: aload 0
aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
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/index/MergePolicy$OneMerge.lambda$0(Lorg/apache/lucene/index/SegmentCommitInfo;)I (6)
(Lorg/apache/lucene/index/SegmentCommitInfo;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.sum:()I
putfield org.apache.lucene.index.MergePolicy$OneMerge.totalMaxDoc:I
8: aload 0
new org.apache.lucene.index.MergePolicy$OneMergeProgress
dup
invokespecial org.apache.lucene.index.MergePolicy$OneMergeProgress.<init>:()V
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
9: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 11 1 segments Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
Signature: (Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;)V
MethodParameters:
Name Flags
segments
public void mergeInit();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.setMergeThread:(Ljava/lang/Thread;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
Exceptions:
throws java.io.IOException
public void mergeFinished(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 1 1 success Z
0 1 2 segmentDropped Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
success
segmentDropped
final void close(boolean, boolean, org.apache.lucene.util.IOUtils$IOConsumer<org.apache.lucene.index.MergePolicy$MergeReader>);
descriptor: (ZZLorg/apache/lucene/util/IOUtils$IOConsumer;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "merge has already finished"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
invokevirtual org.apache.lucene.index.MergePolicy$OneMerge.mergeFinished:(ZZ)V
3: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 4
5: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
astore 5
start local 5 6: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
7: aload 5
aload 3
invokestatic org.apache.lucene.util.IOUtils.applyToAll:(Ljava/util/Collection;Lorg/apache/lucene/util/IOUtils$IOConsumer;)V
end local 5 8: aload 4
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
astore 5
start local 5 10: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
11: aload 5
aload 3
invokestatic org.apache.lucene.util.IOUtils.applyToAll:(Ljava/util/Collection;Lorg/apache/lucene/util/IOUtils$IOConsumer;)V
end local 5 12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 13 1 success Z
0 13 2 segmentDropped Z
0 13 3 readerConsumer Lorg/apache/lucene/util/IOUtils$IOConsumer<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
6 8 5 readers Ljava/util/List<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
10 12 5 readers Ljava/util/List<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
Exception table:
from to target type
2 4 4 any
Exceptions:
throws java.io.IOException
Signature: (ZZLorg/apache/lucene/util/IOUtils$IOConsumer<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;)V
MethodParameters:
Name Flags
success
segmentDropped
readerConsumer
public org.apache.lucene.index.CodecReader wrapForMerge(org.apache.lucene.index.CodecReader);
descriptor: (Lorg/apache/lucene/index/CodecReader;)Lorg/apache/lucene/index/CodecReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 1 1 reader Lorg/apache/lucene/index/CodecReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
public void setMergeInfo(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 2 1 info Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
info
public org.apache.lucene.index.SegmentCommitInfo getMergeInfo();
descriptor: ()Lorg/apache/lucene/index/SegmentCommitInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
synchronized void setException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.lucene.index.MergePolicy$OneMerge.error:Ljava/lang/Throwable;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 2 1 error Ljava/lang/Throwable;
MethodParameters:
Name Flags
error
synchronized java.lang.Throwable getException();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.error:Ljava/lang/Throwable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
public java.lang.String segString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
iload 3
ifle 6
5: aload 1
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
invokevirtual org.apache.lucene.index.SegmentCommitInfo.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 4
end local 3 9: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
ifnull 11
10: aload 1
ldc " into "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.maxNumSegments:I
iconst_m1
if_icmpeq 13
12: aload 1
ldc " [maxNumSegments="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.maxNumSegments:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.MergePolicy$OneMerge.isAborted:()Z
ifeq 15
14: aload 1
ldc " [ABORTED]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: StackMap locals:
StackMap stack:
aload 1
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 16 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
1 16 1 b Ljava/lang/StringBuilder;
2 16 2 numSegments I
3 9 3 i I
public long totalBytesSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.totalMergeBytes:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
public int totalNumDocs();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.lucene.index.MergePolicy$OneMerge int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 2
start local 2 3: iload 1
aload 2
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
iadd
istore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
1 6 1 total I
3 4 2 info Lorg/apache/lucene/index/SegmentCommitInfo;
public org.apache.lucene.store.MergeInfo getStoreMergeInfo();
descriptor: ()Lorg/apache/lucene/store/MergeInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: new org.apache.lucene.store.MergeInfo
dup
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.totalMaxDoc:I
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.estimatedMergeBytes:J
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.isExternal:Z
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.maxNumSegments:I
invokespecial org.apache.lucene.store.MergeInfo.<init>:(IJZI)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
public boolean isAborted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.isAborted:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
public void setAborted();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.abort:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
public void checkAborted();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.MergePolicy$OneMerge.isAborted:()Z
ifeq 2
1: new org.apache.lucene.index.MergePolicy$MergeAbortedException
dup
new java.lang.StringBuilder
dup
ldc "merge is aborted: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.apache.lucene.index.MergePolicy$OneMerge.segString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.lucene.index.MergePolicy$MergeAbortedException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
Exceptions:
throws org.apache.lucene.index.MergePolicy$MergeAbortedException
public org.apache.lucene.index.MergePolicy$OneMergeProgress getMergeProgress();
descriptor: ()Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
boolean await(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0000)
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
lload 1
aload 3
invokevirtual java.util.concurrent.CompletableFuture.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 4
start local 4 3: new org.apache.lucene.util.ThreadInterruptedException
dup
aload 4
invokespecial org.apache.lucene.util.ThreadInterruptedException.<init>:(Ljava/lang/InterruptedException;)V
athrow
end local 4 4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: iconst_0
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 6 1 timeout J
0 6 3 timeUnit Ljava/util/concurrent/TimeUnit;
3 4 4 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
0 1 4 Class java.util.concurrent.ExecutionException
0 1 4 Class java.util.concurrent.TimeoutException
MethodParameters:
Name Flags
timeout
timeUnit
boolean hasFinished();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
java.util.Optional<java.lang.Boolean> hasCompletedSuccessfully();
descriptor: ()Ljava/util/Optional;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.getNow:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
Signature: ()Ljava/util/Optional<Ljava/lang/Boolean;>;
void onMergeComplete();
descriptor: ()V
flags: (0x0000)
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
Exceptions:
throws java.io.IOException
void initMergeReaders(org.apache.lucene.util.IOUtils$IOFunction<org.apache.lucene.index.SegmentCommitInfo, org.apache.lucene.index.MergePolicy$MergeReader>);
descriptor: (Lorg/apache/lucene/util/IOUtils$IOFunction;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.MergePolicy$OneMerge.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 1
new java.lang.AssertionError
dup
ldc "merge readers must be empty"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.index.MergePolicy$OneMerge.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 2
new java.lang.AssertionError
dup
ldc "merge is already done"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 3: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: org.apache.lucene.index.MergePolicy$OneMerge org.apache.lucene.util.IOUtils$IOFunction java.util.ArrayList top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 3
start local 3 5: aload 2
aload 1
aload 3
invokeinterface org.apache.lucene.util.IOUtils$IOFunction.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.index.MergePolicy$MergeReader
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: goto 11
StackMap locals: org.apache.lucene.index.MergePolicy$OneMerge org.apache.lucene.util.IOUtils$IOFunction java.util.ArrayList
StackMap stack: java.lang.Throwable
8: astore 5
9: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
10: aload 5
athrow
11: StackMap locals:
StackMap stack:
aload 0
aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 13 1 readerFactory Lorg/apache/lucene/util/IOUtils$IOFunction<Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
3 13 2 readers Ljava/util/ArrayList<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
5 6 3 info Lorg/apache/lucene/index/SegmentCommitInfo;
Exception table:
from to target type
3 8 8 any
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/lucene/util/IOUtils$IOFunction<Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/MergePolicy$MergeReader;>;)V
MethodParameters:
Name Flags
readerFactory
java.util.List<org.apache.lucene.index.MergePolicy$MergeReader> getMergeReader();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeReaders:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/MergePolicy$OneMerge;
Signature: ()Ljava/util/List<Lorg/apache/lucene/index/MergePolicy$MergeReader;>;
static java.util.concurrent.CompletableFuture access$0(org.apache.lucene.index.MergePolicy$OneMerge);
descriptor: (Lorg/apache/lucene/index/MergePolicy$OneMerge;)Ljava/util/concurrent/CompletableFuture;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.lucene.index.MergePolicy$OneMerge.mergeCompleted:Ljava/util/concurrent/CompletableFuture;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static int lambda$0(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)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.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 i Lorg/apache/lucene/index/SegmentCommitInfo;
}
SourceFile: "MergePolicy.java"
NestHost: org.apache.lucene.index.MergePolicy
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public MergeAbortedException = org.apache.lucene.index.MergePolicy$MergeAbortedException of org.apache.lucene.index.MergePolicy
final MergeReader = org.apache.lucene.index.MergePolicy$MergeReader of org.apache.lucene.index.MergePolicy
public OneMerge = org.apache.lucene.index.MergePolicy$OneMerge of org.apache.lucene.index.MergePolicy
public OneMergeProgress = org.apache.lucene.index.MergePolicy$OneMergeProgress of org.apache.lucene.index.MergePolicy
public abstract IOConsumer = org.apache.lucene.util.IOUtils$IOConsumer of org.apache.lucene.util.IOUtils
public abstract IOFunction = org.apache.lucene.util.IOUtils$IOFunction of org.apache.lucene.util.IOUtils