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 int
The field for thedimensionCount
record component.private final int
The field for thedimensionNumBytes
record component.private final int
The field for theindexDimensionCount
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FieldDimensions
(int dimensionCount, int indexDimensionCount, int dimensionNumBytes) Creates an instance of aFieldDimensions
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thedimensionCount
record component.int
Returns the value of thedimensionNumBytes
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
Returns the value of theindexDimensionCount
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dimensionCount
private final int dimensionCountThe field for thedimensionCount
record component. -
indexDimensionCount
private final int indexDimensionCountThe field for theindexDimensionCount
record component. -
dimensionNumBytes
private final int dimensionNumBytesThe field for thedimensionNumBytes
record component.
-
-
Constructor Details
-
FieldDimensions
private FieldDimensions(int dimensionCount, int indexDimensionCount, int dimensionNumBytes) Creates an instance of aFieldDimensions
record class.- Parameters:
dimensionCount
- the value for thedimensionCount
record componentindexDimensionCount
- the value for theindexDimensionCount
record componentdimensionNumBytes
- the value for thedimensionNumBytes
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 '=='. -
dimensionCount
public int dimensionCount()Returns the value of thedimensionCount
record component.- Returns:
- the value of the
dimensionCount
record component
-
indexDimensionCount
public int indexDimensionCount()Returns the value of theindexDimensionCount
record component.- Returns:
- the value of the
indexDimensionCount
record component
-
dimensionNumBytes
public int dimensionNumBytes()Returns the value of thedimensionNumBytes
record component.- Returns:
- the value of the
dimensionNumBytes
record component
-