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 theanalyzerSupplier
record component.private final String
The field for theindexDir
record component. -
Constructor Summary
ConstructorsConstructorDescriptionLuceneServiceConfig
(Supplier<org.apache.lucene.analysis.Analyzer> analyzerSupplier, String indexDir) Creates an instance of aLuceneServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier
<org.apache.lucene.analysis.Analyzer> Returns the value of theanalyzerSupplier
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.indexDir()
Returns the value of theindexDir
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
analyzerSupplier
The field for theanalyzerSupplier
record component. -
indexDir
The field for theindexDir
record component.
-
-
Constructor Details
-
LuceneServiceConfig
public LuceneServiceConfig(Supplier<org.apache.lucene.analysis.Analyzer> analyzerSupplier, String indexDir) Creates an instance of aLuceneServiceConfig
record class.- Parameters:
analyzerSupplier
- the value for theanalyzerSupplier
record componentindexDir
- the value for theindexDir
record 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 theanalyzerSupplier
record component.- Returns:
- the value of the
analyzerSupplier
record component
-
indexDir
Returns the value of theindexDir
record component.- Returns:
- the value of the
indexDir
record component
-