final class org.apache.lucene.index.IndexFileDeleter implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.index.IndexFileDeleter
super_class: java.lang.Object
{
private java.util.Map<java.lang.String, org.apache.lucene.index.IndexFileDeleter$RefCount> refCounts;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/lucene/index/IndexFileDeleter$RefCount;>;
private java.util.List<org.apache.lucene.index.IndexFileDeleter$CommitPoint> commits;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;>;
private final java.util.List<java.lang.String> lastFiles;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private java.util.List<org.apache.lucene.index.IndexFileDeleter$CommitPoint> commitsToDelete;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;>;
private final org.apache.lucene.util.InfoStream infoStream;
descriptor: Lorg/apache/lucene/util/InfoStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.store.Directory directoryOrig;
descriptor: Lorg/apache/lucene/store/Directory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.store.Directory directory;
descriptor: Lorg/apache/lucene/store/Directory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.index.IndexDeletionPolicy policy;
descriptor: Lorg/apache/lucene/index/IndexDeletionPolicy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final boolean startingCommitDeleted;
descriptor: Z
flags: (0x0010) ACC_FINAL
private org.apache.lucene.index.SegmentInfos lastSegmentInfos;
descriptor: Lorg/apache/lucene/index/SegmentInfos;
flags: (0x0002) ACC_PRIVATE
public static boolean VERBOSE_REF_COUNTS;
descriptor: Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private final org.apache.lucene.index.IndexWriter writer;
descriptor: Lorg/apache/lucene/index/IndexWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/lucene/index/IndexFileDeleter;
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.IndexFileDeleter.$assertionsDisabled:Z
3: iconst_0
putstatic org.apache.lucene.index.IndexFileDeleter.VERBOSE_REF_COUNTS:Z
return
LocalVariableTable:
Start End Slot Name Signature
private boolean locked();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
ifnull 1
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/IndexFileDeleter;
public void <init>(java.lang.String[], org.apache.lucene.store.Directory, org.apache.lucene.store.Directory, org.apache.lucene.index.IndexDeletionPolicy, org.apache.lucene.index.SegmentInfos, org.apache.lucene.util.InfoStream, org.apache.lucene.index.IndexWriter, boolean, boolean);
descriptor: ([Ljava/lang/String;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/IndexDeletionPolicy;Lorg/apache/lucene/index/SegmentInfos;Lorg/apache/lucene/util/InfoStream;Lorg/apache/lucene/index/IndexWriter;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=19, args_size=10
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
5: aload 7
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
aload 6
putfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
7: aload 0
aload 7
putfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
8: aload 5
invokevirtual org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
astore 10
start local 10 9: aload 6
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 11
10: aload 6
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: current segments file is \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\"; deletionPolicy="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
11: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String
StackMap stack:
aload 0
aload 4
putfield org.apache.lucene.index.IndexFileDeleter.policy:Lorg/apache/lucene/index/IndexDeletionPolicy;
12: aload 0
aload 2
putfield org.apache.lucene.index.IndexFileDeleter.directoryOrig:Lorg/apache/lucene/store/Directory;
13: aload 0
aload 3
putfield org.apache.lucene.index.IndexFileDeleter.directory:Lorg/apache/lucene/store/Directory;
14: aconst_null
astore 11
start local 11 15: aload 10
ifnull 35
16: getstatic org.apache.lucene.index.IndexFileNames.CODEC_FILE_PATTERN:Ljava/util/regex/Pattern;
ldc ""
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 12
start local 12 17: aload 1
dup
astore 16
arraylength
istore 15
iconst_0
istore 14
goto 34
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.regex.Matcher top int int java.lang.String[]
StackMap stack:
18: aload 16
iload 14
aaload
astore 13
start local 13 19: aload 12
aload 13
invokevirtual java.util.regex.Matcher.reset:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
pop
20: aload 13
ldc "write.lock"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 33
aload 12
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 21
aload 13
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 21
aload 13
ldc "pending_segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 33
21: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.regex.Matcher java.lang.String int int java.lang.String[]
StackMap stack:
aload 0
aload 13
invokevirtual org.apache.lucene.index.IndexFileDeleter.getRefCount:(Ljava/lang/String;)Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
pop
22: aload 13
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 33
aload 13
ldc "segments.gen"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 33
23: aload 6
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 25
24: aload 6
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: load commit \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 13
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
25: StackMap locals:
StackMap stack:
aload 2
aload 13
invokestatic org.apache.lucene.index.SegmentInfos.readCommit:(Lorg/apache/lucene/store/Directory;Ljava/lang/String;)Lorg/apache/lucene/index/SegmentInfos;
astore 17
start local 17 26: new org.apache.lucene.index.IndexFileDeleter$CommitPoint
dup
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
aload 2
aload 17
invokespecial org.apache.lucene.index.IndexFileDeleter$CommitPoint.<init>:(Ljava/util/Collection;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;)V
astore 18
start local 18 27: aload 17
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
aload 5
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
lcmp
ifne 29
28: aload 18
astore 11
29: StackMap locals: org.apache.lucene.index.SegmentInfos org.apache.lucene.index.IndexFileDeleter$CommitPoint
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
aload 18
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
30: aload 0
aload 17
iconst_1
invokevirtual org.apache.lucene.index.IndexFileDeleter.incRef:(Lorg/apache/lucene/index/SegmentInfos;Z)V
31: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastSegmentInfos:Lorg/apache/lucene/index/SegmentInfos;
ifnull 32
aload 17
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastSegmentInfos:Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
lcmp
ifle 33
32: StackMap locals:
StackMap stack:
aload 0
aload 17
putfield org.apache.lucene.index.IndexFileDeleter.lastSegmentInfos:Lorg/apache/lucene/index/SegmentInfos;
end local 18 end local 17 end local 13 33: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.regex.Matcher top int int java.lang.String[]
StackMap stack:
iinc 14 1
StackMap locals:
StackMap stack:
34: iload 14
iload 15
if_icmplt 18
end local 12 35: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint
StackMap stack:
aload 11
ifnonnull 46
aload 10
ifnull 46
iload 8
ifeq 46
36: aconst_null
astore 12
start local 12 37: aload 2
aload 10
invokestatic org.apache.lucene.index.SegmentInfos.readCommit:(Lorg/apache/lucene/store/Directory;Ljava/lang/String;)Lorg/apache/lucene/index/SegmentInfos;
astore 12
38: goto 41
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint org.apache.lucene.index.SegmentInfos
StackMap stack: java.io.IOException
39: astore 13
start local 13 40: new org.apache.lucene.index.CorruptIndexException
dup
ldc "unable to read current segments_N file"
aload 10
aload 13
invokespecial org.apache.lucene.index.CorruptIndexException.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 13 41: StackMap locals:
StackMap stack:
aload 6
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 43
42: aload 6
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "forced open of current segments file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual org.apache.lucene.index.SegmentInfos.getSegmentsFileName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
43: StackMap locals:
StackMap stack:
new org.apache.lucene.index.IndexFileDeleter$CommitPoint
dup
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
aload 2
aload 12
invokespecial org.apache.lucene.index.IndexFileDeleter$CommitPoint.<init>:(Ljava/util/Collection;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;)V
astore 11
44: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
45: aload 0
aload 12
iconst_1
invokevirtual org.apache.lucene.index.IndexFileDeleter.incRef:(Lorg/apache/lucene/index/SegmentInfos;Z)V
end local 12 46: StackMap locals:
StackMap stack:
iload 9
ifeq 48
47: aload 0
aload 5
iconst_0
invokevirtual org.apache.lucene.index.IndexFileDeleter.checkpoint:(Lorg/apache/lucene/index/SegmentInfos;Z)V
48: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokestatic org.apache.lucene.util.CollectionUtil.timSort:(Ljava/util/List;)V
49: new java.util.HashSet
dup
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 12
start local 12 50: aload 2
invokevirtual org.apache.lucene.store.Directory.getPendingDeletions:()Ljava/util/Set;
astore 13
start local 13 51: aload 13
invokeinterface java.util.Set.isEmpty:()Z
ifne 53
52: aload 12
aload 13
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
53: StackMap locals: java.util.Collection java.util.Set
StackMap stack:
aload 5
aload 12
aload 6
invokestatic org.apache.lucene.index.IndexFileDeleter.inflateGens:(Lorg/apache/lucene/index/SegmentInfos;Ljava/util/Collection;Lorg/apache/lucene/util/InfoStream;)V
54: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 14
start local 14 55: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 16
goto 65
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.Collection java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
56: aload 16
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 15
start local 15 57: aload 15
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$RefCount
astore 17
start local 17 58: aload 15
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 18
start local 18 59: aload 17
getfield org.apache.lucene.index.IndexFileDeleter$RefCount.count:I
ifne 65
60: aload 18
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 62
61: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "file \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 18
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" has refCount=0, which should never happen on init"
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
62: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.Collection java.util.Set java.util.Set java.util.Map$Entry java.util.Iterator org.apache.lucene.index.IndexFileDeleter$RefCount java.lang.String
StackMap stack:
aload 6
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 64
63: aload 6
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: removing unreferenced file \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 18
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
64: StackMap locals:
StackMap stack:
aload 14
aload 18
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 18 end local 17 end local 15 65: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.Collection java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
aload 16
invokeinterface java.util.Iterator.hasNext:()Z
ifne 56
66: aload 0
aload 14
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFiles:(Ljava/util/Collection;)V
67: aload 4
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokevirtual org.apache.lucene.index.IndexDeletionPolicy.onInit:(Ljava/util/List;)V
68: aload 0
aload 5
iconst_0
invokevirtual org.apache.lucene.index.IndexFileDeleter.checkpoint:(Lorg/apache/lucene/index/SegmentInfos;Z)V
69: aload 11
ifnonnull 72
70: aload 0
iconst_0
putfield org.apache.lucene.index.IndexFileDeleter.startingCommitDeleted:Z
71: goto 73
72: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.lang.String[] org.apache.lucene.store.Directory org.apache.lucene.store.Directory org.apache.lucene.index.IndexDeletionPolicy org.apache.lucene.index.SegmentInfos org.apache.lucene.util.InfoStream org.apache.lucene.index.IndexWriter int int java.lang.String org.apache.lucene.index.IndexFileDeleter$CommitPoint java.util.Collection java.util.Set java.util.Set
StackMap stack:
aload 0
aload 11
invokevirtual org.apache.lucene.index.IndexFileDeleter$CommitPoint.isDeleted:()Z
putfield org.apache.lucene.index.IndexFileDeleter.startingCommitDeleted:Z
73: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteCommits:()V
74: return
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 75 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 75 1 files [Ljava/lang/String;
0 75 2 directoryOrig Lorg/apache/lucene/store/Directory;
0 75 3 directory Lorg/apache/lucene/store/Directory;
0 75 4 policy Lorg/apache/lucene/index/IndexDeletionPolicy;
0 75 5 segmentInfos Lorg/apache/lucene/index/SegmentInfos;
0 75 6 infoStream Lorg/apache/lucene/util/InfoStream;
0 75 7 writer Lorg/apache/lucene/index/IndexWriter;
0 75 8 initialIndexExists Z
0 75 9 isReaderInit Z
9 75 10 currentSegmentsFile Ljava/lang/String;
15 75 11 currentCommitPoint Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;
17 35 12 m Ljava/util/regex/Matcher;
19 33 13 fileName Ljava/lang/String;
26 33 17 sis Lorg/apache/lucene/index/SegmentInfos;
27 33 18 commitPoint Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;
37 46 12 sis Lorg/apache/lucene/index/SegmentInfos;
40 41 13 e Ljava/io/IOException;
50 75 12 relevantFiles Ljava/util/Collection<Ljava/lang/String;>;
51 75 13 pendingDeletions Ljava/util/Set<Ljava/lang/String;>;
55 75 14 toDelete Ljava/util/Set<Ljava/lang/String;>;
57 65 15 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/apache/lucene/index/IndexFileDeleter$RefCount;>;
58 65 17 rc Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
59 65 18 fileName Ljava/lang/String;
Exception table:
from to target type
37 38 39 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
files
directoryOrig
directory
policy
segmentInfos
infoStream
writer
initialIndexExists
isReaderInit
static void inflateGens(org.apache.lucene.index.SegmentInfos, java.util.Collection<java.lang.String>, org.apache.lucene.util.InfoStream);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;Ljava/util/Collection;Lorg/apache/lucene/util/InfoStream;)V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=13, args_size=3
start local 0 start local 1 start local 2 0: ldc -9223372036854775808
lstore 3
start local 3 1: ldc -9223372036854775808
lstore 5
start local 5 2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 7
start local 7 3: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 9
goto 28
StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map top java.util.Iterator
StackMap stack:
4: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 5: aload 8
ldc "segments.gen"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
aload 8
ldc "write.lock"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
6: aload 8
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
7: aload 8
invokestatic org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName:(Ljava/lang/String;)J
lload 3
invokestatic java.lang.Math.max:(JJ)J
lstore 3
8: goto 28
StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map java.lang.String java.util.Iterator
StackMap stack: java.lang.NumberFormatException
9: pop
10: goto 28
StackMap locals:
StackMap stack:
11: aload 8
ldc "pending_segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
12: aload 8
bipush 8
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName:(Ljava/lang/String;)J
lload 3
invokestatic java.lang.Math.max:(JJ)J
lstore 3
13: goto 28
StackMap locals:
StackMap stack: java.lang.NumberFormatException
14: pop
15: goto 28
16: StackMap locals:
StackMap stack:
aload 8
invokestatic org.apache.lucene.index.IndexFileNames.parseSegmentName:(Ljava/lang/String;)Ljava/lang/String;
astore 10
start local 10 17: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 18
aload 10
ldc "_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 18
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "wtf? file="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
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
18: StackMap locals: java.lang.String
StackMap stack:
aload 8
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc ".tmp"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 20
19: goto 28
20: StackMap locals:
StackMap stack:
lload 5
aload 10
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
bipush 36
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;I)J
invokestatic java.lang.Math.max:(JJ)J
lstore 5
21: aload 7
aload 10
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 11
start local 11 22: aload 11
ifnonnull 24
23: lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 11
24: StackMap locals: java.lang.Long
StackMap stack:
aload 11
invokevirtual java.lang.Long.longValue:()J
aload 8
invokestatic org.apache.lucene.index.IndexFileNames.parseGeneration:(Ljava/lang/String;)J
invokestatic java.lang.Math.max:(JJ)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 11
25: goto 27
StackMap locals:
StackMap stack: java.lang.NumberFormatException
26: pop
27: StackMap locals:
StackMap stack:
aload 7
aload 10
aload 11
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 11 end local 10 end local 8 28: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
29: aload 0
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.getGeneration:()J
lload 3
invokestatic java.lang.Math.max:(JJ)J
invokevirtual org.apache.lucene.index.SegmentInfos.setNextWriteGeneration:(J)V
30: aload 0
getfield org.apache.lucene.index.SegmentInfos.counter:J
lconst_1
lload 5
ladd
lcmp
ifge 34
31: aload 2
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 33
32: aload 2
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: inflate infos.counter to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lconst_1
lload 5
ladd
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs current="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.index.SegmentInfos.counter:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
33: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map
StackMap stack:
aload 0
lconst_1
lload 5
ladd
putfield org.apache.lucene.index.SegmentInfos.counter:J
34: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.SegmentInfos.iterator:()Ljava/util/Iterator;
astore 9
goto 51
StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map top java.util.Iterator
StackMap stack:
35: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.lucene.index.SegmentCommitInfo
astore 8
start local 8 36: aload 7
aload 8
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 10
start local 10 37: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 38
aload 10
ifnonnull 38
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
38: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map org.apache.lucene.index.SegmentCommitInfo java.util.Iterator java.lang.Long
StackMap stack:
aload 10
invokevirtual java.lang.Long.longValue:()J
lstore 11
start local 11 39: aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteDelGen:()J
lload 11
lconst_1
ladd
lcmp
ifge 43
40: aload 2
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 42
41: aload 2
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: seg="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " set nextWriteDelGen="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 11
lconst_1
ladd
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs current="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteDelGen:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
42: StackMap locals: long
StackMap stack:
aload 8
lload 11
lconst_1
ladd
invokevirtual org.apache.lucene.index.SegmentCommitInfo.setNextWriteDelGen:(J)V
43: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteFieldInfosGen:()J
lload 11
lconst_1
ladd
lcmp
ifge 47
44: aload 2
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 46
45: aload 2
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: seg="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " set nextWriteFieldInfosGen="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 11
lconst_1
ladd
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs current="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteFieldInfosGen:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
46: StackMap locals:
StackMap stack:
aload 8
lload 11
lconst_1
ladd
invokevirtual org.apache.lucene.index.SegmentCommitInfo.setNextWriteFieldInfosGen:(J)V
47: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteDocValuesGen:()J
lload 11
lconst_1
ladd
lcmp
ifge 51
48: aload 2
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 50
49: aload 2
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "init: seg="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
getfield org.apache.lucene.index.SegmentCommitInfo.info:Lorg/apache/lucene/index/SegmentInfo;
getfield org.apache.lucene.index.SegmentInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " set nextWriteDocValuesGen="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 11
lconst_1
ladd
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs current="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual org.apache.lucene.index.SegmentCommitInfo.getNextWriteDocValuesGen:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
50: StackMap locals:
StackMap stack:
aload 8
lload 11
lconst_1
ladd
invokevirtual org.apache.lucene.index.SegmentCommitInfo.setNextWriteDocValuesGen:(J)V
end local 11 end local 10 end local 8 51: StackMap locals: org.apache.lucene.index.SegmentInfos java.util.Collection org.apache.lucene.util.InfoStream long long java.util.Map top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 35
52: return
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 infos Lorg/apache/lucene/index/SegmentInfos;
0 53 1 files Ljava/util/Collection<Ljava/lang/String;>;
0 53 2 infoStream Lorg/apache/lucene/util/InfoStream;
1 53 3 maxSegmentGen J
2 53 5 maxSegmentName J
3 53 7 maxPerSegmentGen Ljava/util/Map<Ljava/lang/String;Ljava/lang/Long;>;
5 28 8 fileName Ljava/lang/String;
17 28 10 segmentName Ljava/lang/String;
22 28 11 curGen Ljava/lang/Long;
36 51 8 info Lorg/apache/lucene/index/SegmentCommitInfo;
37 51 10 gen Ljava/lang/Long;
39 51 11 genLong J
Exception table:
from to target type
7 8 9 Class java.lang.NumberFormatException
12 13 14 Class java.lang.NumberFormatException
24 25 26 Class java.lang.NumberFormatException
Signature: (Lorg/apache/lucene/index/SegmentInfos;Ljava/util/Collection<Ljava/lang/String;>;Lorg/apache/lucene/util/InfoStream;)V
MethodParameters:
Name Flags
infos
files
infoStream
void ensureOpen();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
iconst_0
invokevirtual org.apache.lucene.index.IndexWriter.ensureOpen:(Z)V
1: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
invokevirtual org.apache.lucene.index.IndexWriter.getTragicException:()Ljava/lang/Throwable;
ifnull 3
2: new org.apache.lucene.store.AlreadyClosedException
dup
ldc "refusing to delete any files: this IndexWriter hit an unrecoverable exception"
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
invokevirtual org.apache.lucene.index.IndexWriter.getTragicException:()Ljava/lang/Throwable;
invokespecial org.apache.lucene.store.AlreadyClosedException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/IndexFileDeleter;
Exceptions:
throws org.apache.lucene.store.AlreadyClosedException
boolean isClosed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.ensureOpen:()V
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack: org.apache.lucene.store.AlreadyClosedException
pop
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/IndexFileDeleter;
Exception table:
from to target type
0 1 2 Class org.apache.lucene.store.AlreadyClosedException
private void deleteCommits();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
start local 1 1: iload 1
ifle 32
2: aconst_null
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 13
5: StackMap locals: int java.lang.Throwable int
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$CommitPoint
astore 4
start local 4 6: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "deleteCommits: now decRef commit \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual org.apache.lucene.index.IndexFileDeleter$CommitPoint.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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
8: StackMap locals: org.apache.lucene.index.IndexFileDeleter$CommitPoint
StackMap stack:
aload 0
aload 4
getfield org.apache.lucene.index.IndexFileDeleter$CommitPoint.files:Ljava/util/Collection;
invokevirtual org.apache.lucene.index.IndexFileDeleter.decRef:(Ljava/util/Collection;)V
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 5
start local 5 11: aload 2
aload 5
invokestatic org.apache.lucene.util.IOUtils.useOrSuppress:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 2
end local 5 end local 4 12: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
iload 1
if_icmplt 5
end local 3 14: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
invokeinterface java.util.List.clear:()V
15: aload 2
ifnull 17
16: aload 2
invokestatic org.apache.lucene.util.IOUtils.rethrowAlways:(Ljava/lang/Throwable;)Ljava/lang/Error;
athrow
17: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
18: iconst_0
istore 3
start local 3 19: iconst_0
istore 4
start local 4 20: goto 27
21: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$CommitPoint
astore 5
start local 5 22: aload 5
getfield org.apache.lucene.index.IndexFileDeleter$CommitPoint.deleted:Z
ifne 26
23: iload 4
iload 3
if_icmpeq 25
24: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
iload 4
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$CommitPoint
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
25: StackMap locals: org.apache.lucene.index.IndexFileDeleter$CommitPoint
StackMap stack:
iinc 4 1
26: StackMap locals:
StackMap stack:
iinc 3 1
end local 5 27: StackMap locals:
StackMap stack:
iload 3
iload 1
if_icmplt 21
28: goto 31
29: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
iload 1
iconst_1
isub
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
30: iinc 1 -1
31: StackMap locals:
StackMap stack:
iload 1
iload 4
if_icmpgt 29
end local 4 end local 3 end local 2 32: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/apache/lucene/index/IndexFileDeleter;
1 33 1 size I
3 32 2 firstThrowable Ljava/lang/Throwable;
4 14 3 i I
6 12 4 commit Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;
11 12 5 t Ljava/lang/Throwable;
19 32 3 readFrom I
20 32 4 writeTo I
22 27 5 commit Lorg/apache/lucene/index/IndexFileDeleter$CommitPoint;
Exception table:
from to target type
8 9 10 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
void refresh();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=1
start local 0 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 2: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.directory:Lorg/apache/lucene/store/Directory;
invokevirtual org.apache.lucene.store.Directory.listAll:()[Ljava/lang/String;
astore 2
start local 2 3: getstatic org.apache.lucene.index.IndexFileNames.CODEC_FILE_PATTERN:Ljava/util/regex/Pattern;
ldc ""
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 16
6: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Set java.lang.String[] java.util.regex.Matcher int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 7: aload 3
aload 5
invokevirtual java.util.regex.Matcher.reset:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
pop
8: aload 5
ldc "write.lock"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 15
9: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 5
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 15
10: aload 3
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 12
aload 5
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 12
11: aload 5
ldc "pending_segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
12: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 14
13: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "refresh: removing newly created unreferenced file \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
aload 1
aload 5
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 5 15: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
aload 2
arraylength
if_icmplt 6
end local 4 17: aload 0
aload 1
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFiles:(Ljava/util/Collection;)V
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/lucene/index/IndexFileDeleter;
2 19 1 toDelete Ljava/util/Set<Ljava/lang/String;>;
3 19 2 files [Ljava/lang/String;
4 19 3 m Ljava/util/regex/Matcher;
5 17 4 i I
7 15 5 fileName Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 8
2: aload 0
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokevirtual org.apache.lucene.index.IndexFileDeleter.decRef:(Ljava/util/Collection;)V
3: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 1
5: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokeinterface java.util.List.clear:()V
6: aload 1
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokeinterface java.util.List.clear:()V
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/index/IndexFileDeleter;
Exception table:
from to target type
2 4 4 any
Exceptions:
throws java.io.IOException
void revisitPolicy();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
ldc "now revisitPolicy"
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 6
4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.policy:Lorg/apache/lucene/index/IndexDeletionPolicy;
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokevirtual org.apache.lucene.index.IndexDeletionPolicy.onCommit:(Ljava/util/List;)V
5: aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteCommits:()V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/IndexFileDeleter;
Exceptions:
throws java.io.IOException
public void checkpoint(org.apache.lucene.index.SegmentInfos, boolean);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 3: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "now checkpoint \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.writer:Lorg/apache/lucene/index/IndexWriter;
aload 1
invokevirtual org.apache.lucene.index.IndexWriter.toLiveInfos:(Lorg/apache/lucene/index/SegmentInfos;)Lorg/apache/lucene/index/SegmentInfos;
invokevirtual org.apache.lucene.index.IndexWriter.segString:(Ljava/lang/Iterable;)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 1
invokevirtual org.apache.lucene.index.SegmentInfos.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " segments "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "; isCommit = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
5: StackMap locals: long
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.incRef:(Lorg/apache/lucene/index/SegmentInfos;Z)V
6: iload 2
ifeq 11
7: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
new org.apache.lucene.index.IndexFileDeleter$CommitPoint
dup
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commitsToDelete:Ljava/util/List;
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.directoryOrig:Lorg/apache/lucene/store/Directory;
aload 1
invokespecial org.apache.lucene.index.IndexFileDeleter$CommitPoint.<init>:(Ljava/util/Collection;Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/index/SegmentInfos;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.policy:Lorg/apache/lucene/index/IndexDeletionPolicy;
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.commits:Ljava/util/List;
invokevirtual org.apache.lucene.index.IndexDeletionPolicy.onCommit:(Ljava/util/List;)V
9: aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteCommits:()V
10: goto 18
11: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokevirtual org.apache.lucene.index.IndexFileDeleter.decRef:(Ljava/util/Collection;)V
12: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 5
14: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokeinterface java.util.List.clear:()V
15: aload 5
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
invokeinterface java.util.List.clear:()V
17: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.lastFiles:Ljava/util/List;
aload 1
iconst_0
invokevirtual org.apache.lucene.index.SegmentInfos.files:(Z)Ljava/util/Collection;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
18: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 21
19: invokestatic java.lang.System.nanoTime:()J
lstore 5
start local 5 20: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
lload 5
lload 3
lsub
ldc 1000000
ldiv
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " msec to checkpoint"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 22 1 segmentInfos Lorg/apache/lucene/index/SegmentInfos;
0 22 2 isCommit Z
3 22 3 t0 J
20 21 5 t1 J
Exception table:
from to target type
11 13 13 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
segmentInfos
isCommit
void incRef(org.apache.lucene.index.SegmentInfos, boolean);
descriptor: (Lorg/apache/lucene/index/SegmentInfos;Z)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
iload 2
invokevirtual org.apache.lucene.index.SegmentInfos.files:(Z)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.lucene.index.IndexFileDeleter org.apache.lucene.index.SegmentInfos int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.apache.lucene.index.IndexFileDeleter.incRef:(Ljava/lang/String;)V
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 6 1 segmentInfos Lorg/apache/lucene/index/SegmentInfos;
0 6 2 isCommit Z
3 4 3 fileName Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
segmentInfos
isCommit
void incRef(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.incRef:(Ljava/lang/String;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 6 1 files Ljava/util/Collection<Ljava/lang/String;>;
3 4 2 file Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
files
void incRef(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.index.IndexFileDeleter.getRefCount:(Ljava/lang/String;)Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
astore 2
start local 2 2: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 5
3: getstatic org.apache.lucene.index.IndexFileDeleter.VERBOSE_REF_COUNTS:Z
ifeq 5
4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc " IncRef \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\": pre-incr count is "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
getfield org.apache.lucene.index.IndexFileDeleter$RefCount.count:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
5: StackMap locals: org.apache.lucene.index.IndexFileDeleter$RefCount
StackMap stack:
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter$RefCount.IncRef:()I
pop
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 7 1 fileName Ljava/lang/String;
2 7 2 rc Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
MethodParameters:
Name Flags
fileName
void decRef(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0000)
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set java.lang.Throwable top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 5: aload 0
aload 4
invokevirtual org.apache.lucene.index.IndexFileDeleter.decRef:(Ljava/lang/String;)Z
ifeq 10
6: aload 2
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: goto 10
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set java.lang.Throwable java.lang.String java.util.Iterator
StackMap stack: java.lang.Throwable
8: astore 6
start local 6 9: aload 3
aload 6
invokestatic org.apache.lucene.util.IOUtils.useOrSuppress:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 3
end local 6 end local 4 10: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set java.lang.Throwable top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: aload 0
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFiles:(Ljava/util/Collection;)V
12: goto 15
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set java.lang.Throwable
StackMap stack: java.lang.Throwable
13: astore 4
start local 4 14: aload 3
aload 4
invokestatic org.apache.lucene.util.IOUtils.useOrSuppress:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 3
end local 4 15: StackMap locals:
StackMap stack:
aload 3
ifnull 17
16: aload 3
invokestatic org.apache.lucene.util.IOUtils.rethrowAlways:(Ljava/lang/Throwable;)Ljava/lang/Error;
athrow
17: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 18 1 files Ljava/util/Collection<Ljava/lang/String;>;
2 18 2 toDelete Ljava/util/Set<Ljava/lang/String;>;
3 18 3 firstThrowable Ljava/lang/Throwable;
5 10 4 file Ljava/lang/String;
9 10 6 t Ljava/lang/Throwable;
14 15 4 t Ljava/lang/Throwable;
Exception table:
from to target type
5 7 8 Class java.lang.Throwable
11 12 13 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
files
private boolean decRef(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.index.IndexFileDeleter.getRefCount:(Ljava/lang/String;)Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
astore 2
start local 2 2: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 5
3: getstatic org.apache.lucene.index.IndexFileDeleter.VERBOSE_REF_COUNTS:Z
ifeq 5
4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc " DecRef \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\": pre-decr count is "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
getfield org.apache.lucene.index.IndexFileDeleter$RefCount.count:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
5: StackMap locals: org.apache.lucene.index.IndexFileDeleter$RefCount
StackMap stack:
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter$RefCount.DecRef:()I
ifne 8
6: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 9 1 fileName Ljava/lang/String;
2 9 2 rc Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
MethodParameters:
Name Flags
fileName
void decRef(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: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
invokevirtual org.apache.lucene.index.SegmentInfos.files:(Z)Ljava/util/Collection;
invokevirtual org.apache.lucene.index.IndexFileDeleter.decRef:(Ljava/util/Collection;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 3 1 segmentInfos Lorg/apache/lucene/index/SegmentInfos;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
segmentInfos
public boolean exists(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.lucene.index.IndexFileDeleter.getRefCount:(Ljava/lang/String;)Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
getfield org.apache.lucene.index.IndexFileDeleter$RefCount.count:I
ifle 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 5 1 fileName Ljava/lang/String;
MethodParameters:
Name Flags
fileName
private org.apache.lucene.index.IndexFileDeleter$RefCount getRefCount(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 5
2: new org.apache.lucene.index.IndexFileDeleter$RefCount
dup
aload 1
invokespecial org.apache.lucene.index.IndexFileDeleter$RefCount.<init>:(Ljava/lang/String;)V
astore 2
start local 2 3: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: goto 6
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$RefCount
astore 2
start local 2 6: StackMap locals: org.apache.lucene.index.IndexFileDeleter$RefCount
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 7 1 fileName Ljava/lang/String;
3 5 2 rc Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
6 7 2 rc Lorg/apache/lucene/index/IndexFileDeleter$RefCount;
MethodParameters:
Name Flags
fileName
void deleteNewFiles(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 5
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.refCounts:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.index.IndexFileDeleter$RefCount
getfield org.apache.lucene.index.IndexFileDeleter$RefCount.count:I
ifne 8
5: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set java.lang.String java.util.Iterator
StackMap stack:
aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 7
6: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "will delete new file \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 8: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.util.Set top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: aload 0
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFiles:(Ljava/util/Collection;)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 11 1 files Ljava/util/Collection<Ljava/lang/String;>;
2 11 2 toDelete Ljava/util/Set<Ljava/lang/String;>;
4 8 3 fileName Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
files
private void deleteFiles(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.index.IndexFileDeleter.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.locked:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.index.IndexFileDeleter.ensureOpen:()V
2: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
invokevirtual org.apache.lucene.util.InfoStream.isEnabled:(Ljava/lang/String;)Z
ifeq 5
3: aload 1
invokeinterface java.util.Collection.size:()I
ifle 5
4: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.infoStream:Lorg/apache/lucene/util/InfoStream;
ldc "IFD"
new java.lang.StringBuilder
dup
ldc "delete "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.lucene.util.InfoStream.message:(Ljava/lang/String;Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection top java.util.Iterator
StackMap stack:
6: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 7: aload 2
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
8: goto 10
9: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.lang.String java.util.Iterator
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFile:(Ljava/lang/String;)V
end local 2 10: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
11: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 16
StackMap locals:
StackMap stack:
12: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 13: aload 2
ldc "segments"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
14: goto 16
15: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection java.lang.String java.util.Iterator
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.lucene.index.IndexFileDeleter.deleteFile:(Ljava/lang/String;)V
end local 2 16: StackMap locals: org.apache.lucene.index.IndexFileDeleter java.util.Collection top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 18 1 names Ljava/util/Collection<Ljava/lang/String;>;
7 10 2 name Ljava/lang/String;
13 16 2 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
names
private void deleteFile(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.IndexFileDeleter.directory:Lorg/apache/lucene/store/Directory;
aload 1
invokevirtual org.apache.lucene.store.Directory.deleteFile:(Ljava/lang/String;)V
1: goto 5
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: getstatic org.apache.lucene.util.Constants.WINDOWS:Z
ifne 5
4: aload 2
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/IndexFileDeleter;
0 6 1 fileName Ljava/lang/String;
3 5 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.nio.file.NoSuchFileException
0 1 2 Class java.io.FileNotFoundException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fileName
}
SourceFile: "IndexFileDeleter.java"
NestMembers:
org.apache.lucene.index.IndexFileDeleter$CommitPoint org.apache.lucene.index.IndexFileDeleter$RefCount
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
private final CommitPoint = org.apache.lucene.index.IndexFileDeleter$CommitPoint of org.apache.lucene.index.IndexFileDeleter
private final RefCount = org.apache.lucene.index.IndexFileDeleter$RefCount of org.apache.lucene.index.IndexFileDeleter