Package ch.rswk.meta.engine
Record Class LuceneService.LuceneServiceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.LuceneService.LuceneServiceConfig
- Record Components:
analyzerSupplier- provide new analyzer instance. See available analyzers for 9.11.1
- Enclosing class:
LuceneService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Supplier<org.apache.lucene.analysis.Analyzer> The field for theanalyzerSupplierrecord component.private final StringThe field for theindexDirrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLuceneServiceConfig(Supplier<org.apache.lucene.analysis.Analyzer> analyzerSupplier, String indexDir) Creates an instance of aLuceneServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<org.apache.lucene.analysis.Analyzer> Returns the value of theanalyzerSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indexDir()Returns the value of theindexDirrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
analyzerSupplier
The field for theanalyzerSupplierrecord component. -
indexDir
The field for theindexDirrecord component.
-
-
Constructor Details
-
LuceneServiceConfig
public LuceneServiceConfig(Supplier<org.apache.lucene.analysis.Analyzer> analyzerSupplier, String indexDir) Creates an instance of aLuceneServiceConfigrecord class.- Parameters:
analyzerSupplier- the value for theanalyzerSupplierrecord componentindexDir- the value for theindexDirrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
analyzerSupplier
Returns the value of theanalyzerSupplierrecord component.- Returns:
- the value of the
analyzerSupplierrecord component
-
indexDir
Returns the value of theindexDirrecord component.- Returns:
- the value of the
indexDirrecord component
-