public class org.apache.lucene.store.RAMInputStream extends org.apache.lucene.store.IndexInput implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.store.RAMInputStream
super_class: org.apache.lucene.store.IndexInput
{
private final org.apache.lucene.store.RAMFile file;
descriptor: Lorg/apache/lucene/store/RAMFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long length;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] currentBuffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int currentBufferIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int bufferPosition;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int bufferLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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/store/RAMInputStream;
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.store.RAMInputStream.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, org.apache.lucene.store.RAMFile);
descriptor: (Ljava/lang/String;Lorg/apache/lucene/store/RAMFile;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 2
getfield org.apache.lucene.store.RAMFile.length:J
invokespecial org.apache.lucene.store.RAMInputStream.<init>:(Ljava/lang/String;Lorg/apache/lucene/store/RAMFile;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/store/RAMInputStream;
0 2 1 name Ljava/lang/String;
0 2 2 f Lorg/apache/lucene/store/RAMFile;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
f
void <init>(java.lang.String, org.apache.lucene.store.RAMFile, long);
descriptor: (Ljava/lang/String;Lorg/apache/lucene/store/RAMFile;J)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new java.lang.StringBuilder
dup
ldc "RAMInputStream(name="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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;
invokespecial org.apache.lucene.store.IndexInput.<init>:(Ljava/lang/String;)V
1: aload 0
aload 2
putfield org.apache.lucene.store.RAMInputStream.file:Lorg/apache/lucene/store/RAMFile;
2: aload 0
lload 3
putfield org.apache.lucene.store.RAMInputStream.length:J
3: lload 3
ldc 1024
ldiv
ldc 2147483647
lcmp
iflt 5
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "RAMInputStream too large length="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: org.apache.lucene.store.RAMInputStream java.lang.String org.apache.lucene.store.RAMFile long
StackMap stack:
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.setCurrentBuffer:()V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/store/RAMInputStream;
0 7 1 name Ljava/lang/String;
0 7 2 f Lorg/apache/lucene/store/RAMFile;
0 7 3 length J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
f
length
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMInputStream;
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMInputStream.length:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMInputStream;
public byte readByte();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferLength:I
if_icmpne 2
1: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.nextBuffer:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
ifnonnull 4
3: new java.io.EOFException
dup
invokespecial java.io.EOFException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
aload 0
dup
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
dup_x1
iconst_1
iadd
putfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
baload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/store/RAMInputStream;
Exceptions:
throws java.io.IOException
public void readBytes(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: goto 13
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferLength:I
if_icmpne 3
2: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.nextBuffer:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
ifnonnull 5
4: new java.io.EOFException
dup
invokespecial java.io.EOFException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferLength:I
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
isub
istore 4
start local 4 6: iload 3
iload 4
if_icmpge 7
iload 3
goto 8
StackMap locals: int
StackMap stack:
7: iload 4
StackMap locals:
StackMap stack: int
8: istore 5
start local 5 9: aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
aload 1
iload 2
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: iload 2
iload 5
iadd
istore 2
11: iload 3
iload 5
isub
istore 3
12: aload 0
dup
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
iload 5
iadd
putfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
end local 5 end local 4 13: StackMap locals:
StackMap stack:
iload 3
ifgt 1
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/lucene/store/RAMInputStream;
0 15 1 b [B
0 15 2 offset I
0 15 3 len I
6 13 4 remainInBuffer I
9 13 5 bytesToCopy I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
offset
len
public long getFilePointer();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
i2l
ldc 1024
lmul
aload 0
getfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
i2l
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RAMInputStream;
public void seek(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: lload 1
ldc 1024
ldiv
l2i
istore 3
start local 3 1: iload 3
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
if_icmpeq 4
2: aload 0
iload 3
putfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
3: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.setCurrentBuffer:()V
4: StackMap locals: int
StackMap stack:
aload 0
lload 1
ldc 1024
lrem
l2i
putfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
5: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.getFilePointer:()J
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.length:()J
lcmp
ifle 7
6: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "seek beyond EOF: pos="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.getFilePointer:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.length:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/store/RAMInputStream;
0 8 1 pos J
1 8 3 newBufferIndex I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
private void nextBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.getFilePointer:()J
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.length:()J
lcmp
iflt 2
1: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "cannot read another byte at EOF: pos="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.getFilePointer:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " vs length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.length:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
iconst_1
iadd
putfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
3: aload 0
invokevirtual org.apache.lucene.store.RAMInputStream.setCurrentBuffer:()V
4: getstatic org.apache.lucene.store.RAMInputStream.$assertionsDisabled:Z
ifne 5
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
ifnonnull 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.apache.lucene.store.RAMInputStream.bufferPosition:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/store/RAMInputStream;
Exceptions:
throws java.io.IOException
private final void setCurrentBuffer();
descriptor: ()V
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
aload 0
getfield org.apache.lucene.store.RAMInputStream.file:Lorg/apache/lucene/store/RAMFile;
invokevirtual org.apache.lucene.store.RAMFile.numBuffers:()I
if_icmpge 6
1: aload 0
aload 0
getfield org.apache.lucene.store.RAMInputStream.file:Lorg/apache/lucene/store/RAMFile;
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
invokevirtual org.apache.lucene.store.RAMFile.getBuffer:(I)[B
putfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
2: getstatic org.apache.lucene.store.RAMInputStream.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
ldc 1024
aload 0
getfield org.apache.lucene.store.RAMInputStream.currentBufferIndex:I
i2l
lmul
lstore 1
start local 1 4: aload 0
ldc 1024
aload 0
getfield org.apache.lucene.store.RAMInputStream.length:J
lload 1
lsub
invokestatic java.lang.Math.min:(JJ)J
l2i
putfield org.apache.lucene.store.RAMInputStream.bufferLength:I
end local 1 5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.lucene.store.RAMInputStream.currentBuffer:[B
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/store/RAMInputStream;
4 5 1 bufferStart J
Exceptions:
throws java.io.IOException
public org.apache.lucene.store.IndexInput slice(java.lang.String, long, long);
descriptor: (Ljava/lang/String;JJ)Lorg/apache/lucene/store/IndexInput;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lload 2
lconst_0
lcmp
iflt 1
lload 4
lconst_0
lcmp
iflt 1
lload 2
lload 4
ladd
aload 0
getfield org.apache.lucene.store.RAMInputStream.length:J
lcmp
ifle 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "slice() "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " out of bounds: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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:
new org.apache.lucene.store.RAMInputStream$1
dup
aload 0
aload 0
aload 1
invokevirtual org.apache.lucene.store.RAMInputStream.getFullSliceDescription:(Ljava/lang/String;)Ljava/lang/String;
aload 0
getfield org.apache.lucene.store.RAMInputStream.file:Lorg/apache/lucene/store/RAMFile;
lload 2
lload 4
ladd
lload 2
lload 4
invokespecial org.apache.lucene.store.RAMInputStream$1.<init>:(Lorg/apache/lucene/store/RAMInputStream;Ljava/lang/String;Lorg/apache/lucene/store/RAMFile;JJJ)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/store/RAMInputStream;
0 3 1 sliceDescription Ljava/lang/String;
0 3 2 offset J
0 3 4 sliceLength J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sliceDescription
offset final
sliceLength final
}
SourceFile: "RAMInputStream.java"
NestMembers:
org.apache.lucene.store.RAMInputStream$1
InnerClasses:
org.apache.lucene.store.RAMInputStream$1
RuntimeVisibleAnnotations:
java.lang.Deprecated()