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 longThe field for thefilePointerrecord component.private final longThe field for themaxWeightrecord component.private final longThe field for theminWeightrecord component.private final byteThe field for thetyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompletionMetaData(long filePointer, long minWeight, long maxWeight, byte type) Creates an instance of aCompletionMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefilePointerrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxWeightrecord component.longReturns the value of theminWeightrecord component.final StringtoString()Returns a string representation of this record class.bytetype()Returns the value of thetyperecord component.
-
Field Details
-
filePointer
private final long filePointerThe field for thefilePointerrecord component. -
minWeight
private final long minWeightThe field for theminWeightrecord component. -
maxWeight
private final long maxWeightThe field for themaxWeightrecord component. -
type
private final byte typeThe field for thetyperecord component.
-
-
Constructor Details
-
CompletionMetaData
private CompletionMetaData(long filePointer, long minWeight, long maxWeight, byte type) Creates an instance of aCompletionMetaDatarecord class.- Parameters:
filePointer- the value for thefilePointerrecord componentminWeight- the value for theminWeightrecord componentmaxWeight- the value for themaxWeightrecord componenttype- the value for thetyperecord 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 thefilePointerrecord component.- Returns:
- the value of the
filePointerrecord component
-
minWeight
public long minWeight()Returns the value of theminWeightrecord component.- Returns:
- the value of the
minWeightrecord component
-
maxWeight
public long maxWeight()Returns the value of themaxWeightrecord component.- Returns:
- the value of the
maxWeightrecord component
-
type
public byte type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-