public final long computeNorm(FieldInvertState state) {final int numTerms;if (state.getIndexOptions() == IndexOptions.DOCS && state.getIndexCreatedVersionMajor() >= 8) {numTerms = state.getUniqueTermCount();} else if (discountOverlaps) {numTerms = state.getLength() - state.getNumOverlap();} else {numTerms = state.getLength();}return SmallFloat.intToByte4(numTerms);}

public final long computeNorm ( FieldInvertState state ) { final int numTerms ; if ( state . getIndexOptions ( ) == IndexOptions . DOCS && state . getIndexCreatedVersionMajor ( ) >= 8 ) { numTerms = state . getUniqueTermCount ( ) ; } else if ( discountOverlaps ) { numTerms = state . getLength ( ) - state . getNumOverlap ( ) ; } else { numTerms = state . getLength ( ) ; } return SmallFloat . intToByte4 ( numTerms ) ; }
public override long ComputeNorm(FieldInvertState state){float numTerms;if (discountOverlaps){numTerms = state.Length - state.NumOverlap;}else{numTerms = state.Length;}return EncodeNormValue(state.Boost, numTerms);}
