public final class org.apache.lucene.index.SegmentInfos implements java.lang.Cloneable, java.lang.Iterable<org.apache.lucene.index.SegmentCommitInfo>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.index.SegmentInfos
super_class: java.lang.Object
{
public static final int VERSION_70;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 7
public static final int VERSION_72;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 8
public static final int VERSION_74;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 9
public static final int VERSION_86;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10
static final int VERSION_CURRENT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
public long counter;
descriptor: J
flags: (0x0001) ACC_PUBLIC
public long version;
descriptor: J
flags: (0x0001) ACC_PUBLIC
private long generation;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long lastGeneration;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public java.util.Map<java.lang.String, java.lang.String> userData;
descriptor: Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private java.util.List<org.apache.lucene.index.SegmentCommitInfo> segments;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
private static java.io.PrintStream infoStream;
descriptor: Ljava/io/PrintStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private byte[] id;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private org.apache.lucene.util.Version luceneVersion;
descriptor: Lorg/apache/lucene/util/Version;
flags: (0x0002) ACC_PRIVATE
private org.apache.lucene.util.Version minSegmentLuceneVersion;
descriptor: Lorg/apache/lucene/util/Version;
flags: (0x0002) ACC_PRIVATE
private final int indexCreatedVersionMajor;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
boolean pendingCommit;
descriptor: Z
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/SegmentInfos;
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.SegmentInfos.$assertionsDisabled:Z
3: aconst_null
putstatic org.apache.lucene.index.SegmentInfos.infoStream:Ljava/io/PrintStream;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
putfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
3: iload 1
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
getfield org.apache.lucene.util.Version.major:I
if_icmple 5
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "indexCreatedVersionMajor is in the future: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: org.apache.lucene.index.SegmentInfos int
StackMap stack:
iload 1
bipush 6
if_icmpge 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "indexCreatedVersionMajor must be >= 6, got: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/index/SegmentInfos;
0 9 1 indexCreatedVersionMajor I
MethodParameters:
Name Flags
indexCreatedVersionMajor
public org.apache.lucene.index.SegmentCommitInfo info(int);
descriptor: (I)Lorg/apache/lucene/index/SegmentCommitInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
0 1 1 i I
MethodParameters:
Name Flags
i
public static long getLastCommitGeneration(java.lang.String[]);
descriptor: ([Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=1
start local 0 0: ldc -1
lstore 1
start local 1 1: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 8
StackMap locals: java.lang.String[] long top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 3
ldc "segments.gen"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
4: aload 3
invokestatic org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName:(Ljava/lang/String;)J
lstore 7
start local 7 5: lload 7
lload 1
lcmp
ifle 7
6: lload 7
lstore 1
end local 7 end local 3 7: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 5
if_icmplt 2
9: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 files [Ljava/lang/String;
1 10 1 max J
3 7 3 file Ljava/lang/String;
5 7 7 gen J
MethodParameters:
Name Flags
files
public static long getLastCommitGeneration(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.store.Directory.listAll:()[Ljava/lang/String;
invokestatic org.apache.lucene.index.SegmentInfos.getLastCommitGeneration:([Ljava/lang/String;)J
lreturn
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
public static java.lang.String getLastCommitSegmentsFileName(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: ldc "segments"
1: ldc ""
2: aload 0
invokestatic org.apache.lucene.index.SegmentInfos.getLastCommitGeneration:([Ljava/lang/String;)J
3: invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 files [Ljava/lang/String;
MethodParameters:
Name Flags
files
public static java.lang.String getLastCommitSegmentsFileName(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: ldc "segments"
1: ldc ""
2: aload 0
invokestatic org.apache.lucene.index.SegmentInfos.getLastCommitGeneration:(Lorg/apache/lucene/store/Directory;)J
3: invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 directory Lorg/apache/lucene/store/Directory;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
public java.lang.String getSegmentsFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: ldc "segments"
1: ldc ""
2: aload 0
getfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
3: invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/SegmentInfos;
public static long generationFromSegmentsFileName(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "segments"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
3: aload 0
iconst_1
ldc "segments"
invokevirtual java.lang.String.length:()I
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
4: bipush 36
5: invokestatic java.lang.Long.parseLong:(Ljava/lang/String;I)J
lreturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "fileName \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" is not a segments file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fileName Ljava/lang/String;
MethodParameters:
Name Flags
fileName
private long getNextPendingGeneration();
descriptor: ()J
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
ldc -1
lcmp
ifne 2
1: lconst_1
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
lconst_1
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/SegmentInfos;
public byte[] getId();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.id:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public static final org.apache.lucene.index.SegmentInfos readCommit(org.apache.lucene.store.Directory, java.lang.String);
descriptor: (Lorg/apache/lucene/store/Directory;Ljava/lang/String;)Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName:(Ljava/lang/String;)J
lstore 2
start local 2 1: aconst_null
astore 4
aconst_null
astore 5
2: aload 0
aload 1
getstatic org.apache.lucene.store.IOContext.READ:Lorg/apache/lucene/store/IOContext;
invokevirtual org.apache.lucene.store.Directory.openChecksumInput:(Ljava/lang/String;Lorg/apache/lucene/store/IOContext;)Lorg/apache/lucene/store/ChecksumIndexInput;
astore 6
start local 6 3: aload 0
aload 6
lload 2
invokestatic org.apache.lucene.index.SegmentInfos.readCommit:(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/store/ChecksumIndexInput;J)Lorg/apache/lucene/index/SegmentInfos;
4: aload 6
ifnull 5
aload 6
invokevirtual org.apache.lucene.store.ChecksumIndexInput.close:()V
5: StackMap locals: org.apache.lucene.store.Directory java.lang.String long java.lang.Throwable java.lang.Throwable org.apache.lucene.store.ChecksumIndexInput
StackMap stack: org.apache.lucene.index.SegmentInfos
areturn
6: StackMap locals:
StackMap stack: java.io.IOException
astore 7
start local 7 7: new org.apache.lucene.index.CorruptIndexException
dup
ldc "Unexpected file read error while reading index."
aload 6
aload 7
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;Ljava/lang/Throwable;)V
athrow
end local 7 StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
9: aload 6
ifnull 10
aload 6
invokevirtual org.apache.lucene.store.ChecksumIndexInput.close:()V
end local 6 StackMap locals:
StackMap stack:
10: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 5
aload 4
ifnonnull 12
aload 5
astore 4
goto 13
StackMap locals:
StackMap stack:
12: aload 4
aload 5
if_acmpeq 13
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 directory Lorg/apache/lucene/store/Directory;
0 14 1 segmentFileName Ljava/lang/String;
1 14 2 generation J
3 10 6 input Lorg/apache/lucene/store/ChecksumIndexInput;
7 8 7 e Ljava/io/IOException;
Exception table:
from to target type
3 4 6 Class java.io.EOFException
3 4 6 Class java.nio.file.NoSuchFileException
3 4 6 Class java.io.FileNotFoundException
3 4 8 any
6 8 8 any
2 5 11 any
6 11 11 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
segmentFileName
public static final org.apache.lucene.index.SegmentInfos readCommit(org.apache.lucene.store.Directory, org.apache.lucene.store.ChecksumIndexInput, long);
descriptor: (Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/store/ChecksumIndexInput;J)Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=12, locals=35, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 4
start local 4 1: iconst_m1
istore 5
start local 5 2: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
istore 6
start local 6 3: iload 6
ldc 1071082519
if_icmpeq 5
4: new org.apache.lucene.index.IndexFormatTooOldException
dup
aload 1
iload 6
ldc 1071082519
ldc 1071082519
invokespecial org.apache.lucene.index.IndexFormatTooOldException.<init>:(Lorg/apache/lucene/store/DataInput;III)V
athrow
5: StackMap locals: java.lang.Throwable int int
StackMap stack:
aload 1
ldc "segments"
bipush 7
bipush 10
invokestatic org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic:(Lorg/apache/lucene/store/DataInput;Ljava/lang/String;II)I
istore 5
6: bipush 16
newarray 8
astore 7
start local 7 7: aload 1
aload 7
iconst_0
aload 7
arraylength
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readBytes:([BII)V
8: aload 1
lload 2
bipush 36
invokestatic java.lang.Long.toString:(JI)Ljava/lang/String;
invokestatic org.apache.lucene.codecs.CodecUtil.checkIndexHeaderSuffix:(Lorg/apache/lucene/store/DataInput;Ljava/lang/String;)Ljava/lang/String;
pop
9: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
invokestatic org.apache.lucene.util.Version.fromBits:(III)Lorg/apache/lucene/util/Version;
astore 8
start local 8 10: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
istore 9
start local 9 11: aload 8
getfield org.apache.lucene.util.Version.major:I
iload 9
if_icmpge 15
12: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "Creation version ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
13: ldc ".x] can't be greater than the version that wrote the segment infos: ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
14: invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
15: StackMap locals: byte[] org.apache.lucene.util.Version int
StackMap stack:
iload 9
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
getfield org.apache.lucene.util.Version.major:I
iconst_1
isub
if_icmpge 20
16: new org.apache.lucene.index.IndexFormatTooOldException
dup
aload 1
new java.lang.StringBuilder
dup
ldc "This index was initially created with Lucene "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
17: iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ".x while the current version is "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
18: ldc " and Lucene only supports reading the current and previous major versions."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial org.apache.lucene.index.IndexFormatTooOldException.<init>:(Lorg/apache/lucene/store/DataInput;Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
new org.apache.lucene.index.SegmentInfos
dup
iload 9
invokespecial org.apache.lucene.index.SegmentInfos.<init>:(I)V
astore 10
start local 10 21: aload 10
aload 7
putfield org.apache.lucene.index.SegmentInfos.id:[B
22: aload 10
lload 2
putfield org.apache.lucene.index.SegmentInfos.generation:J
23: aload 10
lload 2
putfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
24: aload 10
aload 8
putfield org.apache.lucene.index.SegmentInfos.luceneVersion:Lorg/apache/lucene/util/Version;
25: aload 10
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readLong:()J
putfield org.apache.lucene.index.SegmentInfos.version:J
26: iload 5
bipush 7
if_icmple 29
27: aload 10
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVLong:()J
putfield org.apache.lucene.index.SegmentInfos.counter:J
28: goto 30
29: StackMap locals: org.apache.lucene.index.SegmentInfos
StackMap stack:
aload 10
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
i2l
putfield org.apache.lucene.index.SegmentInfos.counter:J
30: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
istore 11
start local 11 31: iload 11
ifge 33
32: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "invalid segment count: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 11
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
33: StackMap locals: int
StackMap stack:
iload 11
ifle 35
34: aload 10
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readVInt:()I
invokestatic org.apache.lucene.util.Version.fromBits:(III)Lorg/apache/lucene/util/Version;
putfield org.apache.lucene.index.SegmentInfos.minSegmentLuceneVersion:Lorg/apache/lucene/util/Version;
35: StackMap locals:
StackMap stack:
lconst_0
lstore 12
start local 12 36: iconst_0
istore 14
start local 14 37: goto 92
38: StackMap locals: long int
StackMap stack:
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readString:()Ljava/lang/String;
astore 15
start local 15 39: bipush 16
newarray 8
astore 16
start local 16 40: aload 1
aload 16
iconst_0
aload 16
arraylength
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readBytes:([BII)V
41: aload 1
invokestatic org.apache.lucene.index.SegmentInfos.readCodec:(Lorg/apache/lucene/store/DataInput;)Lorg/apache/lucene/codecs/Codec;
astore 17
start local 17 42: aload 17
invokevirtual org.apache.lucene.codecs.Codec.segmentInfoFormat:()Lorg/apache/lucene/codecs/SegmentInfoFormat;
aload 0
aload 15
aload 16
getstatic org.apache.lucene.store.IOContext.READ:Lorg/apache/lucene/store/IOContext;
invokevirtual org.apache.lucene.codecs.SegmentInfoFormat.read:(Lorg/apache/lucene/store/Directory;Ljava/lang/String;[BLorg/apache/lucene/store/IOContext;)Lorg/apache/lucene/index/SegmentInfo;
astore 18
start local 18 43: aload 18
aload 17
invokevirtual org.apache.lucene.index.SegmentInfo.setCodec:(Lorg/apache/lucene/codecs/Codec;)V
44: lload 12
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
i2l
ladd
lstore 12
45: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readLong:()J
lstore 19
start local 19 46: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
istore 21
start local 21 47: iload 21
iflt 48
iload 21
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
if_icmple 49
48: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int java.lang.String byte[] org.apache.lucene.codecs.Codec org.apache.lucene.index.SegmentInfo long int
StackMap stack:
new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "invalid deletion count: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 21
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " vs maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
49: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readLong:()J
lstore 22
start local 22 50: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readLong:()J
lstore 24
start local 24 51: iload 5
bipush 8
if_icmple 52
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
goto 53
StackMap locals: long long
StackMap stack:
52: iconst_0
StackMap locals:
StackMap stack: int
53: istore 26
start local 26 54: iload 26
iflt 55
iload 26
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
if_icmple 56
55: StackMap locals: int
StackMap stack:
new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "invalid deletion count: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 26
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " vs maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
56: StackMap locals:
StackMap stack:
iload 26
iload 21
iadd
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
if_icmple 58
57: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "invalid deletion count: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 26
iload 21
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " vs maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
58: StackMap locals:
StackMap stack:
iload 5
bipush 9
if_icmple 68
59: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readByte:()B
istore 28
start local 28 60: iload 28
tableswitch { // 0 - 1
0: 64
1: 61
default: 66
}
61: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int java.lang.String byte[] org.apache.lucene.codecs.Codec org.apache.lucene.index.SegmentInfo long int long long int top int
StackMap stack:
bipush 16
newarray 8
astore 27
start local 27 62: aload 1
aload 27
iconst_0
aload 27
arraylength
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readBytes:([BII)V
63: goto 69
end local 27 64: StackMap locals:
StackMap stack:
aconst_null
astore 27
start local 27 65: goto 69
end local 27 66: StackMap locals:
StackMap stack:
new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "invalid SegmentCommitInfo ID marker: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 28
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
end local 28 start local 27 67: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int java.lang.String byte[] org.apache.lucene.codecs.Codec org.apache.lucene.index.SegmentInfo long int long long int byte[]
StackMap stack:
goto 69
end local 27 68: StackMap locals:
StackMap stack:
aconst_null
astore 27
start local 27 69: StackMap locals: byte[]
StackMap stack:
new org.apache.lucene.index.SegmentCommitInfo
dup
aload 18
iload 21
iload 26
lload 19
lload 22
lload 24
aload 27
invokespecial org.apache.lucene.index.SegmentCommitInfo.<init>:(Lorg/apache/lucene/index/SegmentInfo;IIJJJ[B)V
astore 28
start local 28 70: aload 28
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readSetOfStrings:()Ljava/util/Set;
invokevirtual org.apache.lucene.index.SegmentCommitInfo.setFieldInfosFiles:(Ljava/util/Set;)V
71: aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
istore 30
start local 30 72: iload 30
ifne 75
73: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
astore 29
start local 29 74: goto 82
end local 29 75: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int java.lang.String byte[] org.apache.lucene.codecs.Codec org.apache.lucene.index.SegmentInfo long int long long int byte[] org.apache.lucene.index.SegmentCommitInfo top int
StackMap stack:
new java.util.HashMap
dup
iload 30
invokespecial java.util.HashMap.<init>:(I)V
astore 31
start local 31 76: iconst_0
istore 32
start local 32 77: goto 80
78: StackMap locals: java.util.Map int
StackMap stack:
aload 31
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readInt:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readSetOfStrings:()Ljava/util/Set;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
79: iinc 32 1
StackMap locals:
StackMap stack:
80: iload 32
iload 30
if_icmplt 78
end local 32 81: aload 31
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
astore 29
end local 31 start local 29 82: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int java.lang.String byte[] org.apache.lucene.codecs.Codec org.apache.lucene.index.SegmentInfo long int long long int byte[] org.apache.lucene.index.SegmentCommitInfo java.util.Map int
StackMap stack:
aload 28
aload 29
invokevirtual org.apache.lucene.index.SegmentCommitInfo.setDocValuesUpdatesFiles:(Ljava/util/Map;)V
83: aload 10
aload 28
invokevirtual org.apache.lucene.index.SegmentInfos.add:(Lorg/apache/lucene/index/SegmentCommitInfo;)V
84: aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.getVersion:()Lorg/apache/lucene/util/Version;
astore 31
start local 31 85: aload 31
aload 10
getfield org.apache.lucene.index.SegmentInfos.minSegmentLuceneVersion:Lorg/apache/lucene/util/Version;
invokevirtual org.apache.lucene.util.Version.onOrAfter:(Lorg/apache/lucene/util/Version;)Z
ifne 87
86: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "segments file recorded minSegmentLuceneVersion="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
getfield org.apache.lucene.index.SegmentInfos.minSegmentLuceneVersion:Lorg/apache/lucene/util/Version;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " but segment="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 18
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " has older version="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 31
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
87: StackMap locals: org.apache.lucene.util.Version
StackMap stack:
aload 10
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
bipush 7
if_icmplt 89
aload 31
getfield org.apache.lucene.util.Version.major:I
aload 10
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
if_icmpge 89
88: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "segments file recorded indexCreatedVersionMajor="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " but segment="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 18
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " has older version="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 31
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
89: StackMap locals:
StackMap stack:
aload 10
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
bipush 7
if_icmplt 91
aload 18
invokevirtual org.apache.lucene.index.SegmentInfo.getMinVersion:()Lorg/apache/lucene/util/Version;
ifnonnull 91
90: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "segments infos must record minVersion with indexCreatedVersionMajor="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
end local 31 end local 30 end local 29 end local 28 end local 27 end local 26 end local 24 end local 22 end local 21 end local 19 end local 18 end local 17 end local 16 end local 15 91: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long int
StackMap stack:
iinc 14 1
StackMap locals:
StackMap stack:
92: iload 14
iload 11
if_icmplt 38
end local 14 93: aload 10
aload 1
invokevirtual org.apache.lucene.store.ChecksumIndexInput.readMapOfStrings:()Ljava/util/Map;
putfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
94: lload 12
invokestatic org.apache.lucene.index.IndexWriter.getActualMaxDocs:()I
i2l
lcmp
ifle 96
95: new org.apache.lucene.index.CorruptIndexException
dup
new java.lang.StringBuilder
dup
ldc "Too many documents: an index cannot exceed "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic org.apache.lucene.index.IndexWriter.getActualMaxDocs:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " but readers have total maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 12
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/DataInput;)V
athrow
96: StackMap locals:
StackMap stack:
aload 10
astore 34
97: iload 5
bipush 7
if_icmplt 100
98: aload 1
aload 4
invokestatic org.apache.lucene.codecs.CodecUtil.checkFooter:(Lorg/apache/lucene/store/ChecksumIndexInput;Ljava/lang/Throwable;)V
99: goto 101
100: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int int byte[] org.apache.lucene.util.Version int org.apache.lucene.index.SegmentInfos int long top top top top top top top top top top top top top top top top top top top top org.apache.lucene.index.SegmentInfos
StackMap stack:
aload 4
invokestatic org.apache.lucene.util.IOUtils.rethrowAlways:(Ljava/lang/Throwable;)Ljava/lang/Error;
athrow
101: StackMap locals:
StackMap stack:
aload 34
areturn
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 102: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int
StackMap stack: java.lang.Throwable
astore 6
start local 6 103: aload 6
astore 4
end local 6 104: iload 5
bipush 7
if_icmplt 107
105: aload 1
aload 4
invokestatic org.apache.lucene.codecs.CodecUtil.checkFooter:(Lorg/apache/lucene/store/ChecksumIndexInput;Ljava/lang/Throwable;)V
106: goto 114
107: StackMap locals:
StackMap stack:
aload 4
invokestatic org.apache.lucene.util.IOUtils.rethrowAlways:(Ljava/lang/Throwable;)Ljava/lang/Error;
athrow
108: StackMap locals:
StackMap stack: java.lang.Throwable
astore 33
109: iload 5
bipush 7
if_icmplt 112
110: aload 1
aload 4
invokestatic org.apache.lucene.codecs.CodecUtil.checkFooter:(Lorg/apache/lucene/store/ChecksumIndexInput;Ljava/lang/Throwable;)V
111: goto 113
112: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int top top top top top top top top top top top top top top top top top top top top top top top top top top top java.lang.Throwable
StackMap stack:
aload 4
invokestatic org.apache.lucene.util.IOUtils.rethrowAlways:(Ljava/lang/Throwable;)Ljava/lang/Error;
athrow
113: StackMap locals:
StackMap stack:
aload 33
athrow
114: StackMap locals: org.apache.lucene.store.Directory org.apache.lucene.store.ChecksumIndexInput long java.lang.Throwable int
StackMap stack:
new java.lang.Error
dup
ldc "Unreachable code"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 115 0 directory Lorg/apache/lucene/store/Directory;
0 115 1 input Lorg/apache/lucene/store/ChecksumIndexInput;
0 115 2 generation J
1 115 4 priorE Ljava/lang/Throwable;
2 115 5 format I
3 102 6 magic I
7 102 7 id [B
10 102 8 luceneVersion Lorg/apache/lucene/util/Version;
11 102 9 indexCreatedVersion I
21 102 10 infos Lorg/apache/lucene/index/SegmentInfos;
31 102 11 numSegments I
36 102 12 totalDocs J
37 93 14 seg I
39 91 15 segName Ljava/lang/String;
40 91 16 segmentID [B
42 91 17 codec Lorg/apache/lucene/codecs/Codec;
43 91 18 info Lorg/apache/lucene/index/SegmentInfo;
46 91 19 delGen J
47 91 21 delCount I
50 91 22 fieldInfosGen J
51 91 24 dvGen J
54 91 26 softDelCount I
62 64 27 sciId [B
65 66 27 sciId [B
67 68 27 sciId [B
69 91 27 sciId [B
60 67 28 marker B
70 91 28 siPerCommit Lorg/apache/lucene/index/SegmentCommitInfo;
74 75 29 dvUpdateFiles Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
82 91 29 dvUpdateFiles Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
72 91 30 numDVFields I
76 82 31 map Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
77 81 32 i I
85 91 31 segmentVersion Lorg/apache/lucene/util/Version;
103 104 6 t Ljava/lang/Throwable;
Exception table:
from to target type
2 97 102 Class java.lang.Throwable
2 97 108 any
102 104 108 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
input
generation
private static org.apache.lucene.codecs.Codec readCodec(org.apache.lucene.store.DataInput);
descriptor: (Lorg/apache/lucene/store/DataInput;)Lorg/apache/lucene/codecs/Codec;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.store.DataInput.readString:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic org.apache.lucene.codecs.Codec.forName:(Ljava/lang/String;)Lorg/apache/lucene/codecs/Codec;
2: areturn
3: StackMap locals: org.apache.lucene.store.DataInput java.lang.String
StackMap stack: java.lang.IllegalArgumentException
astore 2
start local 2 4: aload 1
ldc "Lucene"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Could not load codec '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'. Did you forget to add lucene-backward-codecs.jar?"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
6: StackMap locals: java.lang.IllegalArgumentException
StackMap stack:
aload 2
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 input Lorg/apache/lucene/store/DataInput;
1 7 1 name Ljava/lang/String;
4 7 2 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
1 2 3 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public static final org.apache.lucene.index.SegmentInfos readLatestCommit(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.lucene.index.SegmentInfos$1
dup
aload 0
invokespecial org.apache.lucene.index.SegmentInfos$1.<init>:(Lorg/apache/lucene/store/Directory;)V
1: invokevirtual org.apache.lucene.index.SegmentInfos$1.run:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentInfos
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 directory Lorg/apache/lucene/store/Directory;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
private void write(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.getNextPendingGeneration:()J
lstore 2
start local 2 1: ldc "pending_segments"
2: ldc ""
3: lload 2
4: invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
astore 4
start local 4 5: aload 0
lload 2
putfield org.apache.lucene.index.SegmentInfos.generation:J
6: aconst_null
astore 5
start local 5 7: iconst_0
istore 6
start local 6 8: aload 1
aload 4
getstatic org.apache.lucene.store.IOContext.DEFAULT:Lorg/apache/lucene/store/IOContext;
invokevirtual org.apache.lucene.store.Directory.createOutput:(Ljava/lang/String;Lorg/apache/lucene/store/IOContext;)Lorg/apache/lucene/store/IndexOutput;
astore 5
9: aload 0
aload 5
invokevirtual org.apache.lucene.index.SegmentInfos.write:(Lorg/apache/lucene/store/IndexOutput;)V
10: aload 5
invokevirtual org.apache.lucene.store.IndexOutput.close:()V
11: aload 1
aload 4
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
invokevirtual org.apache.lucene.store.Directory.sync:(Ljava/util/Collection;)V
12: iconst_1
istore 6
13: goto 22
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.Directory long java.lang.String org.apache.lucene.store.IndexOutput int
StackMap stack: java.lang.Throwable
14: astore 7
15: iload 6
ifeq 18
16: aload 0
iconst_1
putfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
17: goto 21
StackMap locals: java.lang.Throwable
StackMap stack:
18: iconst_1
anewarray java.io.Closeable
dup
iconst_0
19: aload 5
aastore
invokestatic org.apache.lucene.util.IOUtils.closeWhileHandlingException:([Ljava/io/Closeable;)V
20: aload 1
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 4
aastore
invokestatic org.apache.lucene.util.IOUtils.deleteFilesIgnoringExceptions:(Lorg/apache/lucene/store/Directory;[Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
aload 7
athrow
22: StackMap locals:
StackMap stack:
iload 6
ifeq 25
23: aload 0
iconst_1
putfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
24: goto 28
StackMap locals:
StackMap stack:
25: iconst_1
anewarray java.io.Closeable
dup
iconst_0
26: aload 5
aastore
invokestatic org.apache.lucene.util.IOUtils.closeWhileHandlingException:([Ljava/io/Closeable;)V
27: aload 1
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 4
aastore
invokestatic org.apache.lucene.util.IOUtils.deleteFilesIgnoringExceptions:(Lorg/apache/lucene/store/Directory;[Ljava/lang/String;)V
28: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/apache/lucene/index/SegmentInfos;
0 29 1 directory Lorg/apache/lucene/store/Directory;
1 29 2 nextGeneration J
5 29 4 segmentFileName Ljava/lang/String;
7 29 5 segnOutput Lorg/apache/lucene/store/IndexOutput;
8 29 6 success Z
Exception table:
from to target type
8 14 14 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
public void write(org.apache.lucene.store.IndexOutput);
descriptor: (Lorg/apache/lucene/store/IndexOutput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=2
start local 0 start local 1 0: aload 1
ldc "segments"
bipush 10
1: invokestatic org.apache.lucene.util.StringHelper.randomId:()[B
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
bipush 36
invokestatic java.lang.Long.toString:(JI)Ljava/lang/String;
2: invokestatic org.apache.lucene.codecs.CodecUtil.writeIndexHeader:(Lorg/apache/lucene/store/DataOutput;Ljava/lang/String;I[BLjava/lang/String;)V
3: aload 1
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
getfield org.apache.lucene.util.Version.major:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
4: aload 1
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
getfield org.apache.lucene.util.Version.minor:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
5: aload 1
getstatic org.apache.lucene.util.Version.LATEST:Lorg/apache/lucene/util/Version;
getfield org.apache.lucene.util.Version.bugfix:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
6: aload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
7: aload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.version:J
invokevirtual org.apache.lucene.store.IndexOutput.writeLong:(J)V
8: aload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.counter:J
invokevirtual org.apache.lucene.store.IndexOutput.writeVLong:(J)V
9: aload 1
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
invokevirtual org.apache.lucene.store.IndexOutput.writeInt:(I)V
10: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
ifle 21
11: aconst_null
astore 2
start local 2 12: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 4
goto 17
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput org.apache.lucene.util.Version top java.util.Iterator
StackMap stack:
13: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 3
start local 3 14: aload 3
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getVersion:()Lorg/apache/lucene/util/Version;
astore 5
start local 5 15: aload 2
ifnull 16
aload 5
aload 2
invokevirtual org.apache.lucene.util.Version.onOrAfter:(Lorg/apache/lucene/util/Version;)Z
ifne 17
16: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput org.apache.lucene.util.Version org.apache.lucene.index.SegmentCommitInfo java.util.Iterator org.apache.lucene.util.Version
StackMap stack:
aload 5
astore 2
end local 5 end local 3 17: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput org.apache.lucene.util.Version top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
18: aload 1
aload 2
getfield org.apache.lucene.util.Version.major:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
19: aload 1
aload 2
getfield org.apache.lucene.util.Version.minor:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
20: aload 1
aload 2
getfield org.apache.lucene.util.Version.bugfix:I
invokevirtual org.apache.lucene.store.IndexOutput.writeVInt:(I)V
end local 2 21: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 3
goto 58
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput top java.util.Iterator
StackMap stack:
22: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 2
start local 2 23: aload 2
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
astore 4
start local 4 24: aload 0
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
bipush 7
if_icmplt 26
aload 4
getfield org.apache.lucene.index.SegmentInfo.minVersion:Lorg/apache/lucene/util/Version;
ifnonnull 26
25: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Segments must record minVersion if they have been created on or after Lucene 7: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput org.apache.lucene.index.SegmentCommitInfo java.util.Iterator org.apache.lucene.index.SegmentInfo
StackMap stack:
aload 1
aload 4
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual org.apache.lucene.store.IndexOutput.writeString:(Ljava/lang/String;)V
27: aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.getId:()[B
astore 5
start local 5 28: aload 5
arraylength
bipush 16
if_icmpeq 30
29: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "cannot write segment: invalid id segment="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "id="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokestatic org.apache.lucene.util.StringHelper.idToString:([B)Ljava/lang/String;
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
30: StackMap locals: byte[]
StackMap stack:
aload 1
aload 5
aload 5
arraylength
invokevirtual org.apache.lucene.store.IndexOutput.writeBytes:([BI)V
31: aload 1
aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.getCodec:()Lorg/apache/lucene/codecs/Codec;
invokevirtual org.apache.lucene.codecs.Codec.getName:()Ljava/lang/String;
invokevirtual org.apache.lucene.store.IndexOutput.writeString:(Ljava/lang/String;)V
32: aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelGen:()J
invokevirtual org.apache.lucene.store.IndexOutput.writeLong:(J)V
33: aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDelCount:()I
istore 6
start local 6 34: iload 6
iflt 35
iload 6
aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
if_icmple 36
35: StackMap locals: int
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "cannot write segment: invalid maxDoc segment="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " delCount="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals:
StackMap stack:
aload 1
iload 6
invokevirtual org.apache.lucene.store.IndexOutput.writeInt:(I)V
37: aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getFieldInfosGen:()J
invokevirtual org.apache.lucene.store.IndexOutput.writeLong:(J)V
38: aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDocValuesGen:()J
invokevirtual org.apache.lucene.store.IndexOutput.writeLong:(J)V
39: aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getSoftDelCount:()I
istore 7
start local 7 40: iload 7
iflt 41
iload 7
aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
if_icmple 42
41: StackMap locals: int
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "cannot write segment: invalid maxDoc segment="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " maxDoc="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " softDelCount="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
42: StackMap locals:
StackMap stack:
aload 1
iload 7
invokevirtual org.apache.lucene.store.IndexOutput.writeInt:(I)V
43: aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getId:()[B
astore 8
start local 8 44: aload 8
ifnull 49
45: aload 1
iconst_1
invokevirtual org.apache.lucene.store.IndexOutput.writeByte:(B)V
46: getstatic org.apache.lucene.index.SegmentInfos.$assertionsDisabled:Z
ifne 47
aload 8
arraylength
bipush 16
if_icmpeq 47
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "invalid SegmentCommitInfo#id: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokestatic java.util.Arrays.toString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
47: StackMap locals: byte[]
StackMap stack:
aload 1
aload 8
iconst_0
aload 8
arraylength
invokevirtual org.apache.lucene.store.IndexOutput.writeBytes:([BII)V
48: goto 50
49: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual org.apache.lucene.store.IndexOutput.writeByte:(B)V
50: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getFieldInfosFiles:()Ljava/util/Set;
invokevirtual org.apache.lucene.store.IndexOutput.writeSetOfStrings:(Ljava/util/Set;)V
51: aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getDocValuesUpdatesFiles:()Ljava/util/Map;
astore 9
start local 9 52: aload 1
aload 9
invokeinterface java.util.Map.size:()I
invokevirtual org.apache.lucene.store.IndexOutput.writeInt:(I)V
53: aload 9
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 11
goto 57
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput org.apache.lucene.index.SegmentCommitInfo java.util.Iterator org.apache.lucene.index.SegmentInfo byte[] int int byte[] java.util.Map top java.util.Iterator
StackMap stack:
54: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 10
start local 10 55: aload 1
aload 10
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual org.apache.lucene.store.IndexOutput.writeInt:(I)V
56: aload 1
aload 10
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.Set
invokevirtual org.apache.lucene.store.IndexOutput.writeSetOfStrings:(Ljava/util/Set;)V
end local 10 57: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 54
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 58: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.IndexOutput top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 22
59: aload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
invokevirtual org.apache.lucene.store.IndexOutput.writeMapOfStrings:(Ljava/util/Map;)V
60: aload 1
invokestatic org.apache.lucene.codecs.CodecUtil.writeFooter:(Lorg/apache/lucene/store/IndexOutput;)V
61: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 62 0 this Lorg/apache/lucene/index/SegmentInfos;
0 62 1 out Lorg/apache/lucene/store/IndexOutput;
12 21 2 minSegmentVersion Lorg/apache/lucene/util/Version;
14 17 3 siPerCommit Lorg/apache/lucene/index/SegmentCommitInfo;
15 17 5 segmentVersion Lorg/apache/lucene/util/Version;
23 58 2 siPerCommit Lorg/apache/lucene/index/SegmentCommitInfo;
24 58 4 si Lorg/apache/lucene/index/SegmentInfo;
28 58 5 segmentID [B
34 58 6 delCount I
40 58 7 softDelCount I
44 58 8 sciId [B
52 58 9 dvUpdatesFiles Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
55 57 10 e Ljava/util/Map$Entry<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public org.apache.lucene.index.SegmentInfos clone();
descriptor: ()Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentInfos
astore 1
start local 1 1: aload 1
new java.util.ArrayList
dup
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
2: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.index.SegmentInfos top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 2
start local 2 4: getstatic org.apache.lucene.index.SegmentInfos.$assertionsDisabled:Z
ifne 5
aload 2
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getCodec:()Lorg/apache/lucene/codecs/Codec;
ifnonnull 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.index.SegmentInfos org.apache.lucene.index.SegmentCommitInfo java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.clone:()Lorg/apache/lucene/index/SegmentCommitInfo;
invokevirtual org.apache.lucene.index.SegmentInfos.add:(Lorg/apache/lucene/index/SegmentCommitInfo;)V
end local 2 6: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.index.SegmentInfos top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 1
new java.util.HashMap
dup
aload 0
getfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
putfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
8: aload 1
9: areturn
end local 1 10: StackMap locals: org.apache.lucene.index.SegmentInfos
StackMap stack: java.lang.CloneNotSupportedException
astore 1
start local 1 11: new java.lang.RuntimeException
dup
ldc "should not happen"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/index/SegmentInfos;
1 10 1 sis Lorg/apache/lucene/index/SegmentInfos;
4 6 2 info Lorg/apache/lucene/index/SegmentCommitInfo;
11 12 1 e Ljava/lang/CloneNotSupportedException;
Exception table:
from to target type
0 9 10 Class java.lang.CloneNotSupportedException
public long getVersion();
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.SegmentInfos.version:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public long getGeneration();
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.SegmentInfos.generation:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public long getLastGeneration();
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.SegmentInfos.lastGeneration:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public static void setInfoStream(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic org.apache.lucene.index.SegmentInfos.infoStream:Ljava/io/PrintStream;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 infoStream Ljava/io/PrintStream;
MethodParameters:
Name Flags
infoStream
public static java.io.PrintStream getInfoStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.lucene.index.SegmentInfos.infoStream:Ljava/io/PrintStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void message(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.index.SegmentInfos.infoStream:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "SIS ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
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
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void updateGeneration(org.apache.lucene.index.SegmentInfos);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
putfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
1: aload 0
aload 1
getfield org.apache.lucene.index.SegmentInfos.generation:J
putfield org.apache.lucene.index.SegmentInfos.generation:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/SegmentInfos;
0 3 1 other Lorg/apache/lucene/index/SegmentInfos;
MethodParameters:
Name Flags
other
void updateGenerationVersionAndCounter(org.apache.lucene.index.SegmentInfos);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.updateGeneration:(Lorg/apache/lucene/index/SegmentInfos;)V
1: aload 0
aload 1
getfield org.apache.lucene.index.SegmentInfos.version:J
putfield org.apache.lucene.index.SegmentInfos.version:J
2: aload 0
aload 1
getfield org.apache.lucene.index.SegmentInfos.counter:J
putfield org.apache.lucene.index.SegmentInfos.counter:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/SegmentInfos;
0 4 1 other Lorg/apache/lucene/index/SegmentInfos;
MethodParameters:
Name Flags
other
public void setNextWriteGeneration(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
lcmp
ifge 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "cannot decrease generation to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " from current generation "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield org.apache.lucene.index.SegmentInfos.generation:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/SegmentInfos;
0 4 1 generation J
MethodParameters:
Name Flags
generation
final void rollbackCommit(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
ifeq 4
1: aload 0
iconst_0
putfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
2: ldc "pending_segments"
ldc ""
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
astore 2
start local 2 3: aload 1
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokestatic org.apache.lucene.util.IOUtils.deleteFilesIgnoringExceptions:(Lorg/apache/lucene/store/Directory;[Ljava/lang/String;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/SegmentInfos;
0 5 1 dir Lorg/apache/lucene/store/Directory;
3 4 2 pending Ljava/lang/String;
MethodParameters:
Name Flags
dir
final void prepareCommit(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "prepareCommit was already called"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.lucene.store.Directory.syncMetaData:()V
3: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.write:(Lorg/apache/lucene/store/Directory;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/SegmentInfos;
0 5 1 dir Lorg/apache/lucene/store/Directory;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dir
public java.util.Collection<java.lang.String> files(boolean);
descriptor: (Z)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 1: iload 1
ifeq 5
2: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 2
aload 3
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals: java.util.HashSet
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
istore 3
start local 3 6: iconst_0
istore 4
start local 4 7: goto 11
8: StackMap locals: int int
StackMap stack:
aload 0
iload 4
invokevirtual org.apache.lucene.index.SegmentInfos.info:(I)Lorg/apache/lucene/index/SegmentCommitInfo;
astore 5
start local 5 9: aload 2
aload 5
invokevirtual org.apache.lucene.index.SegmentCommitInfo.files:()Ljava/util/Collection;
invokevirtual java.util.HashSet.addAll:(Ljava/util/Collection;)Z
pop
end local 5 10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 3
if_icmplt 8
end local 4 12: aload 2
areturn
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/SegmentInfos;
0 13 1 includeSegmentsFile Z
1 13 2 files Ljava/util/HashSet<Ljava/lang/String;>;
3 5 3 segmentFileName Ljava/lang/String;
6 13 3 size I
7 12 4 i I
9 10 5 info Lorg/apache/lucene/index/SegmentCommitInfo;
Exceptions:
throws java.io.IOException
Signature: (Z)Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
includeSegmentsFile
final java.lang.String finishCommit(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "prepareCommit was not called"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: ldc "pending_segments"
ldc ""
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
astore 4
start local 4 4: ldc "segments"
ldc ""
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
invokestatic org.apache.lucene.index.IndexFileNames.fileNameFromGeneration:(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
astore 3
start local 3 5: aload 1
aload 4
aload 3
invokevirtual org.apache.lucene.store.Directory.rename:(Ljava/lang/String;Ljava/lang/String;)V
6: aload 1
invokevirtual org.apache.lucene.store.Directory.syncMetaData:()V
7: iconst_1
istore 2
8: goto 13
StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.Directory int java.lang.String java.lang.String
StackMap stack: java.lang.Throwable
9: astore 5
10: iload 2
ifne 12
11: aload 1
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 3
aastore
invokestatic org.apache.lucene.util.IOUtils.deleteFilesIgnoringExceptions:(Lorg/apache/lucene/store/Directory;[Ljava/lang/String;)V
12: StackMap locals: java.lang.Throwable
StackMap stack:
aload 5
athrow
13: StackMap locals:
StackMap stack:
iload 2
ifne 20
14: aload 1
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 3
aastore
invokestatic org.apache.lucene.util.IOUtils.deleteFilesIgnoringExceptions:(Lorg/apache/lucene/store/Directory;[Ljava/lang/String;)V
end local 4 15: goto 20
end local 3 StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.Directory int
StackMap stack: java.lang.Throwable
16: astore 6
17: iload 2
ifne 19
18: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.rollbackCommit:(Lorg/apache/lucene/store/Directory;)V
19: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.Directory int top top top java.lang.Throwable
StackMap stack:
aload 6
athrow
start local 3 20: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.store.Directory int java.lang.String
StackMap stack:
iload 2
ifne 22
21: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.rollbackCommit:(Lorg/apache/lucene/store/Directory;)V
22: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.apache.lucene.index.SegmentInfos.pendingCommit:Z
23: aload 0
aload 0
getfield org.apache.lucene.index.SegmentInfos.generation:J
putfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
24: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/lucene/index/SegmentInfos;
0 25 1 dir Lorg/apache/lucene/store/Directory;
3 25 2 successRenameAndSync Z
5 16 3 dest Ljava/lang/String;
20 25 3 dest Ljava/lang/String;
4 15 4 src Ljava/lang/String;
Exception table:
from to target type
6 9 9 any
3 16 16 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dir
public final void commit(org.apache.lucene.store.Directory);
descriptor: (Lorg/apache/lucene/store/Directory;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.prepareCommit:(Lorg/apache/lucene/store/Directory;)V
1: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.finishCommit:(Lorg/apache/lucene/store/Directory;)Ljava/lang/String;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/SegmentInfos;
0 3 1 dir Lorg/apache/lucene/store/Directory;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dir
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 org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 10
5: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
iload 3
ifle 7
6: aload 1
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual org.apache.lucene.index.SegmentInfos.info:(I)Lorg/apache/lucene/index/SegmentCommitInfo;
astore 4
start local 4 8: aload 1
aload 4
iconst_0
invokevirtual org.apache.lucene.index.SegmentCommitInfo.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 2
if_icmplt 5
end local 3 11: 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 12 0 this Lorg/apache/lucene/index/SegmentInfos;
1 12 1 buffer Ljava/lang/StringBuilder;
3 12 2 count I
4 11 3 i I
8 9 4 info Lorg/apache/lucene/index/SegmentCommitInfo;
public java.util.Map<java.lang.String, java.lang.String> getUserData();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public void setUserData(java.util.Map<java.lang.String, java.lang.String>, );
descriptor: (Ljava/util/Map;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: aload 0
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
putfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.lucene.index.SegmentInfos.userData:Ljava/util/Map;
4: StackMap locals:
StackMap stack:
iload 2
ifeq 6
5: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.changed:()V
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/SegmentInfos;
0 7 1 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 7 2 doIncrementVersion Z
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Z)V
MethodParameters:
Name Flags
data
doIncrementVersion
void replace(org.apache.lucene.index.SegmentInfos);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.asList:()Ljava/util/List;
invokevirtual org.apache.lucene.index.SegmentInfos.rollbackSegmentInfos:(Ljava/util/List;)V
1: aload 0
aload 1
getfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
putfield org.apache.lucene.index.SegmentInfos.lastGeneration:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/SegmentInfos;
0 3 1 other Lorg/apache/lucene/index/SegmentInfos;
MethodParameters:
Name Flags
other
public int totalMaxDoc();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.lucene.index.SegmentInfos long top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 3
start local 3 3: lload 1
aload 3
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
i2l
ladd
lstore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: getstatic org.apache.lucene.index.SegmentInfos.$assertionsDisabled:Z
ifne 6
lload 1
invokestatic org.apache.lucene.index.IndexWriter.getActualMaxDocs:()I
i2l
lcmp
ifle 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals: org.apache.lucene.index.SegmentInfos long
StackMap stack:
lload 1
invokestatic java.lang.Math.toIntExact:(J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/SegmentInfos;
1 7 1 count J
3 4 3 info Lorg/apache/lucene/index/SegmentCommitInfo;
public void changed();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.apache.lucene.index.SegmentInfos.version:J
lconst_1
ladd
putfield org.apache.lucene.index.SegmentInfos.version:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/SegmentInfos;
void setVersion(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield org.apache.lucene.index.SegmentInfos.version:J
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "newVersion (="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ") cannot be less than current version (="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.SegmentInfos.version:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield org.apache.lucene.index.SegmentInfos.version:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/SegmentInfos;
0 4 1 newVersion J
MethodParameters:
Name Flags
newVersion
void applyMergeChanges(org.apache.lucene.index.MergePolicy$OneMerge, boolean);
descriptor: (Lorg/apache/lucene/index/MergePolicy$OneMerge;Z)V
flags: (0x0000)
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
bipush 7
if_icmplt 2
aload 1
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.minVersion:Lorg/apache/lucene/util/Version;
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "All segments must record the minVersion for indices created on or after Lucene 7"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
aload 1
getfield org.apache.lucene.index.MergePolicy$OneMerge.segments:Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 7
start local 7 7: goto 19
8: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.index.MergePolicy$OneMerge int java.util.Set int int int int
StackMap stack:
getstatic org.apache.lucene.index.SegmentInfos.$assertionsDisabled:Z
ifne 9
iload 6
iload 5
if_icmpge 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 8
start local 8 10: aload 3
aload 8
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 16
11: iload 4
ifne 18
iload 2
ifne 18
12: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 6
aload 1
getfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
13: iconst_1
istore 4
14: iinc 5 1
15: goto 18
16: StackMap locals: org.apache.lucene.index.SegmentCommitInfo
StackMap stack:
aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 5
aload 8
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
17: iinc 5 1
end local 8 18: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
19: iload 6
iload 7
if_icmplt 8
end local 7 end local 6 20: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 5
aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.clear:()V
21: iload 4
ifne 23
iload 2
ifne 23
22: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iconst_0
aload 1
getfield org.apache.lucene.index.MergePolicy$OneMerge.info:Lorg/apache/lucene/index/SegmentCommitInfo;
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
23: StackMap locals:
StackMap stack:
return
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 24 0 this Lorg/apache/lucene/index/SegmentInfos;
0 24 1 merge Lorg/apache/lucene/index/MergePolicy$OneMerge;
0 24 2 dropSegment Z
3 24 3 mergedAway Ljava/util/Set<Lorg/apache/lucene/index/SegmentCommitInfo;>;
4 24 4 inserted Z
5 24 5 newSegIdx I
6 20 6 segIdx I
7 20 7 cnt I
10 18 8 info Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
merge
dropSegment
java.util.List<org.apache.lucene.index.SegmentCommitInfo> createBackupSegmentInfos();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.lucene.index.SegmentInfos java.util.List 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: getstatic org.apache.lucene.index.SegmentInfos.$assertionsDisabled:Z
ifne 4
aload 2
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.getCodec:()Lorg/apache/lucene/codecs/Codec;
ifnonnull 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.List org.apache.lucene.index.SegmentCommitInfo java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.lucene.index.SegmentCommitInfo.clone:()Lorg/apache/lucene/index/SegmentCommitInfo;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/SegmentInfos;
1 7 1 list Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
3 5 2 info Lorg/apache/lucene/index/SegmentCommitInfo;
Signature: ()Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
void rollbackSegmentInfos(java.util.List<org.apache.lucene.index.SegmentCommitInfo>);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.clear:()V
1: aload 0
aload 1
invokevirtual org.apache.lucene.index.SegmentInfos.addAll:(Ljava/lang/Iterable;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/SegmentInfos;
0 3 1 infos Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
Signature: (Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;)V
MethodParameters:
Name Flags
infos
public java.util.Iterator<org.apache.lucene.index.SegmentCommitInfo> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.asList:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
Signature: ()Ljava/util/Iterator<Lorg/apache/lucene/index/SegmentCommitInfo;>;
public java.util.List<org.apache.lucene.index.SegmentCommitInfo> asList();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
Signature: ()Ljava/util/List<Lorg/apache/lucene/index/SegmentCommitInfo;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public void add(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
bipush 7
if_icmplt 2
aload 1
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.minVersion:Lorg/apache/lucene/util/Version;
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "All segments must record the minVersion for indices created on or after Lucene 7"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/SegmentInfos;
0 4 1 si Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
si
public void addAll(java.lang.Iterable<org.apache.lucene.index.SegmentCommitInfo>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.apache.lucene.index.SegmentInfos java.lang.Iterable top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.apache.lucene.index.SegmentInfos.add:(Lorg/apache/lucene/index/SegmentCommitInfo;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/SegmentInfos;
0 5 1 sis Ljava/lang/Iterable<Lorg/apache/lucene/index/SegmentCommitInfo;>;
2 3 2 si Lorg/apache/lucene/index/SegmentCommitInfo;
Signature: (Ljava/lang/Iterable<Lorg/apache/lucene/index/SegmentCommitInfo;>;)V
MethodParameters:
Name Flags
sis
public void clear();
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.SegmentInfos.segments:Ljava/util/List;
invokeinterface java.util.List.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/SegmentInfos;
public boolean remove(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
0 1 1 si Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
si
void remove(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
iload 1
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/SegmentInfos;
0 2 1 index I
MethodParameters:
Name Flags
index
boolean contains(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
0 1 1 si Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
si
int indexOf(org.apache.lucene.index.SegmentCommitInfo);
descriptor: (Lorg/apache/lucene/index/SegmentCommitInfo;)I
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
0 1 1 si Lorg/apache/lucene/index/SegmentCommitInfo;
MethodParameters:
Name Flags
si
public org.apache.lucene.util.Version getCommitLuceneVersion();
descriptor: ()Lorg/apache/lucene/util/Version;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.luceneVersion:Lorg/apache/lucene/util/Version;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public org.apache.lucene.util.Version getMinSegmentLuceneVersion();
descriptor: ()Lorg/apache/lucene/util/Version;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.minSegmentLuceneVersion:Lorg/apache/lucene/util/Version;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public int getIndexCreatedVersionMajor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.SegmentInfos.indexCreatedVersionMajor:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/SegmentInfos;
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.clone:()Lorg/apache/lucene/index/SegmentInfos;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.CloneNotSupportedException
}
Signature: Ljava/lang/Object;Ljava/lang/Cloneable;Ljava/lang/Iterable<Lorg/apache/lucene/index/SegmentCommitInfo;>;
SourceFile: "SegmentInfos.java"
NestMembers:
org.apache.lucene.index.SegmentInfos$1 org.apache.lucene.index.SegmentInfos$FindSegmentsFile
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public OneMerge = org.apache.lucene.index.MergePolicy$OneMerge of org.apache.lucene.index.MergePolicy
org.apache.lucene.index.SegmentInfos$1
public abstract FindSegmentsFile = org.apache.lucene.index.SegmentInfos$FindSegmentsFile of org.apache.lucene.index.SegmentInfos