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
  • Constructor Details

    • DefaultMetadataStorageConfig

      public DefaultMetadataStorageConfig(MetadataStorageMode storageMode, List<String> columnDefinitions, List<String> indexes)
      Creates an instance of a DefaultMetadataStorageConfig record class.
      Parameters:
      storageMode - the value for the storageMode record component
      columnDefinitions - the value for the columnDefinitions record component
      indexes - the value for the indexes record component
  • Method Details

    • defaultConfig

      public static MetadataStorageConfig defaultConfig()
      Default configuration
      Returns:
      Default configuration
    • builder

      public static DefaultMetadataStorageConfig.Builder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • storageMode

      public MetadataStorageMode storageMode()
      Returns the value of the storageMode record component.
      Specified by:
      storageMode in interface MetadataStorageConfig
      Returns:
      the value of the storageMode record component
    • columnDefinitions

      public List<String> columnDefinitions()
      Returns the value of the columnDefinitions record component.
      Specified by:
      columnDefinitions in interface MetadataStorageConfig
      Returns:
      the value of the columnDefinitions record component
    • indexes

      public List<String> indexes()
      Returns the value of the indexes record component.
      Specified by:
      indexes in interface MetadataStorageConfig
      Returns:
      the value of the indexes record component