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 aDefaultMetadataStorageConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecolumnDefinitionsrecord component.static MetadataStorageConfigDefault configurationfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indexes()Returns the value of theindexesrecord component.Returns the value of thestorageModerecord component.final StringtoString()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 aDefaultMetadataStorageConfigrecord class.- Parameters:
storageMode- the value for thestorageModerecord componentcolumnDefinitions- the value for thecolumnDefinitionsrecord componentindexes- the value for theindexesrecord component
-
-
Method Details
-
defaultConfig
Default configuration- Returns:
- Default configuration
-
builder
-
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). -
storageMode
Returns the value of thestorageModerecord component.- Specified by:
storageModein interfaceMetadataStorageConfig- Returns:
- the value of the
storageModerecord component
-
columnDefinitions
Returns the value of thecolumnDefinitionsrecord component.- Specified by:
columnDefinitionsin interfaceMetadataStorageConfig- Returns:
- the value of the
columnDefinitionsrecord component
-
indexes
Returns the value of theindexesrecord component.- Specified by:
indexesin interfaceMetadataStorageConfig- Returns:
- the value of the
indexesrecord component
-