Module org.apache.lucene.codecs
Record Class BlockTermsWriter.FieldMetaData
java.lang.Object
java.lang.Record
org.apache.lucene.codecs.blockterms.BlockTermsWriter.FieldMetaData
- Enclosing class:
BlockTermsWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedocCountrecord component.private final FieldInfoThe field for thefieldInforecord component.private final longThe field for thenumTermsrecord component.private final longThe field for thesumDocFreqrecord component.private final longThe field for thesumTotalTermFreqrecord component.private final longThe field for thetermsStartPointerrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFieldMetaData(FieldInfo fieldInfo, long numTerms, long termsStartPointer, long sumTotalTermFreq, long sumDocFreq, int docCount) Creates an instance of aFieldMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdocCount()Returns the value of thedocCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldInforecord component.final inthashCode()Returns a hash code value for this object.longnumTerms()Returns the value of thenumTermsrecord component.longReturns the value of thesumDocFreqrecord component.longReturns the value of thesumTotalTermFreqrecord component.longReturns the value of thetermsStartPointerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fieldInfo
The field for thefieldInforecord component. -
numTerms
private final long numTermsThe field for thenumTermsrecord component. -
termsStartPointer
private final long termsStartPointerThe field for thetermsStartPointerrecord component. -
sumTotalTermFreq
private final long sumTotalTermFreqThe field for thesumTotalTermFreqrecord component. -
sumDocFreq
private final long sumDocFreqThe field for thesumDocFreqrecord component. -
docCount
private final int docCountThe field for thedocCountrecord component.
-
-
Constructor Details
-
FieldMetaData
private FieldMetaData(FieldInfo fieldInfo, long numTerms, long termsStartPointer, long sumTotalTermFreq, long sumDocFreq, int docCount) Creates an instance of aFieldMetaDatarecord class.- Parameters:
fieldInfo- the value for thefieldInforecord componentnumTerms- the value for thenumTermsrecord componenttermsStartPointer- the value for thetermsStartPointerrecord componentsumTotalTermFreq- the value for thesumTotalTermFreqrecord componentsumDocFreq- the value for thesumDocFreqrecord componentdocCount- the value for thedocCountrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fieldInfo
Returns the value of thefieldInforecord component.- Returns:
- the value of the
fieldInforecord component
-
numTerms
public long numTerms()Returns the value of thenumTermsrecord component.- Returns:
- the value of the
numTermsrecord component
-
termsStartPointer
public long termsStartPointer()Returns the value of thetermsStartPointerrecord component.- Returns:
- the value of the
termsStartPointerrecord component
-
sumTotalTermFreq
public long sumTotalTermFreq()Returns the value of thesumTotalTermFreqrecord component.- Returns:
- the value of the
sumTotalTermFreqrecord component
-
sumDocFreq
public long sumDocFreq()Returns the value of thesumDocFreqrecord component.- Returns:
- the value of the
sumDocFreqrecord component
-
docCount
public int docCount()Returns the value of thedocCountrecord component.- Returns:
- the value of the
docCountrecord component
-