Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class FieldInfos.IndexOptionsProperties
java.lang.Object
java.lang.Record
org.apache.lucene.index.FieldInfos.IndexOptionsProperties
- Enclosing class:
FieldInfos
private static record FieldInfos.IndexOptionsProperties(boolean storeTermVectors, boolean omitNorms)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for theomitNorms
record component.private final boolean
The field for thestoreTermVectors
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IndexOptionsProperties
(boolean storeTermVectors, boolean omitNorms) Creates an instance of aIndexOptionsProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theomitNorms
record component.boolean
Returns the value of thestoreTermVectors
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
storeTermVectors
private final boolean storeTermVectorsThe field for thestoreTermVectors
record component. -
omitNorms
private final boolean omitNormsThe field for theomitNorms
record component.
-
-
Constructor Details
-
IndexOptionsProperties
private IndexOptionsProperties(boolean storeTermVectors, boolean omitNorms) Creates an instance of aIndexOptionsProperties
record class.- Parameters:
storeTermVectors
- the value for thestoreTermVectors
record componentomitNorms
- the value for theomitNorms
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 '=='. -
storeTermVectors
public boolean storeTermVectors()Returns the value of thestoreTermVectors
record component.- Returns:
- the value of the
storeTermVectors
record component
-
omitNorms
public boolean omitNorms()Returns the value of theomitNorms
record component.- Returns:
- the value of the
omitNorms
record component
-