Package sk.iway.iwcm.rag.vectorstore
Record Class VectorStoreDataSourceResolver.Resolution
java.lang.Object
java.lang.Record
sk.iway.iwcm.rag.vectorstore.VectorStoreDataSourceResolver.Resolution
- Record Components:
dataSourceName- selected datasource namebackend- detected vector backenddatabaseProductName- JDBC database product namedatabaseProductVersion- JDBC database product versionreason- diagnostic reason when the backend is unsupportedexplicit- whether the selected datasource is the explicitrag_jpadatasource
- Enclosing class:
- VectorStoreDataSourceResolver
public static record VectorStoreDataSourceResolver.Resolution(String dataSourceName, VectorStoreType backend, String databaseProductName, String databaseProductVersion, String reason, boolean explicit)
extends Record
Result of selecting and inspecting the effective RAG datasource.
-
Constructor Summary
ConstructorsConstructorDescriptionResolution(String dataSourceName, VectorStoreType backend, String databaseProductName, String databaseProductVersion, String reason, boolean explicit) Creates an instance of aResolutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbackend()Returns the value of thebackendrecord component.Returns the value of thedatabaseProductNamerecord component.Returns the value of thedatabaseProductVersionrecord component.Returns the value of thedataSourceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.booleanreason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resolution
public Resolution(String dataSourceName, VectorStoreType backend, String databaseProductName, String databaseProductVersion, String reason, boolean explicit) Creates an instance of aResolutionrecord class.- Parameters:
dataSourceName- the value for thedataSourceNamerecord componentbackend- the value for thebackendrecord componentdatabaseProductName- the value for thedatabaseProductNamerecord componentdatabaseProductVersion- the value for thedatabaseProductVersionrecord componentreason- the value for thereasonrecord componentexplicit- the value for theexplicitrecord component
-
-
Method Details
-
isSupported
public boolean isSupported() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataSourceName
Returns the value of thedataSourceNamerecord component.- Returns:
- the value of the
dataSourceNamerecord component
-
backend
Returns the value of thebackendrecord component.- Returns:
- the value of the
backendrecord component
-
databaseProductName
Returns the value of thedatabaseProductNamerecord component.- Returns:
- the value of the
databaseProductNamerecord component
-
databaseProductVersion
Returns the value of thedatabaseProductVersionrecord component.- Returns:
- the value of the
databaseProductVersionrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Returns:
- the value of the
explicitrecord component
-