class org.apache.lucene.index.NumericDocValuesWriter extends org.apache.lucene.index.DocValuesWriter<org.apache.lucene.index.NumericDocValues>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.lucene.index.NumericDocValuesWriter
super_class: org.apache.lucene.index.DocValuesWriter
{
private org.apache.lucene.util.packed.PackedLongValues$Builder pending;
descriptor: Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
flags: (0x0002) ACC_PRIVATE
private org.apache.lucene.util.packed.PackedLongValues finalValues;
descriptor: Lorg/apache/lucene/util/packed/PackedLongValues;
flags: (0x0002) ACC_PRIVATE
private final org.apache.lucene.util.Counter iwBytesUsed;
descriptor: Lorg/apache/lucene/util/Counter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long bytesUsed;
descriptor: J
flags: (0x0002) ACC_PRIVATE
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 int lastDocID;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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.NumericDocValuesWriter.lastDocID:I
2: 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.NumericDocValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
3: aload 0
new org.apache.lucene.index.DocsWithFieldSet
dup
invokespecial org.apache.lucene.index.DocsWithFieldSet.<init>:()V
putfield org.apache.lucene.index.NumericDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
4: aload 0
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.ramBytesUsed:()J
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.ramBytesUsed:()J
ladd
putfield org.apache.lucene.index.NumericDocValuesWriter.bytesUsed:J
5: aload 0
aload 1
putfield org.apache.lucene.index.NumericDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
6: aload 0
aload 2
putfield org.apache.lucene.index.NumericDocValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
7: aload 2
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.bytesUsed:J
invokevirtual org.apache.lucene.util.Counter.addAndGet:(J)J
pop2
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/index/NumericDocValuesWriter;
0 9 1 fieldInfo Lorg/apache/lucene/index/FieldInfo;
0 9 2 iwBytesUsed Lorg/apache/lucene/util/Counter;
MethodParameters:
Name Flags
fieldInfo
iwBytesUsed
public void addValue(int, long);
descriptor: (IJ)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.NumericDocValuesWriter.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.NumericDocValuesWriter.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 0
getfield org.apache.lucene.index.NumericDocValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
lload 2
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.add:(J)Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
pop
3: aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
iload 1
invokevirtual org.apache.lucene.index.DocsWithFieldSet.add:(I)V
4: aload 0
invokevirtual org.apache.lucene.index.NumericDocValuesWriter.updateBytesUsed:()V
5: aload 0
iload 1
putfield org.apache.lucene.index.NumericDocValuesWriter.lastDocID:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/index/NumericDocValuesWriter;
0 7 1 docID I
0 7 2 value J
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.NumericDocValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.ramBytesUsed:()J
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.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.NumericDocValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
lload 1
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.bytesUsed:J
lsub
invokevirtual org.apache.lucene.util.Counter.addAndGet:(J)J
pop2
2: aload 0
lload 1
putfield org.apache.lucene.index.NumericDocValuesWriter.bytesUsed:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/NumericDocValuesWriter;
1 4 1 newBytesUsed J
org.apache.lucene.index.NumericDocValues getDocValues();
descriptor: ()Lorg/apache/lucene/index/NumericDocValues;
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
ifnonnull 2
1: aload 0
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.pending: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.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
2: StackMap locals:
StackMap stack:
new org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues
dup
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
invokespecial org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues.<init>:(Lorg/apache/lucene/util/packed/PackedLongValues;Lorg/apache/lucene/search/DocIdSetIterator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/NumericDocValuesWriter;
static org.apache.lucene.index.NumericDocValuesWriter$NumericDVs sortDocValues(int, org.apache.lucene.index.Sorter$DocMap, org.apache.lucene.index.NumericDocValues);
descriptor: (ILorg/apache/lucene/index/Sorter$DocMap;Lorg/apache/lucene/index/NumericDocValues;)Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.lucene.util.FixedBitSet
dup
iload 0
invokespecial org.apache.lucene.util.FixedBitSet.<init>:(I)V
astore 3
start local 3 1: iload 0
newarray 11
astore 4
start local 4 2: StackMap locals: org.apache.lucene.util.FixedBitSet long[]
StackMap stack:
aload 2
invokevirtual org.apache.lucene.index.NumericDocValues.nextDoc:()I
istore 5
start local 5 3: iload 5
ldc 2147483647
if_icmpne 5
4: goto 9
5: StackMap locals: int
StackMap stack:
aload 1
iload 5
invokevirtual org.apache.lucene.index.Sorter$DocMap.oldToNew:(I)I
istore 6
start local 6 6: aload 3
iload 6
invokevirtual org.apache.lucene.util.FixedBitSet.set:(I)V
7: aload 4
iload 6
aload 2
invokevirtual org.apache.lucene.index.NumericDocValues.longValue:()J
lastore
end local 6 end local 5 8: goto 2
9: StackMap locals:
StackMap stack:
new org.apache.lucene.index.NumericDocValuesWriter$NumericDVs
dup
aload 4
aload 3
invokespecial org.apache.lucene.index.NumericDocValuesWriter$NumericDVs.<init>:([JLorg/apache/lucene/util/BitSet;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 maxDoc I
0 10 1 sortMap Lorg/apache/lucene/index/Sorter$DocMap;
0 10 2 oldDocValues Lorg/apache/lucene/index/NumericDocValues;
1 10 3 docsWithField Lorg/apache/lucene/util/FixedBitSet;
2 10 4 values [J
3 8 5 docID I
6 8 6 newDocID I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
maxDoc
sortMap
oldDocValues
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=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
ifnonnull 2
1: aload 0
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.pending: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.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
2: StackMap locals:
StackMap stack:
aload 2
ifnull 6
3: new org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues
dup
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.finalValues:Lorg/apache/lucene/util/packed/PackedLongValues;
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
invokespecial org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues.<init>:(Lorg/apache/lucene/util/packed/PackedLongValues;Lorg/apache/lucene/search/DocIdSetIterator;)V
astore 5
start local 5 4: aload 1
getfield org.apache.lucene.index.SegmentWriteState.segmentInfo:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
aload 2
aload 5
invokestatic org.apache.lucene.index.NumericDocValuesWriter.sortDocValues:(ILorg/apache/lucene/index/Sorter$DocMap;Lorg/apache/lucene/index/NumericDocValues;)Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
astore 4
end local 5 start local 4 5: goto 7
end local 4 6: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 7: StackMap locals: org.apache.lucene.index.NumericDocValuesWriter$NumericDVs
StackMap stack:
aload 3
aload 0
getfield org.apache.lucene.index.NumericDocValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
8: new org.apache.lucene.index.NumericDocValuesWriter$1
dup
aload 0
aload 4
invokespecial org.apache.lucene.index.NumericDocValuesWriter$1.<init>:(Lorg/apache/lucene/index/NumericDocValuesWriter;Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;)V
9: invokevirtual org.apache.lucene.codecs.DocValuesConsumer.addNumericField:(Lorg/apache/lucene/index/FieldInfo;Lorg/apache/lucene/codecs/DocValuesProducer;)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/index/NumericDocValuesWriter;
0 11 1 state Lorg/apache/lucene/index/SegmentWriteState;
0 11 2 sortMap Lorg/apache/lucene/index/Sorter$DocMap;
0 11 3 dvConsumer Lorg/apache/lucene/codecs/DocValuesConsumer;
5 6 4 sorted Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
7 11 4 sorted Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
4 5 5 oldValues Lorg/apache/lucene/index/NumericDocValues;
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.NumericDocValuesWriter.getDocValues:()Lorg/apache/lucene/index/NumericDocValues;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/apache/lucene/index/DocValuesWriter<Lorg/apache/lucene/index/NumericDocValues;>;
SourceFile: "NumericDocValuesWriter.java"
NestMembers:
org.apache.lucene.index.NumericDocValuesWriter$1 org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues org.apache.lucene.index.NumericDocValuesWriter$NumericDVs org.apache.lucene.index.NumericDocValuesWriter$SortingNumericDocValues
InnerClasses:
org.apache.lucene.index.NumericDocValuesWriter$1
private BufferedNumericDocValues = org.apache.lucene.index.NumericDocValuesWriter$BufferedNumericDocValues of org.apache.lucene.index.NumericDocValuesWriter
NumericDVs = org.apache.lucene.index.NumericDocValuesWriter$NumericDVs of org.apache.lucene.index.NumericDocValuesWriter
SortingNumericDocValues = org.apache.lucene.index.NumericDocValuesWriter$SortingNumericDocValues of org.apache.lucene.index.NumericDocValuesWriter
abstract DocMap = org.apache.lucene.index.Sorter$DocMap of org.apache.lucene.index.Sorter
public Builder = org.apache.lucene.util.packed.PackedLongValues$Builder of org.apache.lucene.util.packed.PackedLongValues