Record Class MilvusCreateCollection

java.lang.Object
java.lang.Record
org.hibernate.milvus.jdbc.MilvusCreateCollection
All Implemented Interfaces:
MilvusStatementDefinition

public record MilvusCreateCollection(String collectionName, String description, Integer dimension, String primaryFieldName, io.milvus.v2.common.DataType idType, Integer maxLength, String vectorFieldName, String metricType, Boolean autoID, Boolean enableDynamicField, Integer numShards, MilvusCreateCollection.Schema collectionSchema, List<MilvusCreateCollection.IndexParam> indexParams, Integer numPartitions, io.milvus.v2.common.ConsistencyLevel consistencyLevel, Map<String,String> properties) extends Record implements MilvusStatementDefinition
  • Constructor Details

    • MilvusCreateCollection

      public MilvusCreateCollection(String collectionName, String description, Integer dimension, String primaryFieldName, io.milvus.v2.common.DataType idType, Integer maxLength, String vectorFieldName, String metricType, Boolean autoID, Boolean enableDynamicField, Integer numShards, MilvusCreateCollection.Schema collectionSchema, List<MilvusCreateCollection.IndexParam> indexParams, Integer numPartitions, io.milvus.v2.common.ConsistencyLevel consistencyLevel, Map<String,String> properties)
      Creates an instance of a MilvusCreateCollection record class.
      Parameters:
      collectionName - the value for the collectionName record component
      description - the value for the description record component
      dimension - the value for the dimension record component
      primaryFieldName - the value for the primaryFieldName record component
      idType - the value for the idType record component
      maxLength - the value for the maxLength record component
      vectorFieldName - the value for the vectorFieldName record component
      metricType - the value for the metricType record component
      autoID - the value for the autoID record component
      enableDynamicField - the value for the enableDynamicField record component
      numShards - the value for the numShards record component
      collectionSchema - the value for the collectionSchema record component
      indexParams - the value for the indexParams record component
      numPartitions - the value for the numPartitions record component
      consistencyLevel - the value for the consistencyLevel record component
      properties - the value for the properties record component
  • Method Details

    • parameterCount

      public int parameterCount()
      Specified by:
      parameterCount in interface MilvusStatementDefinition
    • 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.
    • collectionName

      public String collectionName()
      Returns the value of the collectionName record component.
      Returns:
      the value of the collectionName record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • dimension

      public Integer dimension()
      Returns the value of the dimension record component.
      Returns:
      the value of the dimension record component
    • primaryFieldName

      public String primaryFieldName()
      Returns the value of the primaryFieldName record component.
      Returns:
      the value of the primaryFieldName record component
    • idType

      public io.milvus.v2.common.DataType idType()
      Returns the value of the idType record component.
      Returns:
      the value of the idType record component
    • maxLength

      public Integer maxLength()
      Returns the value of the maxLength record component.
      Returns:
      the value of the maxLength record component
    • vectorFieldName

      public String vectorFieldName()
      Returns the value of the vectorFieldName record component.
      Returns:
      the value of the vectorFieldName record component
    • metricType

      public String metricType()
      Returns the value of the metricType record component.
      Returns:
      the value of the metricType record component
    • autoID

      public Boolean autoID()
      Returns the value of the autoID record component.
      Returns:
      the value of the autoID record component
    • enableDynamicField

      public Boolean enableDynamicField()
      Returns the value of the enableDynamicField record component.
      Returns:
      the value of the enableDynamicField record component
    • numShards

      public Integer numShards()
      Returns the value of the numShards record component.
      Returns:
      the value of the numShards record component
    • collectionSchema

      public MilvusCreateCollection.Schema collectionSchema()
      Returns the value of the collectionSchema record component.
      Returns:
      the value of the collectionSchema record component
    • indexParams

      public List<MilvusCreateCollection.IndexParam> indexParams()
      Returns the value of the indexParams record component.
      Returns:
      the value of the indexParams record component
    • numPartitions

      public Integer numPartitions()
      Returns the value of the numPartitions record component.
      Returns:
      the value of the numPartitions record component
    • consistencyLevel

      public io.milvus.v2.common.ConsistencyLevel consistencyLevel()
      Returns the value of the consistencyLevel record component.
      Returns:
      the value of the consistencyLevel record component
    • properties

      public Map<String,String> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component