class org.apache.lucene.index.NormValuesWriter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.lucene.index.NormValuesWriter
super_class: java.lang.Object
{
private org.apache.lucene.index.DocsWithFieldSet docsWithField;
descriptor: Lorg/apache/lucene/index/DocsWithFieldSet;
flags: (0x0002) ACC_PRIVATE
private org.apache.lucene.util.packed.PackedLongValues$Builder pending;
descriptor: Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
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 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
public 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: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield org.apache.lucene.index.NormValuesWriter.lastDocID:I
2: aload 0
new org.apache.lucene.index.DocsWithFieldSet
dup
invokespecial org.apache.lucene.index.DocsWithFieldSet.<init>:()V
putfield org.apache.lucene.index.NormValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
3: 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.NormValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
4: aload 0
aload 0
getfield org.apache.lucene.index.NormValuesWriter.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.NormValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.ramBytesUsed:()J
ladd
putfield org.apache.lucene.index.NormValuesWriter.bytesUsed:J
5: aload 0
aload 1
putfield org.apache.lucene.index.NormValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
6: aload 0
aload 2
putfield org.apache.lucene.index.NormValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
7: aload 2
aload 0
getfield org.apache.lucene.index.NormValuesWriter.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/NormValuesWriter;
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.NormValuesWriter.lastDocID:I
if_icmpgt 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Norm for \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.index.NormValuesWriter.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.NormValuesWriter.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.NormValuesWriter.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.NormValuesWriter.updateBytesUsed:()V
5: aload 0
iload 1
putfield org.apache.lucene.index.NormValuesWriter.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/NormValuesWriter;
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.NormValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.ramBytesUsed:()J
lstore 1
start local 1 1: aload 0
getfield org.apache.lucene.index.NormValuesWriter.iwBytesUsed:Lorg/apache/lucene/util/Counter;
lload 1
aload 0
getfield org.apache.lucene.index.NormValuesWriter.bytesUsed:J
lsub
invokevirtual org.apache.lucene.util.Counter.addAndGet:(J)J
pop2
2: aload 0
lload 1
putfield org.apache.lucene.index.NormValuesWriter.bytesUsed:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/NormValuesWriter;
1 4 1 newBytesUsed J
public void finish(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/NormValuesWriter;
0 1 1 maxDoc I
MethodParameters:
Name Flags
maxDoc
public void flush(org.apache.lucene.index.SegmentWriteState, org.apache.lucene.index.Sorter$DocMap, org.apache.lucene.codecs.NormsConsumer);
descriptor: (Lorg/apache/lucene/index/SegmentWriteState;Lorg/apache/lucene/index/Sorter$DocMap;Lorg/apache/lucene/codecs/NormsConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, 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.NormValuesWriter.pending:Lorg/apache/lucene/util/packed/PackedLongValues$Builder;
invokevirtual org.apache.lucene.util.packed.PackedLongValues$Builder.build:()Lorg/apache/lucene/util/packed/PackedLongValues;
astore 4
start local 4 1: aload 2
ifnull 6
2: aload 1
getfield org.apache.lucene.index.SegmentWriteState.segmentInfo:Lorg/apache/lucene/index/SegmentInfo;
invokevirtual org.apache.lucene.index.SegmentInfo.maxDoc:()I
aload 2
3: new org.apache.lucene.index.NormValuesWriter$BufferedNorms
dup
aload 4
aload 0
getfield org.apache.lucene.index.NormValuesWriter.docsWithField:Lorg/apache/lucene/index/DocsWithFieldSet;
invokevirtual org.apache.lucene.index.DocsWithFieldSet.iterator:()Lorg/apache/lucene/search/DocIdSetIterator;
invokespecial org.apache.lucene.index.NormValuesWriter$BufferedNorms.<init>:(Lorg/apache/lucene/util/packed/PackedLongValues;Lorg/apache/lucene/search/DocIdSetIterator;)V
4: 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 5
start local 5 5: goto 7
end local 5 6: StackMap locals: org.apache.lucene.util.packed.PackedLongValues
StackMap stack:
aconst_null
astore 5
start local 5 7: StackMap locals: org.apache.lucene.index.NumericDocValuesWriter$NumericDVs
StackMap stack:
aload 3
aload 0
getfield org.apache.lucene.index.NormValuesWriter.fieldInfo:Lorg/apache/lucene/index/FieldInfo;
8: new org.apache.lucene.index.NormValuesWriter$1
dup
aload 0
aload 5
aload 4
invokespecial org.apache.lucene.index.NormValuesWriter$1.<init>:(Lorg/apache/lucene/index/NormValuesWriter;Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;Lorg/apache/lucene/util/packed/PackedLongValues;)V
9: invokevirtual org.apache.lucene.codecs.NormsConsumer.addNormsField:(Lorg/apache/lucene/index/FieldInfo;Lorg/apache/lucene/codecs/NormsProducer;)V
10: 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 11 0 this Lorg/apache/lucene/index/NormValuesWriter;
0 11 1 state Lorg/apache/lucene/index/SegmentWriteState;
0 11 2 sortMap Lorg/apache/lucene/index/Sorter$DocMap;
0 11 3 normsConsumer Lorg/apache/lucene/codecs/NormsConsumer;
1 11 4 values Lorg/apache/lucene/util/packed/PackedLongValues;
5 6 5 sorted Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
7 11 5 sorted Lorg/apache/lucene/index/NumericDocValuesWriter$NumericDVs;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
state
sortMap
normsConsumer
}
SourceFile: "NormValuesWriter.java"
NestMembers:
org.apache.lucene.index.NormValuesWriter$1 org.apache.lucene.index.NormValuesWriter$BufferedNorms
InnerClasses:
org.apache.lucene.index.NormValuesWriter$1
private BufferedNorms = org.apache.lucene.index.NormValuesWriter$BufferedNorms of org.apache.lucene.index.NormValuesWriter
NumericDVs = org.apache.lucene.index.NumericDocValuesWriter$NumericDVs 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