Module org.apache.lucene.core
Record Class PerFieldDocValuesFormat.ConsumerAndSuffix
java.lang.Object
java.lang.Record
org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat.ConsumerAndSuffix
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
PerFieldDocValuesFormat
static record PerFieldDocValuesFormat.ConsumerAndSuffix(DocValuesConsumer consumer, int suffix)
extends Record
implements Closeable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DocValuesConsumer
The field for theconsumer
record component.private final int
The field for thesuffix
record component. -
Constructor Summary
ConstructorsConstructorDescriptionConsumerAndSuffix
(DocValuesConsumer consumer, int suffix) Creates an instance of aConsumerAndSuffix
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
consumer()
Returns the value of theconsumer
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
suffix()
Returns the value of thesuffix
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
consumer
The field for theconsumer
record component. -
suffix
private final int suffixThe field for thesuffix
record component.
-
-
Constructor Details
-
ConsumerAndSuffix
ConsumerAndSuffix(DocValuesConsumer consumer, int suffix) Creates an instance of aConsumerAndSuffix
record class.- Parameters:
consumer
- the value for theconsumer
record componentsuffix
- the value for thesuffix
record component
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
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 '=='. -
consumer
Returns the value of theconsumer
record component.- Returns:
- the value of the
consumer
record component
-
suffix
public int suffix()Returns the value of thesuffix
record component.- Returns:
- the value of the
suffix
record component
-