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 DocValuesConsumerThe field for theconsumerrecord component.private final intThe field for thesuffixrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConsumerAndSuffix(DocValuesConsumer consumer, int suffix) Creates an instance of aConsumerAndSuffixrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()consumer()Returns the value of theconsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsuffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
consumer
The field for theconsumerrecord component. -
suffix
private final int suffixThe field for thesuffixrecord component.
-
-
Constructor Details
-
ConsumerAndSuffix
ConsumerAndSuffix(DocValuesConsumer consumer, int suffix) Creates an instance of aConsumerAndSuffixrecord class.- Parameters:
consumer- the value for theconsumerrecord componentsuffix- the value for thesuffixrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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 theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-
suffix
public int suffix()Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-