Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class FieldInfos.FieldDimensions
java.lang.Object
java.lang.Record
org.apache.lucene.index.FieldInfos.FieldDimensions
- Enclosing class:
FieldInfos
private static record FieldInfos.FieldDimensions(int dimensionCount, int indexDimensionCount, int dimensionNumBytes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedimensionCountrecord component.private final intThe field for thedimensionNumBytesrecord component.private final intThe field for theindexDimensionCountrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFieldDimensions(int dimensionCount, int indexDimensionCount, int dimensionNumBytes) Creates an instance of aFieldDimensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionCountrecord component.intReturns the value of thedimensionNumBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexDimensionCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimensionCount
private final int dimensionCountThe field for thedimensionCountrecord component. -
indexDimensionCount
private final int indexDimensionCountThe field for theindexDimensionCountrecord component. -
dimensionNumBytes
private final int dimensionNumBytesThe field for thedimensionNumBytesrecord component.
-
-
Constructor Details
-
FieldDimensions
private FieldDimensions(int dimensionCount, int indexDimensionCount, int dimensionNumBytes) Creates an instance of aFieldDimensionsrecord class.- Parameters:
dimensionCount- the value for thedimensionCountrecord componentindexDimensionCount- the value for theindexDimensionCountrecord componentdimensionNumBytes- the value for thedimensionNumBytesrecord 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 '=='. -
dimensionCount
public int dimensionCount()Returns the value of thedimensionCountrecord component.- Returns:
- the value of the
dimensionCountrecord component
-
indexDimensionCount
public int indexDimensionCount()Returns the value of theindexDimensionCountrecord component.- Returns:
- the value of the
indexDimensionCountrecord component
-
dimensionNumBytes
public int dimensionNumBytes()Returns the value of thedimensionNumBytesrecord component.- Returns:
- the value of the
dimensionNumBytesrecord component
-