Record Class MilvusCreateCollection.FieldSchema

java.lang.Object
java.lang.Record
org.hibernate.milvus.jdbc.MilvusCreateCollection.FieldSchema
Enclosing class:
MilvusCreateCollection

public static record MilvusCreateCollection.FieldSchema(String name, String description, io.milvus.v2.common.DataType dataType, Integer maxLength, Integer dimension, Boolean isPrimaryKey, Boolean isPartitionKey, Boolean isClusteringKey, Boolean autoID, io.milvus.v2.common.DataType elementType, Integer maxCapacity, Boolean isNullable, Object defaultValue, Boolean enableAnalyzer, Map<String,Object> analyzerParams, Boolean enableMatch) extends Record
  • Constructor Details

    • FieldSchema

      public FieldSchema(String name, String description, io.milvus.v2.common.DataType dataType, Integer maxLength, Integer dimension, Boolean isPrimaryKey, Boolean isPartitionKey, Boolean isClusteringKey, Boolean autoID, io.milvus.v2.common.DataType elementType, Integer maxCapacity, Boolean isNullable, Object defaultValue, Boolean enableAnalyzer, Map<String,Object> analyzerParams, Boolean enableMatch)
      Creates an instance of a FieldSchema record class.
      Parameters:
      name - the value for the name record component
      description - the value for the description record component
      dataType - the value for the dataType record component
      maxLength - the value for the maxLength record component
      dimension - the value for the dimension record component
      isPrimaryKey - the value for the isPrimaryKey record component
      isPartitionKey - the value for the isPartitionKey record component
      isClusteringKey - the value for the isClusteringKey record component
      autoID - the value for the autoID record component
      elementType - the value for the elementType record component
      maxCapacity - the value for the maxCapacity record component
      isNullable - the value for the isNullable record component
      defaultValue - the value for the defaultValue record component
      enableAnalyzer - the value for the enableAnalyzer record component
      analyzerParams - the value for the analyzerParams record component
      enableMatch - the value for the enableMatch record component
  • Method Details

    • 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.
    • name

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

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

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

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

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

      public Boolean isPrimaryKey()
      Returns the value of the isPrimaryKey record component.
      Returns:
      the value of the isPrimaryKey record component
    • isPartitionKey

      public Boolean isPartitionKey()
      Returns the value of the isPartitionKey record component.
      Returns:
      the value of the isPartitionKey record component
    • isClusteringKey

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

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

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

      public Integer maxCapacity()
      Returns the value of the maxCapacity record component.
      Returns:
      the value of the maxCapacity record component
    • isNullable

      public Boolean isNullable()
      Returns the value of the isNullable record component.
      Returns:
      the value of the isNullable record component
    • defaultValue

      public Object defaultValue()
      Returns the value of the defaultValue record component.
      Returns:
      the value of the defaultValue record component
    • enableAnalyzer

      public Boolean enableAnalyzer()
      Returns the value of the enableAnalyzer record component.
      Returns:
      the value of the enableAnalyzer record component
    • analyzerParams

      public Map<String,Object> analyzerParams()
      Returns the value of the analyzerParams record component.
      Returns:
      the value of the analyzerParams record component
    • enableMatch

      public Boolean enableMatch()
      Returns the value of the enableMatch record component.
      Returns:
      the value of the enableMatch record component