public final class org.apache.lucene.util.FrequencyTrackingRingBuffer implements org.apache.lucene.util.Accountable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.FrequencyTrackingRingBuffer
super_class: java.lang.Object
{
private static final long BASE_RAM_BYTES_USED;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int maxSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int[] buffer;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int position;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag frequencies;
descriptor: Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
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.util.FrequencyTrackingRingBuffer.$assertionsDisabled:Z
3: ldc Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
putstatic org.apache.lucene.util.FrequencyTrackingRingBuffer.BASE_RAM_BYTES_USED:J
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
iconst_2
if_icmpge 3
2: new java.lang.IllegalArgumentException
dup
ldc "maxSize must be at least 2"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.lucene.util.FrequencyTrackingRingBuffer int int
StackMap stack:
aload 0
iload 1
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.maxSize:I
4: aload 0
iload 1
newarray 10
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.buffer:[I
5: aload 0
iconst_0
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
6: aload 0
new org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag
dup
iload 1
invokespecial org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.<init>:(I)V
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
7: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.buffer:[I
iload 2
invokestatic java.util.Arrays.fill:([II)V
8: iconst_0
istore 3
start local 3 9: goto 12
10: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.add:(I)I
pop
11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 1
if_icmplt 10
end local 3 13: getstatic org.apache.lucene.util.FrequencyTrackingRingBuffer.$assertionsDisabled:Z
ifne 14
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.frequency:(I)I
iload 1
if_icmpeq 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
0 15 1 maxSize I
0 15 2 sentinel I
9 13 3 i I
MethodParameters:
Name Flags
maxSize
sentinel
public long ramBytesUsed();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.FrequencyTrackingRingBuffer.BASE_RAM_BYTES_USED:J
1: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.ramBytesUsed:()J
2: ladd
3: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.buffer:[I
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([I)J
4: ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
public void add(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.buffer:[I
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
iaload
istore 2
start local 2 1: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.remove:(I)Z
istore 3
start local 3 2: getstatic org.apache.lucene.util.FrequencyTrackingRingBuffer.$assertionsDisabled:Z
ifne 3
iload 3
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.buffer:[I
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
iload 1
iastore
4: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
iload 1
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.add:(I)I
pop
5: aload 0
dup
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
iconst_1
iadd
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
6: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.maxSize:I
if_icmpne 8
7: aload 0
iconst_0
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer.position:I
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
0 9 1 i I
1 9 2 removed I
2 9 3 removedFromBag Z
MethodParameters:
Name Flags
i
public int frequency(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
iload 1
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.frequency:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
0 1 1 key I
MethodParameters:
Name Flags
key
java.util.Map<java.lang.Integer, java.lang.Integer> asFrequencyMap();
descriptor: ()Ljava/util/Map;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer.frequencies:Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.asMap:()Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
Signature: ()Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/Integer;>;
}
SourceFile: "FrequencyTrackingRingBuffer.java"
NestMembers:
org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag
InnerClasses:
private IntBag = org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag of org.apache.lucene.util.FrequencyTrackingRingBuffer