public class org.apache.lucene.store.RAMFile implements org.apache.lucene.util.Accountable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.store.RAMFile
super_class: java.lang.Object
{
protected final java.util.ArrayList<byte[]> buffers;
descriptor: Ljava/util/ArrayList;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/ArrayList<[B>;
long length;
descriptor: J
flags: (0x0000)
org.apache.lucene.store.RAMDirectory directory;
descriptor: Lorg/apache/lucene/store/RAMDirectory;
flags: (0x0000)
protected long sizeInBytes;
descriptor: J
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/store/RAMFile;
void <init>(org.apache.lucene.store.RAMDirectory);
descriptor: (Lorg/apache/lucene/store/RAMDirectory;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
2: aload 0
aload 1
putfield org.apache.lucene.store.RAMFile.directory:Lorg/apache/lucene/store/RAMDirectory;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/store/RAMFile;
0 4 1 directory Lorg/apache/lucene/store/RAMDirectory;
MethodParameters:
Name Flags
directory
public synchronized long getLength();
descriptor: ()J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMFile.length:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
protected synchronized void setLength(long);
descriptor: (J)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield org.apache.lucene.store.RAMFile.length:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/store/RAMFile;
0 2 1 length J
MethodParameters:
Name Flags
length
protected final byte[] addBuffer(int);
descriptor: (I)[B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.apache.lucene.store.RAMFile.newBuffer:(I)[B
astore 2
start local 2 1: aload 0
dup
astore 3
monitorenter
2: aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
aload 2
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
3: aload 0
dup
getfield org.apache.lucene.store.RAMFile.sizeInBytes:J
iload 1
i2l
ladd
putfield org.apache.lucene.store.RAMFile.sizeInBytes:J
4: aload 3
monitorexit
5: goto 8
StackMap locals: org.apache.lucene.store.RAMFile int byte[] org.apache.lucene.store.RAMFile
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMFile.directory:Lorg/apache/lucene/store/RAMDirectory;
ifnull 10
9: aload 0
getfield org.apache.lucene.store.RAMFile.directory:Lorg/apache/lucene/store/RAMDirectory;
getfield org.apache.lucene.store.RAMDirectory.sizeInBytes:Ljava/util/concurrent/atomic/AtomicLong;
iload 1
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndAdd:(J)J
pop2
10: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/store/RAMFile;
0 11 1 size I
1 11 2 buffer [B
Exception table:
from to target type
2 5 6 any
6 7 6 any
MethodParameters:
Name Flags
size
protected final synchronized byte[] getBuffer(int);
descriptor: (I)[B
flags: (0x0034) ACC_PROTECTED, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast byte[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
0 1 1 index I
MethodParameters:
Name Flags
index
protected final synchronized int numBuffers();
descriptor: ()I
flags: (0x0034) ACC_PROTECTED, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
protected byte[] newBuffer(int);
descriptor: (I)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
newarray 8
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
0 1 1 size I
MethodParameters:
Name Flags
size
public synchronized long ramBytesUsed();
descriptor: ()J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMFile.sizeInBytes:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "(length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.store.RAMFile.length: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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMFile;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMFile.length:J
aload 0
getfield org.apache.lucene.store.RAMFile.length:J
bipush 32
lushr
lxor
l2i
istore 1
start local 1 1: aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.lucene.store.RAMFile int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 2
start local 2 3: bipush 31
iload 1
imul
aload 2
invokestatic java.util.Arrays.hashCode:([B)I
iadd
istore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/store/RAMFile;
1 6 1 h I
3 4 2 block [B
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnonnull 2
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 3
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.lucene.store.RAMFile
astore 2
start local 2 4: aload 0
getfield org.apache.lucene.store.RAMFile.length:J
aload 2
getfield org.apache.lucene.store.RAMFile.length:J
lcmp
ifeq 5
iconst_0
ireturn
5: StackMap locals: org.apache.lucene.store.RAMFile
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
aload 2
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmpeq 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 8: goto 12
9: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast byte[]
aload 2
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast byte[]
invokestatic java.util.Arrays.equals:([B[B)Z
ifne 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
aload 0
getfield org.apache.lucene.store.RAMFile.buffers:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 9
end local 3 13: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/lucene/store/RAMFile;
0 14 1 obj Ljava/lang/Object;
4 14 2 other Lorg/apache/lucene/store/RAMFile;
8 13 3 i I
MethodParameters:
Name Flags
obj
}
SourceFile: "RAMFile.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()