Module org.apache.lucene.suggest
Record Class CompletionFieldsConsumer.CompletionMetaData
java.lang.Object
java.lang.Record
org.apache.lucene.search.suggest.document.CompletionFieldsConsumer.CompletionMetaData
- Enclosing class:
CompletionFieldsConsumer
private static record CompletionFieldsConsumer.CompletionMetaData(long filePointer, long minWeight, long maxWeight, byte type)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
The field for thefilePointer
record component.private final long
The field for themaxWeight
record component.private final long
The field for theminWeight
record component.private final byte
The field for thetype
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CompletionMetaData
(long filePointer, long minWeight, long maxWeight, byte type) Creates an instance of aCompletionMetaData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of thefilePointer
record component.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themaxWeight
record component.long
Returns the value of theminWeight
record component.final String
toString()
Returns a string representation of this record class.byte
type()
Returns the value of thetype
record component.
-
Field Details
-
filePointer
private final long filePointerThe field for thefilePointer
record component. -
minWeight
private final long minWeightThe field for theminWeight
record component. -
maxWeight
private final long maxWeightThe field for themaxWeight
record component. -
type
private final byte typeThe field for thetype
record component.
-
-
Constructor Details
-
CompletionMetaData
private CompletionMetaData(long filePointer, long minWeight, long maxWeight, byte type) Creates an instance of aCompletionMetaData
record class.- Parameters:
filePointer
- the value for thefilePointer
record componentminWeight
- the value for theminWeight
record componentmaxWeight
- the value for themaxWeight
record componenttype
- the value for thetype
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. All components in this record class are compared with '=='. -
filePointer
public long filePointer()Returns the value of thefilePointer
record component.- Returns:
- the value of the
filePointer
record component
-
minWeight
public long minWeight()Returns the value of theminWeight
record component.- Returns:
- the value of the
minWeight
record component
-
maxWeight
public long maxWeight()Returns the value of themaxWeight
record component.- Returns:
- the value of the
maxWeight
record component
-
type
public byte type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-