public final class org.apache.lucene.index.StandardDirectoryReader extends org.apache.lucene.index.DirectoryReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.index.StandardDirectoryReader
super_class: org.apache.lucene.index.DirectoryReader
{
final org.apache.lucene.index.IndexWriter writer;
descriptor: Lorg/apache/lucene/index/IndexWriter;
flags: (0x0010) ACC_FINAL
final org.apache.lucene.index.SegmentInfos segmentInfos;
descriptor: Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0010) ACC_FINAL
private final boolean applyAllDeletes;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean writeAllDeletes;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<org.apache.lucene.index.IndexReader$ClosedListener> readerClosedListeners;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lorg/apache/lucene/index/IndexReader$ClosedListener;>;
private final org.apache.lucene.index.IndexReader$CacheHelper cacheHelper;
descriptor: Lorg/apache/lucene/index/IndexReader$CacheHelper;
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/index/StandardDirectoryReader;
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.StandardDirectoryReader.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.apache.lucene.store.Directory, org.apache.lucene.index.LeafReader[], org.apache.lucene.index.IndexWriter, org.apache.lucene.index.SegmentInfos, boolean, boolean);
descriptor: (Lorg/apache/lucene/store/Directory;[Lorg/apache/lucene/index/LeafReader;Lorg/apache/lucene/index/IndexWriter;Lorg/apache/lucene/index/SegmentInfos;ZZ)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
invokespecial org.apache.lucene.index.DirectoryReader.<init>:(Lorg/apache/lucene/store/Directory;[Lorg/apache/lucene/index/LeafReader;)V
1: aload 0
new java.util.concurrent.CopyOnWriteArraySet
dup
invokespecial java.util.concurrent.CopyOnWriteArraySet.<init>:()V
putfield org.apache.lucene.index.StandardDirectoryReader.readerClosedListeners:Ljava/util/Set;
2: aload 0
new org.apache.lucene.index.StandardDirectoryReader$1
dup
aload 0
invokespecial org.apache.lucene.index.StandardDirectoryReader$1.<init>:(Lorg/apache/lucene/index/StandardDirectoryReader;)V
putfield org.apache.lucene.index.StandardDirectoryReader.cacheHelper:Lorg/apache/lucene/index/IndexReader$CacheHelper;
3: aload 0
aload 3
putfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
4: aload 0
aload 4
putfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
5: aload 0
iload 5
putfield org.apache.lucene.index.StandardDirectoryReader.applyAllDeletes:Z
6: aload 0
iload 6
putfield org.apache.lucene.index.StandardDirectoryReader.writeAllDeletes:Z
7: 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 8 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 8 1 directory Lorg/apache/lucene/store/Directory;
0 8 2 readers [Lorg/apache/lucene/index/LeafReader;
0 8 3 writer Lorg/apache/lucene/index/IndexWriter;
0 8 4 sis Lorg/apache/lucene/index/SegmentInfos;
0 8 5 applyAllDeletes Z
0 8 6 writeAllDeletes Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
readers
writer
sis
applyAllDeletes
writeAllDeletes
static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.store.Directory, org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new org.apache.lucene.index.StandardDirectoryReader$2
dup
aload 0
invokespecial org.apache.lucene.index.StandardDirectoryReader$2.<init>:(Lorg/apache/lucene/store/Directory;)V
1: aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader$2.run:(Lorg/apache/lucene/index/IndexCommit;)Ljava/lang/Object;
checkcast org.apache.lucene.index.DirectoryReader
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 directory Lorg/apache/lucene/store/Directory;
0 3 1 commit Lorg/apache/lucene/index/IndexCommit;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory final
commit final
static org.apache.lucene.index.StandardDirectoryReader open(org.apache.lucene.index.IndexWriter, org.apache.lucene.util.IOUtils$IOFunction<org.apache.lucene.index.SegmentCommitInfo, org.apache.lucene.index.SegmentReader>, org.apache.lucene.index.SegmentInfos, boolean, boolean);
descriptor: (Lorg/apache/lucene/index/IndexWriter;Lorg/apache/lucene/util/IOUtils$IOFunction;Lorg/apache/lucene/index/SegmentInfos;ZZ)Lorg/apache/lucene/index/StandardDirectoryReader;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=13, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
istore 5
start local 5 1: new java.util.ArrayList
dup
iload 5
invokespecial java.util.ArrayList.<init>:(I)V
astore 6
start local 6 2: aload 0
invokevirtual org.apache.lucene.index.IndexWriter.getDirectory:()Lorg/apache/lucene/store/Directory;
astore 7
start local 7 3: aload 2
invokevirtual org.apache.lucene.index.SegmentInfos.clone:()Lorg/apache/lucene/index/SegmentInfos;
astore 8
start local 8 4: iconst_0
istore 9
start local 9 5: iconst_0
istore 10
start local 10 6: goto 17
7: StackMap locals: org.apache.lucene.index.IndexWriter org.apache.lucene.util.IOUtils$IOFunction org.apache.lucene.index.SegmentInfos int int int java.util.List org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos int int
StackMap stack:
aload 2
iload 10
invokevirtual org.apache.lucene.index.SegmentInfos.info:(I)Lorg/apache/lucene/index/SegmentCommitInfo;
astore 11
start local 11 8: getstatic org.apache.lucene.index.StandardDirectoryReader.$assertionsDisabled:Z
ifne 9
aload 11
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.dir:Lorg/apache/lucene/store/Directory;
aload 7
if_acmpeq 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals: org.apache.lucene.index.SegmentCommitInfo
StackMap stack:
aload 1
aload 11
invokeinterface org.apache.lucene.util.IOUtils$IOFunction.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentReader
astore 12
start local 12 10: aload 12
invokevirtual org.apache.lucene.index.SegmentReader.numDocs:()I
ifgt 11
aload 0
invokevirtual org.apache.lucene.index.IndexWriter.getConfig:()Lorg/apache/lucene/index/LiveIndexWriterConfig;
getfield org.apache.lucene.index.LiveIndexWriterConfig.mergePolicy:Lorg/apache/lucene/index/MergePolicy;
aload 12
invokedynamic get(Lorg/apache/lucene/index/SegmentReader;)Lorg/apache/lucene/util/IOSupplier;
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;
org/apache/lucene/index/StandardDirectoryReader.lambda$0(Lorg/apache/lucene/index/SegmentReader;)Lorg/apache/lucene/index/CodecReader; (6)
()Lorg/apache/lucene/index/CodecReader;
invokevirtual org.apache.lucene.index.MergePolicy.keepFullyDeletedSegment:(Lorg/apache/lucene/util/IOSupplier;)Z
ifeq 14
11: StackMap locals: org.apache.lucene.index.SegmentReader
StackMap stack:
aload 6
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: iinc 9 1
13: goto 16
14: StackMap locals:
StackMap stack:
aload 12
invokevirtual org.apache.lucene.index.SegmentReader.decRef:()V
15: aload 8
iload 9
invokevirtual org.apache.lucene.index.SegmentInfos.remove:(I)V
end local 12 end local 11 16: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
17: iload 10
iload 5
if_icmplt 7
end local 10 18: aload 0
aload 8
invokevirtual org.apache.lucene.index.IndexWriter.incRefDeleter:(Lorg/apache/lucene/index/SegmentInfos;)V
19: new org.apache.lucene.index.StandardDirectoryReader
dup
aload 7
20: aload 6
aload 6
invokeinterface java.util.List.size:()I
anewarray org.apache.lucene.index.SegmentReader
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.apache.lucene.index.LeafReader[]
aload 0
21: aload 8
iload 3
iload 4
22: invokespecial org.apache.lucene.index.StandardDirectoryReader.<init>:(Lorg/apache/lucene/store/Directory;[Lorg/apache/lucene/index/LeafReader;Lorg/apache/lucene/index/IndexWriter;Lorg/apache/lucene/index/SegmentInfos;ZZ)V
astore 10
start local 10 23: aload 10
24: areturn
end local 10 25: StackMap locals: org.apache.lucene.index.IndexWriter org.apache.lucene.util.IOUtils$IOFunction org.apache.lucene.index.SegmentInfos int int int java.util.List org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos int
StackMap stack: java.lang.Throwable
astore 10
start local 10 26: aload 6
invokedynamic accept()Lorg/apache/lucene/util/IOUtils$IOConsumer;
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;)V
org/apache/lucene/index/IndexReader.decRef()V (5)
(Lorg/apache/lucene/index/SegmentReader;)V
invokestatic org.apache.lucene.util.IOUtils.applyToAll:(Ljava/util/Collection;Lorg/apache/lucene/util/IOUtils$IOConsumer;)V
27: goto 30
StackMap locals: org.apache.lucene.index.IndexWriter org.apache.lucene.util.IOUtils$IOFunction org.apache.lucene.index.SegmentInfos int int int java.util.List org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos int java.lang.Throwable
StackMap stack: java.lang.Throwable
28: astore 11
start local 11 29: aload 10
aload 11
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
end local 11 30: StackMap locals:
StackMap stack:
aload 10
athrow
end local 10 end local 9 end local 8 end local 7 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 31 0 writer Lorg/apache/lucene/index/IndexWriter;
0 31 1 readerFunction Lorg/apache/lucene/util/IOUtils$IOFunction<Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/SegmentReader;>;
0 31 2 infos Lorg/apache/lucene/index/SegmentInfos;
0 31 3 applyAllDeletes Z
0 31 4 writeAllDeletes Z
1 31 5 numSegments I
2 31 6 readers Ljava/util/List<Lorg/apache/lucene/index/SegmentReader;>;
3 31 7 dir Lorg/apache/lucene/store/Directory;
4 31 8 segmentInfos Lorg/apache/lucene/index/SegmentInfos;
5 31 9 infosUpto I
6 18 10 i I
8 16 11 info Lorg/apache/lucene/index/SegmentCommitInfo;
10 16 12 reader Lorg/apache/lucene/index/SegmentReader;
23 25 10 result Lorg/apache/lucene/index/StandardDirectoryReader;
26 31 10 t Ljava/lang/Throwable;
29 30 11 t1 Ljava/lang/Throwable;
Exception table:
from to target type
5 24 25 Class java.lang.Throwable
26 27 28 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/lucene/index/IndexWriter;Lorg/apache/lucene/util/IOUtils$IOFunction<Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/SegmentReader;>;Lorg/apache/lucene/index/SegmentInfos;ZZ)Lorg/apache/lucene/index/StandardDirectoryReader;
MethodParameters:
Name Flags
writer
readerFunction
infos
applyAllDeletes
writeAllDeletes
public static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.store.Directory, org.apache.lucene.index.SegmentInfos, java.util.List<? extends org.apache.lucene.index.LeafReader>);
descriptor: (Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;Ljava/util/List;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 1
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
goto 2
StackMap locals:
StackMap stack:
1: new java.util.HashMap
dup
aload 2
invokeinterface java.util.List.size:()I
invokespecial java.util.HashMap.<init>:(I)V
StackMap locals:
StackMap stack: java.util.Map
2: astore 3
start local 3 3: aload 2
ifnull 11
4: iconst_0
istore 4
start local 4 5: aload 2
invokeinterface java.util.List.size:()I
istore 5
start local 5 6: goto 10
7: StackMap locals: java.util.Map int int
StackMap stack:
aload 2
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentReader
astore 6
start local 6 8: aload 3
aload 6
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentName:()Ljava/lang/String;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 5
if_icmplt 7
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
anewarray org.apache.lucene.index.SegmentReader
astore 4
start local 4 12: aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
iconst_1
isub
istore 5
start local 5 13: goto 63
14: StackMap locals: org.apache.lucene.index.SegmentReader[] int
StackMap stack:
aload 1
iload 5
invokevirtual org.apache.lucene.index.SegmentInfos.info:(I)Lorg/apache/lucene/index/SegmentCommitInfo;
astore 6
start local 6 15: aload 3
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 7
start local 7 16: aload 7
ifnonnull 19
17: aconst_null
astore 8
start local 8 18: goto 20
end local 8 19: StackMap locals: org.apache.lucene.index.SegmentCommitInfo java.lang.Integer
StackMap stack:
aload 2
aload 7
invokevirtual java.lang.Integer.intValue:()I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentReader
astore 8
start local 8 20: StackMap locals: org.apache.lucene.index.SegmentReader
StackMap stack:
aload 8
ifnull 22
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getId:()[B
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getId:()[B
invokestatic java.util.Arrays.equals:([B[B)Z
ifne 22
21: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "same segment "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
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;
ldc " has invalid doc count change; likely you are re-opening a reader after illegally removing index files yourself and building a new index in their place. Use IndexWriter.deleteAll or open a new IndexWriter using OpenMode.CREATE instead"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
iconst_0
istore 9
start local 9 23: aload 8
ifnull 24
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getUseCompoundFile:()Z
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getUseCompoundFile:()Z
if_icmpeq 27
24: StackMap locals: int
StackMap stack:
new org.apache.lucene.index.SegmentReader
dup
aload 6
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.getIndexCreatedVersionMajor:()I
getstatic org.apache.lucene.store.IOContext.READ:Lorg/apache/lucene/store/IOContext;
invokespecial org.apache.lucene.index.SegmentReader.<init>:(Lorg/apache/lucene/index/SegmentCommitInfo;ILorg/apache/lucene/store/IOContext;)V
astore 10
start local 10 25: aload 4
iload 5
aload 10
aastore
26: goto 54
end local 10 27: StackMap locals:
StackMap stack:
aload 8
getfield org.apache.lucene.index.SegmentReader.isNRT:Z
ifeq 36
28: aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.hasDeletions:()Z
ifeq 30
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getCodec:()Lorg/apache/lucene/codecs/Codec;
invokevirtual org.apache.lucene.codecs.Codec.liveDocsFormat:()Lorg/apache/lucene/codecs/LiveDocsFormat;
29: aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.dir:Lorg/apache/lucene/store/Directory;
aload 6
getstatic org.apache.lucene.store.IOContext.READONCE:Lorg/apache/lucene/store/IOContext;
invokevirtual org.apache.lucene.codecs.LiveDocsFormat.readLiveDocs:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/store/IOContext;)Lorg/apache/lucene/util/Bits;
goto 31
StackMap locals:
StackMap stack:
30: aconst_null
31: StackMap locals:
StackMap stack: org.apache.lucene.util.Bits
astore 11
start local 11 32: aload 4
iload 5
new org.apache.lucene.index.SegmentReader
dup
aload 6
aload 8
aload 11
aload 11
33: aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelCount:()I
isub
iconst_0
invokespecial org.apache.lucene.index.SegmentReader.<init>:(Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/SegmentReader;Lorg/apache/lucene/util/Bits;Lorg/apache/lucene/util/Bits;IZ)V
34: aastore
end local 11 35: goto 54
36: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelGen:()J
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelGen:()J
lcmp
ifne 41
37: aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getFieldInfosGen:()J
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getFieldInfosGen:()J
lcmp
ifne 41
38: aload 8
invokevirtual org.apache.lucene.index.SegmentReader.incRef:()V
39: aload 4
iload 5
aload 8
aastore
40: goto 54
41: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.index.StandardDirectoryReader.$assertionsDisabled:Z
ifne 42
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.dir:Lorg/apache/lucene/store/Directory;
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.dir:Lorg/apache/lucene/store/Directory;
if_acmpeq 42
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
42: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getSegmentInfo:()Lorg/apache/lucene/index/SegmentCommitInfo;
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelGen:()J
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelGen:()J
lcmp
ifne 47
43: aload 4
iload 5
new org.apache.lucene.index.SegmentReader
dup
aload 6
aload 8
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getLiveDocs:()Lorg/apache/lucene/util/Bits;
44: aload 8
invokevirtual org.apache.lucene.index.SegmentReader.getHardLiveDocs:()Lorg/apache/lucene/util/Bits;
aload 8
invokevirtual org.apache.lucene.index.SegmentReader.numDocs:()I
iconst_0
invokespecial org.apache.lucene.index.SegmentReader.<init>:(Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/SegmentReader;Lorg/apache/lucene/util/Bits;Lorg/apache/lucene/util/Bits;IZ)V
45: aastore
46: goto 54
47: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.hasDeletions:()Z
ifeq 49
aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getCodec:()Lorg/apache/lucene/codecs/Codec;
invokevirtual org.apache.lucene.codecs.Codec.liveDocsFormat:()Lorg/apache/lucene/codecs/LiveDocsFormat;
48: aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.dir:Lorg/apache/lucene/store/Directory;
aload 6
getstatic org.apache.lucene.store.IOContext.READONCE:Lorg/apache/lucene/store/IOContext;
invokevirtual org.apache.lucene.codecs.LiveDocsFormat.readLiveDocs:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/store/IOContext;)Lorg/apache/lucene/util/Bits;
goto 50
StackMap locals:
StackMap stack:
49: aconst_null
50: StackMap locals:
StackMap stack: org.apache.lucene.util.Bits
astore 11
start local 11 51: aload 4
iload 5
new org.apache.lucene.index.SegmentReader
dup
aload 6
aload 8
aload 11
aload 11
52: aload 6
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
aload 6
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelCount:()I
isub
iconst_0
invokespecial org.apache.lucene.index.SegmentReader.<init>:(Lorg/apache/lucene/index/SegmentCommitInfo;Lorg/apache/lucene/index/SegmentReader;Lorg/apache/lucene/util/Bits;Lorg/apache/lucene/util/Bits;IZ)V
53: aastore
end local 11 54: StackMap locals:
StackMap stack:
iconst_1
istore 9
55: goto 60
StackMap locals:
StackMap stack: java.lang.Throwable
56: astore 12
57: iload 9
ifne 59
58: aload 4
invokestatic org.apache.lucene.index.StandardDirectoryReader.decRefWhileHandlingException:([Lorg/apache/lucene/index/SegmentReader;)V
59: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos java.util.List java.util.Map org.apache.lucene.index.SegmentReader[] int org.apache.lucene.index.SegmentCommitInfo java.lang.Integer org.apache.lucene.index.SegmentReader int top top java.lang.Throwable
StackMap stack:
aload 12
athrow
60: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos java.util.List java.util.Map org.apache.lucene.index.SegmentReader[] int org.apache.lucene.index.SegmentCommitInfo java.lang.Integer org.apache.lucene.index.SegmentReader int
StackMap stack:
iload 9
ifne 62
61: aload 4
invokestatic org.apache.lucene.index.StandardDirectoryReader.decRefWhileHandlingException:([Lorg/apache/lucene/index/SegmentReader;)V
end local 9 end local 8 end local 7 end local 6 62: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.index.SegmentInfos java.util.List java.util.Map org.apache.lucene.index.SegmentReader[] int
StackMap stack:
iinc 5 -1
StackMap locals:
StackMap stack:
63: iload 5
ifge 14
end local 5 64: new org.apache.lucene.index.StandardDirectoryReader
dup
aload 0
aload 4
aconst_null
aload 1
iconst_0
iconst_0
invokespecial org.apache.lucene.index.StandardDirectoryReader.<init>:(Lorg/apache/lucene/store/Directory;[Lorg/apache/lucene/index/LeafReader;Lorg/apache/lucene/index/IndexWriter;Lorg/apache/lucene/index/SegmentInfos;ZZ)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 65 0 directory Lorg/apache/lucene/store/Directory;
0 65 1 infos Lorg/apache/lucene/index/SegmentInfos;
0 65 2 oldReaders Ljava/util/List<+Lorg/apache/lucene/index/LeafReader;>;
3 65 3 segmentReaders Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
5 11 4 i I
6 11 5 c I
8 9 6 sr Lorg/apache/lucene/index/SegmentReader;
12 65 4 newReaders [Lorg/apache/lucene/index/SegmentReader;
13 64 5 i I
15 62 6 commitInfo Lorg/apache/lucene/index/SegmentCommitInfo;
16 62 7 oldReaderIndex Ljava/lang/Integer;
18 19 8 oldReader Lorg/apache/lucene/index/SegmentReader;
20 62 8 oldReader Lorg/apache/lucene/index/SegmentReader;
23 62 9 success Z
25 27 10 newReader Lorg/apache/lucene/index/SegmentReader;
32 35 11 liveDocs Lorg/apache/lucene/util/Bits;
51 54 11 liveDocs Lorg/apache/lucene/util/Bits;
Exception table:
from to target type
23 56 56 any
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;Ljava/util/List<+Lorg/apache/lucene/index/LeafReader;>;)Lorg/apache/lucene/index/DirectoryReader;
MethodParameters:
Name Flags
directory
infos
oldReaders
private static void decRefWhileHandlingException(org.apache.lucene.index.SegmentReader[]);
descriptor: ([Lorg/apache/lucene/index/SegmentReader;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 7
StackMap locals: org.apache.lucene.index.SegmentReader[] top int int org.apache.lucene.index.SegmentReader[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
ifnull 6
3: aload 1
invokevirtual org.apache.lucene.index.SegmentReader.decRef:()V
4: goto 6
StackMap locals: org.apache.lucene.index.SegmentReader[] org.apache.lucene.index.SegmentReader int int org.apache.lucene.index.SegmentReader[]
StackMap stack: java.lang.Throwable
5: pop
end local 1 6: StackMap locals: org.apache.lucene.index.SegmentReader[] top int int org.apache.lucene.index.SegmentReader[]
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 3
if_icmplt 1
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 readers [Lorg/apache/lucene/index/SegmentReader;
2 6 1 reader Lorg/apache/lucene/index/SegmentReader;
Exception table:
from to target type
3 4 5 Class java.lang.Throwable
MethodParameters:
Name Flags
readers
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, 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 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
astore 2
start local 2 4: aload 2
ifnull 6
5: aload 1
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getVersion:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
pop
6: StackMap locals: java.lang.StringBuilder java.lang.String
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
ifnull 8
7: aload 1
ldc ":nrt"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.getSequentialSubReaders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.apache.lucene.index.StandardDirectoryReader java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
9: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.LeafReader
astore 3
start local 3 10: aload 1
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: aload 1
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: 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 15 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
1 15 1 buffer Ljava/lang/StringBuilder;
4 15 2 segmentsFile Ljava/lang/String;
10 12 3 r Lorg/apache/lucene/index/LeafReader;
protected org.apache.lucene.index.DirectoryReader doOpenIfChanged();
descriptor: ()Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
Exceptions:
throws java.io.IOException
protected org.apache.lucene.index.DirectoryReader doOpenIfChanged(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.ensureOpen:()V
1: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
ifnull 3
2: aload 0
aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenNoWriter:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 4 1 commit Lorg/apache/lucene/index/IndexCommit;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit final
protected org.apache.lucene.index.DirectoryReader doOpenIfChanged(org.apache.lucene.index.IndexWriter, boolean);
descriptor: (Lorg/apache/lucene/index/IndexWriter;Z)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.ensureOpen:()V
1: aload 1
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
if_acmpne 3
iload 2
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.applyAllDeletes:Z
if_icmpne 3
2: aload 0
aconst_null
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
3: StackMap locals:
StackMap stack:
aload 1
iload 2
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writeAllDeletes:Z
invokevirtual org.apache.lucene.index.IndexWriter.getReader:(ZZ)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 4 1 writer Lorg/apache/lucene/index/IndexWriter;
0 4 2 applyAllDeletes Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
writer
applyAllDeletes
private org.apache.lucene.index.DirectoryReader doOpenFromWriter(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 0
aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenFromCommit:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.IndexWriter.nrtIsCurrent:(Lorg/apache/lucene/index/SegmentInfos;)Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.applyAllDeletes:Z
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writeAllDeletes:Z
invokevirtual org.apache.lucene.index.IndexWriter.getReader:(ZZ)Lorg/apache/lucene/index/DirectoryReader;
astore 2
start local 2 5: aload 2
invokevirtual org.apache.lucene.index.DirectoryReader.getVersion:()J
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getVersion:()J
lcmp
ifne 8
6: aload 2
invokevirtual org.apache.lucene.index.DirectoryReader.decRef:()V
7: aconst_null
areturn
8: StackMap locals: org.apache.lucene.index.DirectoryReader
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 9 1 commit Lorg/apache/lucene/index/IndexCommit;
5 9 2 reader Lorg/apache/lucene/index/DirectoryReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit
private org.apache.lucene.index.DirectoryReader doOpenNoWriter(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.isCurrent:()Z
ifeq 7
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.directory:Lorg/apache/lucene/store/Directory;
aload 1
invokevirtual org.apache.lucene.index.IndexCommit.getDirectory:()Lorg/apache/lucene/store/Directory;
if_acmpeq 5
4: new java.io.IOException
dup
ldc "the specified commit does not match the specified Directory"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
ifnull 7
aload 1
invokevirtual org.apache.lucene.index.IndexCommit.getSegmentsFileName:()Ljava/lang/String;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader.doOpenFromCommit:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 8 1 commit Lorg/apache/lucene/index/IndexCommit;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit
private org.apache.lucene.index.DirectoryReader doOpenFromCommit(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.apache.lucene.index.StandardDirectoryReader$3
dup
aload 0
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.directory:Lorg/apache/lucene/store/Directory;
invokespecial org.apache.lucene.index.StandardDirectoryReader$3.<init>:(Lorg/apache/lucene/index/StandardDirectoryReader;Lorg/apache/lucene/store/Directory;)V
1: aload 1
invokevirtual org.apache.lucene.index.StandardDirectoryReader$3.run:(Lorg/apache/lucene/index/IndexCommit;)Ljava/lang/Object;
checkcast org.apache.lucene.index.DirectoryReader
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 3 1 commit Lorg/apache/lucene/index/IndexCommit;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit
org.apache.lucene.index.DirectoryReader doOpenIfChanged(org.apache.lucene.index.SegmentInfos);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.directory:Lorg/apache/lucene/store/Directory;
aload 1
aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.getSequentialSubReaders:()Ljava/util/List;
invokestatic org.apache.lucene.index.StandardDirectoryReader.open:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;Ljava/util/List;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 1 1 infos Lorg/apache/lucene/index/SegmentInfos;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
infos
public long getVersion();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.ensureOpen:()V
1: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getVersion:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
public org.apache.lucene.index.SegmentInfos getSegmentInfos();
descriptor: ()Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
public boolean isCurrent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.ensureOpen:()V
1: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
ifnull 2
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
invokevirtual org.apache.lucene.index.IndexWriter.isClosed:()Z
ifeq 5
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.directory:Lorg/apache/lucene/store/Directory;
invokestatic org.apache.lucene.index.SegmentInfos.readLatestCommit:(Lorg/apache/lucene/store/Directory;)Lorg/apache/lucene/index/SegmentInfos;
astore 1
start local 1 3: aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.getVersion:()J
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getVersion:()J
lcmp
ifne 4
iconst_1
ireturn
StackMap locals: org.apache.lucene.index.SegmentInfos
StackMap stack:
4: iconst_0
ireturn
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.IndexWriter.nrtIsCurrent:(Lorg/apache/lucene/index/SegmentInfos;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
3 5 1 sis Lorg/apache/lucene/index/SegmentInfos;
Exceptions:
throws java.io.IOException
protected void doClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
invokedynamic close(Lorg/apache/lucene/index/StandardDirectoryReader;)Ljava/io/Closeable;
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:
()V
org/apache/lucene/index/StandardDirectoryReader.lambda$2()V (7)
()V
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: aload 1
astore 4
start local 4 3: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.getSequentialSubReaders:()Ljava/util/List;
astore 5
start local 5 4: aload 5
invokedynamic accept()Lorg/apache/lucene/util/IOUtils$IOConsumer;
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;)V
org/apache/lucene/index/IndexReader.decRef()V (5)
(Lorg/apache/lucene/index/LeafReader;)V
invokestatic org.apache.lucene.util.IOUtils.applyToAll:(Ljava/util/Collection;Lorg/apache/lucene/util/IOUtils$IOConsumer;)V
end local 5 5: aload 4
ifnull 11
aload 4
invokeinterface java.io.Closeable.close:()V
goto 11
StackMap locals: org.apache.lucene.index.StandardDirectoryReader java.io.Closeable java.lang.Throwable java.lang.Throwable java.io.Closeable
StackMap stack: java.lang.Throwable
6: astore 2
aload 4
ifnull 7
aload 4
invokeinterface java.io.Closeable.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
1 12 1 decRefDeleter Ljava/io/Closeable;
3 7 4 finalizer Ljava/io/Closeable;
4 5 5 sequentialSubReaders Ljava/util/List<+Lorg/apache/lucene/index/LeafReader;>;
Exception table:
from to target type
3 5 6 any
2 8 8 any
Exceptions:
throws java.io.IOException
public org.apache.lucene.index.IndexCommit getIndexCommit();
descriptor: ()Lorg/apache/lucene/index/IndexCommit;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.StandardDirectoryReader.ensureOpen:()V
1: new org.apache.lucene.index.StandardDirectoryReader$ReaderCommit
dup
aload 0
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.directory:Lorg/apache/lucene/store/Directory;
invokespecial org.apache.lucene.index.StandardDirectoryReader$ReaderCommit.<init>:(Lorg/apache/lucene/index/StandardDirectoryReader;Lorg/apache/lucene/index/SegmentInfos;Lorg/apache/lucene/store/Directory;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
Exceptions:
throws java.io.IOException
void notifyReaderClosedListeners();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.readerClosedListeners:Ljava/util/Set;
dup
astore 1
monitorenter
1: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.readerClosedListeners:Ljava/util/Set;
aload 0
invokedynamic accept(Lorg/apache/lucene/index/StandardDirectoryReader;)Lorg/apache/lucene/util/IOUtils$IOConsumer;
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;)V
org/apache/lucene/index/StandardDirectoryReader.lambda$4(Lorg/apache/lucene/index/IndexReader$ClosedListener;)V (7)
(Lorg/apache/lucene/index/IndexReader$ClosedListener;)V
invokestatic org.apache.lucene.util.IOUtils.applyToAll:(Ljava/util/Collection;Lorg/apache/lucene/util/IOUtils$IOConsumer;)V
2: aload 1
monitorexit
3: goto 6
StackMap locals: org.apache.lucene.index.StandardDirectoryReader java.util.Set
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Exceptions:
throws java.io.IOException
public org.apache.lucene.index.IndexReader$CacheHelper getReaderCacheHelper();
descriptor: ()Lorg/apache/lucene/index/IndexReader$CacheHelper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.cacheHelper:Lorg/apache/lucene/index/IndexReader$CacheHelper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
private static org.apache.lucene.index.CodecReader lambda$0(org.apache.lucene.index.SegmentReader);
descriptor: (Lorg/apache/lucene/index/SegmentReader;)Lorg/apache/lucene/index/CodecReader;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
private void lambda$2();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
ifnull 4
1: aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.writer:Lorg/apache/lucene/index/IndexWriter;
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.segmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.IndexWriter.decRefDeleter:(Lorg/apache/lucene/index/SegmentInfos;)V
2: goto 4
StackMap locals:
StackMap stack: org.apache.lucene.store.AlreadyClosedException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
Exception table:
from to target type
1 2 3 Class org.apache.lucene.store.AlreadyClosedException
Exceptions:
throws java.io.IOException
private void lambda$4(org.apache.lucene.index.IndexReader$ClosedListener);
descriptor: (Lorg/apache/lucene/index/IndexReader$ClosedListener;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.apache.lucene.index.StandardDirectoryReader.cacheHelper:Lorg/apache/lucene/index/IndexReader$CacheHelper;
invokeinterface org.apache.lucene.index.IndexReader$CacheHelper.getKey:()Lorg/apache/lucene/index/IndexReader$CacheKey;
invokeinterface org.apache.lucene.index.IndexReader$ClosedListener.onClose:(Lorg/apache/lucene/index/IndexReader$CacheKey;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/StandardDirectoryReader;
0 1 1 l Lorg/apache/lucene/index/IndexReader$ClosedListener;
Exceptions:
throws java.io.IOException
}
SourceFile: "StandardDirectoryReader.java"
NestMembers:
org.apache.lucene.index.StandardDirectoryReader$1 org.apache.lucene.index.StandardDirectoryReader$2 org.apache.lucene.index.StandardDirectoryReader$3 org.apache.lucene.index.StandardDirectoryReader$ReaderCommit
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract CacheHelper = org.apache.lucene.index.IndexReader$CacheHelper of org.apache.lucene.index.IndexReader
public final CacheKey = org.apache.lucene.index.IndexReader$CacheKey of org.apache.lucene.index.IndexReader
public abstract ClosedListener = org.apache.lucene.index.IndexReader$ClosedListener of org.apache.lucene.index.IndexReader
org.apache.lucene.index.StandardDirectoryReader$1
org.apache.lucene.index.StandardDirectoryReader$2
org.apache.lucene.index.StandardDirectoryReader$3
final ReaderCommit = org.apache.lucene.index.StandardDirectoryReader$ReaderCommit of org.apache.lucene.index.StandardDirectoryReader
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