class org.apache.lucene.index.BinaryDocValuesWriter extends org.apache.lucene.index.DocValuesWriter<org.apache.lucene.index.BinaryDocValues>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.lucene.index.BinaryDocValuesWriter
super_class: org.apache.lucene.index.DocValuesWriter
{
private static final int MAX_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int BLOCK_BITS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 15
private final org.apache.lucene.util.PagedBytes bytes;
descriptor: Lorg/apache/lucene/util/PagedBytes;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.store.DataOutput bytesOut;
descriptor: Lorg/apache/lucene/store/DataOutput;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.util.Counter iwBytesUsed;
descriptor: Lorg/apache/lucene/util/Counter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.lucene.util.packed.PackedLongValues$Builder lengths;
descriptor: Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.apache.lucene.index.DocsWithFieldSet docsWithField;
descriptor: Lorg/apache/lucene/index/DocsWithFieldSet;
flags: (0x0002) ACC_PRIVATE
private final org.apache.lucene.index.FieldInfo fieldInfo;
descriptor: Lorg/apache/lucene/index/FieldInfo;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long bytesUsed;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int lastDocID;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int maxLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.apache.lucene.util.packed.PackedLongValues finalLengths;
descriptor: Lorg/apache/lucene/util/packed/PackedLongValues;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.lucene.util.ArrayUtil.MAX_ARRAY_LENGTH:I
putstatic org.apache.lucene.index.BinaryDocValuesWriter.MAX_LENGTH:I
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.apache.lucene.index.FieldInfo, org.apache.lucene.util.Counter);
descriptor: (Lorg/apache/lucene/index/FieldInfo;Lorg/apache/lucene/util/Counter;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.lucene.index.DocValuesWriter.<init>:()V
1: aload 0
iconst_m1
putfield org.apache.lucene.index.BinaryDocValuesWriter.lastDocID:I
2: aload 0
iconst_0
putfield org.apache.lucene.index.BinaryDocValuesWriter.maxLength:I
3: aload 0
aload 1
putfield org.apache.lucene.index.BinaryDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
4: aload 0
new org.apache.lucene.util.PagedBytes
dup
bipush 15
invokespecial org.apache.lucene.util.PagedBytes.<init>:(I)V
putfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
5: aload 0
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
invokevirtual org.apache.lucene.util.PagedBytes.getDataOutput:()Lorg/apache/lucene/util/PagedBytes$PagedBytesDataOutput;
putfield org.apache.lucene.index.BinaryDocValuesWriter.bytesOut:Lorg/apache/lucene/store/DataOutput;
6: aload 0
fconst_0
invokestatic org.apache.lucene.util.packed.PackedLongValues.deltaPackedBuilder:(F)Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
putfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
7: aload 0
aload 2
putfield org.apache.lucene.index.BinaryDocValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
8: aload 0
new org.apache.lucene.index.DocsWithFieldSet
dup
invokespecial org.apache.lucene.index.DocsWithFieldSet.<init>:()V
putfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
9: aload 0
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.ramBytesUsed:()J
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.ramBytesUsed:()J
ladd
putfield org.apache.lucene.index.BinaryDocValuesWriter.bytesUsed:J
10: aload 2
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytesUsed:J
invokevirtual org.apache.lucene.util.Counter.addAndGet:(J)J
pop2
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/index/BinaryDocValuesWriter;
0 12 1 fieldInfo Lorg/apache/lucene/index/FieldInfo;
0 12 2 iwBytesUsed Lorg/apache/lucene/util/Counter;
MethodParameters:
Name Flags
fieldInfo
iwBytesUsed
public void addValue(int, org.apache.lucene.util.BytesRef);
descriptor: (ILorg/apache/lucene/util/BytesRef;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lastDocID:I
if_icmpgt 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "DocValuesField \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
getfield org.apache.lucene.index.FieldInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" appears more than once in this document (only one value is allowed per field)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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:
aload 2
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "field=\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
getfield org.apache.lucene.index.FieldInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\": null value not allowed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.lucene.util.BytesRef.length:I
getstatic org.apache.lucene.index.BinaryDocValuesWriter.MAX_LENGTH:I
if_icmple 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "DocValuesField \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
getfield org.apache.lucene.index.FieldInfo.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" is too large, must be <= "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.apache.lucene.index.BinaryDocValuesWriter.MAX_LENGTH:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 2
getfield org.apache.lucene.util.BytesRef.length:I
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.maxLength:I
invokestatic java.lang.Math.max:(II)I
putfield org.apache.lucene.index.BinaryDocValuesWriter.maxLength:I
7: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
aload 2
getfield org.apache.lucene.util.BytesRef.length:I
i2l
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.add:(J)Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
pop
8: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytesOut:Lorg/apache/lucene/store/DataOutput;
aload 2
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 2
getfield org.apache.lucene.util.BytesRef.offset:I
aload 2
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual org.apache.lucene.store.DataOutput.writeBytes:([BII)V
9: goto 12
StackMap locals:
StackMap stack: java.io.IOException
10: astore 3
start local 3 11: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 12: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
iload 1
invokevirtual org.apache.lucene.index.DocsWithFieldSet.add:(I)V
13: aload 0
invokevirtual org.apache.lucene.index.BinaryDocValuesWriter.updateBytesUsed:()V
14: aload 0
iload 1
putfield org.apache.lucene.index.BinaryDocValuesWriter.lastDocID:I
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/lucene/index/BinaryDocValuesWriter;
0 16 1 docID I
0 16 2 value Lorg/apache/lucene/util/BytesRef;
11 12 3 ioe Ljava/io/IOException;
Exception table:
from to target type
8 9 10 Class java.io.IOException
MethodParameters:
Name Flags
docID
value
private void updateBytesUsed();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.ramBytesUsed:()J
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
invokevirtual org.apache.lucene.util.PagedBytes.ramBytesUsed:()J
ladd
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.ramBytesUsed:()J
ladd
lstore 1
start local 1 1: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
lload 1
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytesUsed:J
lsub
invokevirtual org.apache.lucene.util.Counter.addAndGet:(J)J
pop2
2: aload 0
lload 1
putfield org.apache.lucene.index.BinaryDocValuesWriter.bytesUsed:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/BinaryDocValuesWriter;
1 4 1 newBytesUsed J
org.apache.lucene.index.BinaryDocValues getDocValues();
descriptor: ()Lorg/apache/lucene/index/BinaryDocValues;
flags: (0x0000)
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
ifnonnull 2
1: aload 0
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.build:()Lorg/apache/lucene/util/packed/PackedLongValues;
putfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
2: StackMap locals:
StackMap stack:
new org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues
dup
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.maxLength:I
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
invokevirtual org.apache.lucene.util.PagedBytes.getDataInput:()Lorg/apache/lucene/util/PagedBytes$PagedBytesDataInput;
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
invokespecial org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues.<init>:(Lorg/apache/lucene/util/packed/PackedLongValues;ILorg/apache/lucene/store/DataInput;Lorg/apache/lucene/search/DocIdSetIterator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/BinaryDocValuesWriter;
public void flush(org.apache.lucene.index.SegmentWriteState, org.apache.lucene.index.Sorter$DocMap, org.apache.lucene.codecs.DocValuesConsumer);
descriptor: (Lorg/apache/lucene/index/SegmentWriteState;Lorg/apache/lucene/index/Sorter$DocMap;Lorg/apache/lucene/codecs/DocValuesConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
iconst_0
invokevirtual org.apache.lucene.util.PagedBytes.freeze:(Z)Lorg/apache/lucene/util/PagedBytes$Reader;
pop
1: aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
ifnonnull 3
2: aload 0
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.lengths:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.build:()Lorg/apache/lucene/util/packed/PackedLongValues;
putfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
3: StackMap locals:
StackMap stack:
aload 2
ifnull 8
4: new org.apache.lucene.index.BinaryDocValuesWriter$BinaryDVs
dup
aload 1
getfield org.apache.lucene.index.SegmentWriteState.segmentInfo:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
aload 2
5: new org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues
dup
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.finalLengths:Lorg/apache/lucene/util/packed/PackedLongValues;
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.maxLength:I
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.bytes:Lorg/apache/lucene/util/PagedBytes;
invokevirtual org.apache.lucene.util.PagedBytes.getDataInput:()Lorg/apache/lucene/util/PagedBytes$PagedBytesDataInput;
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
invokespecial org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues.<init>:(Lorg/apache/lucene/util/packed/PackedLongValues;ILorg/apache/lucene/store/DataInput;Lorg/apache/lucene/search/DocIdSetIterator;)V
6: invokespecial org.apache.lucene.index.BinaryDocValuesWriter$BinaryDVs.<init>:(ILorg/apache/lucene/index/Sorter$DocMap;Lorg/apache/lucene/index/BinaryDocValues;)V
astore 4
start local 4 7: goto 9
end local 4 8: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 9: StackMap locals: org.apache.lucene.index.BinaryDocValuesWriter$BinaryDVs
StackMap stack:
aload 3
aload 0
getfield org.apache.lucene.index.BinaryDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
10: new org.apache.lucene.index.BinaryDocValuesWriter$1
dup
aload 0
aload 4
invokespecial org.apache.lucene.index.BinaryDocValuesWriter$1.<init>:(Lorg/apache/lucene/index/BinaryDocValuesWriter;Lorg/apache/lucene/index/BinaryDocValuesWriter$BinaryDVs;)V
11: invokevirtual org.apache.lucene.codecs.DocValuesConsumer.addBinaryField:(Lorg/apache/lucene/index/FieldInfo;Lorg/apache/lucene/codecs/DocValuesProducer;)V
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/index/BinaryDocValuesWriter;
0 13 1 state Lorg/apache/lucene/index/SegmentWriteState;
0 13 2 sortMap Lorg/apache/lucene/index/Sorter$DocMap;
0 13 3 dvConsumer Lorg/apache/lucene/codecs/DocValuesConsumer;
7 8 4 sorted Lorg/apache/lucene/index/BinaryDocValuesWriter$BinaryDVs;
9 13 4 sorted Lorg/apache/lucene/index/BinaryDocValuesWriter$BinaryDVs;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
state
sortMap
dvConsumer
org.apache.lucene.search.DocIdSetIterator getDocValues();
descriptor: ()Lorg/apache/lucene/search/DocIdSetIterator;
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.lucene.index.BinaryDocValuesWriter.getDocValues:()Lorg/apache/lucene/index/BinaryDocValues;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/apache/lucene/index/DocValuesWriter<Lorg/apache/lucene/index/BinaryDocValues;>;
SourceFile: "BinaryDocValuesWriter.java"
NestMembers:
org.apache.lucene.index.BinaryDocValuesWriter$1 org.apache.lucene.index.BinaryDocValuesWriter$BinaryDVs org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues org.apache.lucene.index.BinaryDocValuesWriter$SortingBinaryDocValues
InnerClasses:
org.apache.lucene.index.BinaryDocValuesWriter$1
final BinaryDVs = org.apache.lucene.index.BinaryDocValuesWriter$BinaryDVs of org.apache.lucene.index.BinaryDocValuesWriter
private BufferedBinaryDocValues = org.apache.lucene.index.BinaryDocValuesWriter$BufferedBinaryDocValues of org.apache.lucene.index.BinaryDocValuesWriter
SortingBinaryDocValues = org.apache.lucene.index.BinaryDocValuesWriter$SortingBinaryDocValues of org.apache.lucene.index.BinaryDocValuesWriter
abstract DocMap = org.apache.lucene.index.Sorter$DocMap of org.apache.lucene.index.Sorter
public final PagedBytesDataInput = org.apache.lucene.util.PagedBytes$PagedBytesDataInput of org.apache.lucene.util.PagedBytes
public final PagedBytesDataOutput = org.apache.lucene.util.PagedBytes$PagedBytesDataOutput of org.apache.lucene.util.PagedBytes
public final Reader = org.apache.lucene.util.PagedBytes$Reader of org.apache.lucene.util.PagedBytes
public Builder = org.apache.lucene.util.packed.PackedLongValues$Builder of org.apache.lucene.util.packed.PackedLongValues