Module org.apache.lucene.core
Record Class PerFieldPostingsFormat.FieldsGroup
java.lang.Object
java.lang.Record
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.FieldsGroup
- Record Components:
state- Custom SegmentWriteState for this group of fields, with the segmentSuffix uniqueified for this PostingsFormat
- Enclosing class:
PerFieldPostingsFormat
static record PerFieldPostingsFormat.FieldsGroup(List<String> fields, int suffix, SegmentWriteState state)
extends Record
Group of fields written by one PostingsFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldsGroup(List<String> fields, int suffix, SegmentWriteState state) Creates an instance of aFieldsGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.intsuffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fields
The field for thefieldsrecord component. -
suffix
private final int suffixThe field for thesuffixrecord component. -
state
The field for thestaterecord component.
-
-
Constructor Details
-
FieldsGroup
FieldsGroup(List<String> fields, int suffix, SegmentWriteState state) Creates an instance of aFieldsGrouprecord class.- Parameters:
fields- the value for thefieldsrecord componentsuffix- the value for thesuffixrecord componentstate- the value for thestaterecord 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 '=='. -
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
suffix
public int suffix()Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-