public abstract class org.apache.lucene.index.DirectoryReader extends org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.LeafReader>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.lucene.index.DirectoryReader
super_class: org.apache.lucene.index.BaseCompositeReader
{
protected final org.apache.lucene.store.Directory directory;
descriptor: Lorg/apache/lucene/store/Directory;
flags: (0x0014) ACC_PROTECTED, 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/DirectoryReader;
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.DirectoryReader.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokestatic org.apache.lucene.index.StandardDirectoryReader.open:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 directory Lorg/apache/lucene/store/Directory;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory final
public static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.index.IndexWriter);
descriptor: (Lorg/apache/lucene/index/IndexWriter;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
iconst_0
invokestatic org.apache.lucene.index.DirectoryReader.open:(Lorg/apache/lucene/index/IndexWriter;ZZ)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 writer Lorg/apache/lucene/index/IndexWriter;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
writer final
public static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.index.IndexWriter, boolean, boolean);
descriptor: (Lorg/apache/lucene/index/IndexWriter;ZZ)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
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 1 0 writer Lorg/apache/lucene/index/IndexWriter;
0 1 1 applyAllDeletes Z
0 1 2 writeAllDeletes Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
writer final
applyAllDeletes
writeAllDeletes
public static org.apache.lucene.index.DirectoryReader open(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.IndexCommit.getDirectory:()Lorg/apache/lucene/store/Directory;
aload 0
invokestatic org.apache.lucene.index.StandardDirectoryReader.open:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 commit Lorg/apache/lucene/index/IndexCommit;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit final
public static org.apache.lucene.index.DirectoryReader openIfChanged(org.apache.lucene.index.DirectoryReader);
descriptor: (Lorg/apache/lucene/index/DirectoryReader;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.DirectoryReader.doOpenIfChanged:()Lorg/apache/lucene/index/DirectoryReader;
astore 1
start local 1 1: getstatic org.apache.lucene.index.DirectoryReader.$assertionsDisabled:Z
ifne 2
aload 1
aload 0
if_acmpne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.apache.lucene.index.DirectoryReader
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 oldReader Lorg/apache/lucene/index/DirectoryReader;
1 3 1 newReader Lorg/apache/lucene/index/DirectoryReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oldReader
public static org.apache.lucene.index.DirectoryReader openIfChanged(org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/DirectoryReader;Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.index.DirectoryReader.doOpenIfChanged:(Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
astore 2
start local 2 1: getstatic org.apache.lucene.index.DirectoryReader.$assertionsDisabled:Z
ifne 2
aload 2
aload 0
if_acmpne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: 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 3 0 oldReader Lorg/apache/lucene/index/DirectoryReader;
0 3 1 commit Lorg/apache/lucene/index/IndexCommit;
1 3 2 newReader Lorg/apache/lucene/index/DirectoryReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oldReader
commit
public static org.apache.lucene.index.DirectoryReader openIfChanged(org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.IndexWriter);
descriptor: (Lorg/apache/lucene/index/DirectoryReader;Lorg/apache/lucene/index/IndexWriter;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokestatic org.apache.lucene.index.DirectoryReader.openIfChanged:(Lorg/apache/lucene/index/DirectoryReader;Lorg/apache/lucene/index/IndexWriter;Z)Lorg/apache/lucene/index/DirectoryReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 oldReader Lorg/apache/lucene/index/DirectoryReader;
0 1 1 writer Lorg/apache/lucene/index/IndexWriter;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oldReader
writer
public static org.apache.lucene.index.DirectoryReader openIfChanged(org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.IndexWriter, boolean);
descriptor: (Lorg/apache/lucene/index/DirectoryReader;Lorg/apache/lucene/index/IndexWriter;Z)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokevirtual org.apache.lucene.index.DirectoryReader.doOpenIfChanged:(Lorg/apache/lucene/index/IndexWriter;Z)Lorg/apache/lucene/index/DirectoryReader;
astore 3
start local 3 1: getstatic org.apache.lucene.index.DirectoryReader.$assertionsDisabled:Z
ifne 2
aload 3
aload 0
if_acmpne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.apache.lucene.index.DirectoryReader
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 oldReader Lorg/apache/lucene/index/DirectoryReader;
0 3 1 writer Lorg/apache/lucene/index/IndexWriter;
0 3 2 applyAllDeletes Z
1 3 3 newReader Lorg/apache/lucene/index/DirectoryReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oldReader
writer
applyAllDeletes
public static java.util.List<org.apache.lucene.index.IndexCommit> listCommits(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.store.Directory.listAll:()[Ljava/lang/String;
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
invokestatic org.apache.lucene.index.SegmentInfos.readLatestCommit:(Lorg/apache/lucene/store/Directory;)Lorg/apache/lucene/index/SegmentInfos;
astore 3
start local 3 3: aload 3
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
lstore 4
start local 4 4: aload 2
new org.apache.lucene.index.StandardDirectoryReader$ReaderCommit
dup
aconst_null
aload 3
aload 0
invokespecial org.apache.lucene.index.StandardDirectoryReader$ReaderCommit.<init>:(Lorg/apache/lucene/index/StandardDirectoryReader;Lorg/apache/lucene/index/SegmentInfos;Lorg/apache/lucene/store/Directory;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: iconst_0
istore 6
start local 6 6: goto 18
7: StackMap locals: org.apache.lucene.store.Directory java.lang.String[] java.util.List org.apache.lucene.index.SegmentInfos long int
StackMap stack:
aload 1
iload 6
aaload
astore 7
start local 7 8: aload 7
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
9: aload 7
ldc "segments.gen"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
10: aload 7
invokestatic org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName:(Ljava/lang/String;)J
lload 4
lcmp
ifge 17
11: aconst_null
astore 8
start local 8 12: aload 0
aload 7
invokestatic org.apache.lucene.index.SegmentInfos.readCommit:(Lorg/apache/lucene/store/Directory;Ljava/lang/String;)Lorg/apache/lucene/index/SegmentInfos;
astore 8
13: goto 15
StackMap locals: org.apache.lucene.store.Directory java.lang.String[] java.util.List org.apache.lucene.index.SegmentInfos long int java.lang.String org.apache.lucene.index.SegmentInfos
StackMap stack: java.io.IOException
14: pop
15: StackMap locals:
StackMap stack:
aload 8
ifnull 17
16: aload 2
new org.apache.lucene.index.StandardDirectoryReader$ReaderCommit
dup
aconst_null
aload 8
aload 0
invokespecial org.apache.lucene.index.StandardDirectoryReader$ReaderCommit.<init>:(Lorg/apache/lucene/index/StandardDirectoryReader;Lorg/apache/lucene/index/SegmentInfos;Lorg/apache/lucene/store/Directory;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 17: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
18: iload 6
aload 1
arraylength
if_icmplt 7
end local 6 19: aload 2
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
20: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 dir Lorg/apache/lucene/store/Directory;
1 21 1 files [Ljava/lang/String;
2 21 2 commits Ljava/util/List<Lorg/apache/lucene/index/IndexCommit;>;
3 21 3 latest Lorg/apache/lucene/index/SegmentInfos;
4 21 4 currentGen J
6 19 6 i I
8 17 7 fileName Ljava/lang/String;
12 17 8 sis Lorg/apache/lucene/index/SegmentInfos;
Exception table:
from to target type
12 13 14 Class java.io.FileNotFoundException
12 13 14 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/lucene/store/Directory;)Ljava/util/List<Lorg/apache/lucene/index/IndexCommit;>;
MethodParameters:
Name Flags
dir
public static boolean indexExists(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.store.Directory.listAll:()[Ljava/lang/String;
astore 1
start local 1 1: ldc "segments_"
astore 2
start local 2 2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: org.apache.lucene.store.Directory java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
aload 2
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: iconst_1
ireturn
end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 3
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 directory Lorg/apache/lucene/store/Directory;
1 9 1 files [Ljava/lang/String;
2 9 2 prefix Ljava/lang/String;
4 6 3 file Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
protected void <init>(org.apache.lucene.store.Directory, org.apache.lucene.index.LeafReader[]);
descriptor: (Lorg/apache/lucene/store/Directory;[Lorg/apache/lucene/index/LeafReader;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokespecial org.apache.lucene.index.BaseCompositeReader.<init>:([Lorg/apache/lucene/index/IndexReader;)V
1: aload 0
aload 1
putfield org.apache.lucene.index.DirectoryReader.directory:Lorg/apache/lucene/store/Directory;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/DirectoryReader;
0 3 1 directory Lorg/apache/lucene/store/Directory;
0 3 2 segmentReaders [Lorg/apache/lucene/index/LeafReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
segmentReaders
public final org.apache.lucene.store.Directory directory();
descriptor: ()Lorg/apache/lucene/store/Directory;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DirectoryReader.directory:Lorg/apache/lucene/store/Directory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/DirectoryReader;
protected abstract org.apache.lucene.index.DirectoryReader doOpenIfChanged();
descriptor: ()Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract org.apache.lucene.index.DirectoryReader doOpenIfChanged(org.apache.lucene.index.IndexCommit);
descriptor: (Lorg/apache/lucene/index/IndexCommit;)Lorg/apache/lucene/index/DirectoryReader;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
commit final
protected abstract 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: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
writer
applyAllDeletes
public abstract long getVersion();
descriptor: ()J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract boolean isCurrent();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public abstract org.apache.lucene.index.IndexCommit getIndexCommit();
descriptor: ()Lorg/apache/lucene/index/IndexCommit;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
}
Signature: Lorg/apache/lucene/index/BaseCompositeReader<Lorg/apache/lucene/index/LeafReader;>;
SourceFile: "DirectoryReader.java"
InnerClasses:
final ReaderCommit = org.apache.lucene.index.StandardDirectoryReader$ReaderCommit of org.apache.lucene.index.StandardDirectoryReader