final class org.apache.lucene.util.packed.PackedWriter extends org.apache.lucene.util.packed.PackedInts$Writer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.packed.PackedWriter
super_class: org.apache.lucene.util.packed.PackedInts$Writer
{
boolean finished;
descriptor: Z
flags: (0x0000)
final org.apache.lucene.util.packed.PackedInts$Format format;
descriptor: Lorg/apache/lucene/util/packed/PackedInts$Format;
flags: (0x0010) ACC_FINAL
final org.apache.lucene.util.packed.BulkOperation encoder;
descriptor: Lorg/apache/lucene/util/packed/BulkOperation;
flags: (0x0010) ACC_FINAL
final byte[] nextBlocks;
descriptor: [B
flags: (0x0010) ACC_FINAL
final long[] nextValues;
descriptor: [J
flags: (0x0010) ACC_FINAL
final int iterations;
descriptor: I
flags: (0x0010) ACC_FINAL
int off;
descriptor: I
flags: (0x0000)
int written;
descriptor: I
flags: (0x0000)
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/util/packed/PackedWriter;
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.packed.PackedWriter.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.apache.lucene.util.packed.PackedInts$Format, org.apache.lucene.store.DataOutput, int, int, int);
descriptor: (Lorg/apache/lucene/util/packed/PackedInts$Format;Lorg/apache/lucene/store/DataOutput;III)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 2
iload 3
iload 4
invokespecial org.apache.lucene.util.packed.PackedInts$Writer.<init>:(Lorg/apache/lucene/store/DataOutput;II)V
1: aload 0
aload 1
putfield org.apache.lucene.util.packed.PackedWriter.format:Lorg/apache/lucene/util/packed/PackedInts$Format;
2: aload 0
aload 1
iload 4
invokestatic org.apache.lucene.util.packed.BulkOperation.of:(Lorg/apache/lucene/util/packed/PackedInts$Format;I)Lorg/apache/lucene/util/packed/BulkOperation;
putfield org.apache.lucene.util.packed.PackedWriter.encoder:Lorg/apache/lucene/util/packed/BulkOperation;
3: aload 0
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.encoder:Lorg/apache/lucene/util/packed/BulkOperation;
iload 3
iload 5
invokevirtual org.apache.lucene.util.packed.BulkOperation.computeIterations:(II)I
putfield org.apache.lucene.util.packed.PackedWriter.iterations:I
4: aload 0
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.iterations:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.encoder:Lorg/apache/lucene/util/packed/BulkOperation;
invokevirtual org.apache.lucene.util.packed.BulkOperation.byteBlockCount:()I
imul
newarray 8
putfield org.apache.lucene.util.packed.PackedWriter.nextBlocks:[B
5: aload 0
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.iterations:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.encoder:Lorg/apache/lucene/util/packed/BulkOperation;
invokevirtual org.apache.lucene.util.packed.BulkOperation.byteValueCount:()I
imul
newarray 11
putfield org.apache.lucene.util.packed.PackedWriter.nextValues:[J
6: aload 0
iconst_0
putfield org.apache.lucene.util.packed.PackedWriter.off:I
7: aload 0
iconst_0
putfield org.apache.lucene.util.packed.PackedWriter.written:I
8: aload 0
iconst_0
putfield org.apache.lucene.util.packed.PackedWriter.finished:Z
9: return
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 10 0 this Lorg/apache/lucene/util/packed/PackedWriter;
0 10 1 format Lorg/apache/lucene/util/packed/PackedInts$Format;
0 10 2 out Lorg/apache/lucene/store/DataOutput;
0 10 3 valueCount I
0 10 4 bitsPerValue I
0 10 5 mem I
MethodParameters:
Name Flags
format
out
valueCount
bitsPerValue
mem
protected org.apache.lucene.util.packed.PackedInts$Format getFormat();
descriptor: ()Lorg/apache/lucene/util/packed/PackedInts$Format;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.format:Lorg/apache/lucene/util/packed/PackedInts$Format;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/packed/PackedWriter;
public void add(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.lucene.util.packed.PackedWriter.$assertionsDisabled:Z
ifne 1
lload 1
invokestatic org.apache.lucene.util.packed.PackedInts.unsignedBitsRequired:(J)I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.bitsPerValue:I
if_icmple 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.packed.PackedWriter.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.finished:Z
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.valueCount:I
iconst_m1
if_icmpeq 4
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.written:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.valueCount:I
if_icmplt 4
3: new java.io.EOFException
dup
ldc "Writing past end of stream"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextValues:[J
aload 0
dup
getfield org.apache.lucene.util.packed.PackedWriter.off:I
dup_x1
iconst_1
iadd
putfield org.apache.lucene.util.packed.PackedWriter.off:I
lload 1
lastore
5: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.off:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextValues:[J
arraylength
if_icmpne 7
6: aload 0
invokevirtual org.apache.lucene.util.packed.PackedWriter.flush:()V
7: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.lucene.util.packed.PackedWriter.written:I
iconst_1
iadd
putfield org.apache.lucene.util.packed.PackedWriter.written:I
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/util/packed/PackedWriter;
0 9 1 v J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public void finish();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.packed.PackedWriter.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.finished:Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.valueCount:I
iconst_m1
if_icmpeq 5
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
lconst_0
invokevirtual org.apache.lucene.util.packed.PackedWriter.add:(J)V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.written:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.valueCount:I
if_icmplt 3
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.util.packed.PackedWriter.flush:()V
6: aload 0
iconst_1
putfield org.apache.lucene.util.packed.PackedWriter.finished:Z
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/util/packed/PackedWriter;
Exceptions:
throws java.io.IOException
private void flush();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.encoder:Lorg/apache/lucene/util/packed/BulkOperation;
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextValues:[J
iconst_0
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextBlocks:[B
iconst_0
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.iterations:I
invokevirtual org.apache.lucene.util.packed.BulkOperation.encode:([JI[BII)V
1: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.format:Lorg/apache/lucene/util/packed/PackedInts$Format;
iconst_2
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.off:I
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.bitsPerValue:I
invokevirtual org.apache.lucene.util.packed.PackedInts$Format.byteCount:(III)J
l2i
istore 1
start local 1 2: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.out:Lorg/apache/lucene/store/DataOutput;
aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextBlocks:[B
iload 1
invokevirtual org.apache.lucene.store.DataOutput.writeBytes:([BI)V
3: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.nextValues:[J
lconst_0
invokestatic java.util.Arrays.fill:([JJ)V
4: aload 0
iconst_0
putfield org.apache.lucene.util.packed.PackedWriter.off:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/util/packed/PackedWriter;
2 6 1 blockCount I
Exceptions:
throws java.io.IOException
public int ord();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.packed.PackedWriter.written:I
iconst_1
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/packed/PackedWriter;
}
SourceFile: "PackedWriter.java"
InnerClasses:
public Format = org.apache.lucene.util.packed.PackedInts$Format of org.apache.lucene.util.packed.PackedInts
public abstract Writer = org.apache.lucene.util.packed.PackedInts$Writer of org.apache.lucene.util.packed.PackedInts