Record Class DefaultMetadataStorageConfig
java.lang.Object
java.lang.Record
dev.langchain4j.store.embedding.mariadb.DefaultMetadataStorageConfig
- All Implemented Interfaces:
MetadataStorageConfig
public record DefaultMetadataStorageConfig(MetadataStorageMode storageMode, List<String> columnDefinitions, List<String> indexes)
extends Record
implements MetadataStorageConfig
Metadata configuration implementation
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMetadataStorageConfig
(MetadataStorageMode storageMode, List<String> columnDefinitions, List<String> indexes) Creates an instance of aDefaultMetadataStorageConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thecolumnDefinitions
record component.static MetadataStorageConfig
Default configurationfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.indexes()
Returns the value of theindexes
record component.Returns the value of thestorageMode
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DefaultMetadataStorageConfig
public DefaultMetadataStorageConfig(MetadataStorageMode storageMode, List<String> columnDefinitions, List<String> indexes) Creates an instance of aDefaultMetadataStorageConfig
record class.- Parameters:
storageMode
- the value for thestorageMode
record componentcolumnDefinitions
- the value for thecolumnDefinitions
record componentindexes
- the value for theindexes
record component
-
-
Method Details
-
defaultConfig
Default configuration- Returns:
- Default configuration
-
builder
-
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 withObjects::equals(Object,Object)
. -
storageMode
Returns the value of thestorageMode
record component.- Specified by:
storageMode
in interfaceMetadataStorageConfig
- Returns:
- the value of the
storageMode
record component
-
columnDefinitions
Returns the value of thecolumnDefinitions
record component.- Specified by:
columnDefinitions
in interfaceMetadataStorageConfig
- Returns:
- the value of the
columnDefinitions
record component
-
indexes
Returns the value of theindexes
record component.- Specified by:
indexes
in interfaceMetadataStorageConfig
- Returns:
- the value of the
indexes
record component
-