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 aFieldsGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fields()
Returns the value of thefields
record component.final int
hashCode()
Returns a hash code value for this object.state()
Returns the value of thestate
record component.int
suffix()
Returns the value of thesuffix
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
fields
The field for thefields
record component. -
suffix
private final int suffixThe field for thesuffix
record component. -
state
The field for thestate
record component.
-
-
Constructor Details
-
FieldsGroup
FieldsGroup(List<String> fields, int suffix, SegmentWriteState state) Creates an instance of aFieldsGroup
record class.- Parameters:
fields
- the value for thefields
record componentsuffix
- the value for thesuffix
record componentstate
- the value for thestate
record 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 thefields
record component.- Returns:
- the value of the
fields
record component
-
suffix
public int suffix()Returns the value of thesuffix
record component.- Returns:
- the value of the
suffix
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-