public final class org.apache.lucene.store.RateLimitedIndexOutput extends org.apache.lucene.store.IndexOutput
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.store.RateLimitedIndexOutput
super_class: org.apache.lucene.store.IndexOutput
{
private final org.apache.lucene.store.IndexOutput delegate;
descriptor: Lorg/apache/lucene/store/IndexOutput;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.store.RateLimiter rateLimiter;
descriptor: Lorg/apache/lucene/store/RateLimiter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long bytesSinceLastPause;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long currentMinPauseCheckBytes;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(org.apache.lucene.store.RateLimiter, org.apache.lucene.store.IndexOutput);
descriptor: (Lorg/apache/lucene/store/RateLimiter;Lorg/apache/lucene/store/IndexOutput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.lang.StringBuilder
dup
ldc "RateLimitedIndexOutput("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual org.apache.lucene.store.IndexOutput.getName:()Ljava/lang/String;
invokespecial org.apache.lucene.store.IndexOutput.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 2
putfield org.apache.lucene.store.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
2: aload 0
aload 1
putfield org.apache.lucene.store.RateLimitedIndexOutput.rateLimiter:Lorg/apache/lucene/store/RateLimiter;
3: aload 0
aload 1
invokevirtual org.apache.lucene.store.RateLimiter.getMinPauseCheckBytes:()J
putfield org.apache.lucene.store.RateLimitedIndexOutput.currentMinPauseCheckBytes:J
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
0 5 1 rateLimiter Lorg/apache/lucene/store/RateLimiter;
0 5 2 delegate Lorg/apache/lucene/store/IndexOutput;
MethodParameters:
Name Flags
rateLimiter final
delegate final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
invokevirtual org.apache.lucene.store.IndexOutput.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
Exceptions:
throws java.io.IOException
public long getFilePointer();
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.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
invokevirtual org.apache.lucene.store.IndexOutput.getFilePointer:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
public long getChecksum();
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.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
invokevirtual org.apache.lucene.store.IndexOutput.getChecksum:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
Exceptions:
throws java.io.IOException
public void writeByte(byte);
descriptor: (B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
lconst_1
ladd
putfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
1: aload 0
invokevirtual org.apache.lucene.store.RateLimitedIndexOutput.checkRate:()V
2: aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
iload 1
invokevirtual org.apache.lucene.store.IndexOutput.writeByte:(B)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
0 4 1 b B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void writeBytes(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
dup
getfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
iload 3
i2l
ladd
putfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
1: aload 0
invokevirtual org.apache.lucene.store.RateLimitedIndexOutput.checkRate:()V
2: aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.delegate:Lorg/apache/lucene/store/IndexOutput;
aload 1
iload 2
iload 3
invokevirtual org.apache.lucene.store.IndexOutput.writeBytes:([BII)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
0 4 1 b [B
0 4 2 offset I
0 4 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
offset
length
private void checkRate();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.currentMinPauseCheckBytes:J
lcmp
ifle 4
1: aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.rateLimiter:Lorg/apache/lucene/store/RateLimiter;
aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
invokevirtual org.apache.lucene.store.RateLimiter.pause:(J)J
pop2
2: aload 0
lconst_0
putfield org.apache.lucene.store.RateLimitedIndexOutput.bytesSinceLastPause:J
3: aload 0
aload 0
getfield org.apache.lucene.store.RateLimitedIndexOutput.rateLimiter:Lorg/apache/lucene/store/RateLimiter;
invokevirtual org.apache.lucene.store.RateLimiter.getMinPauseCheckBytes:()J
putfield org.apache.lucene.store.RateLimitedIndexOutput.currentMinPauseCheckBytes:J
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/store/RateLimitedIndexOutput;
Exceptions:
throws java.io.IOException
}
SourceFile: "RateLimitedIndexOutput.java"