Class FieldSchema

java.lang.Object
org.zvec.binding.FieldSchema
All Implemented Interfaces:
AutoCloseable

public class FieldSchema extends Object implements AutoCloseable
High-level wrapper for zvec_field_schema_t.
  • Constructor Details

    • FieldSchema

      public FieldSchema(String name, DataType dataType, boolean nullable, int dimension)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDataType

      public DataType getDataType()
    • setDataType

      public void setDataType(DataType dataType)
    • getElementDataType

      public DataType getElementDataType()
    • getElementDataSize

      public long getElementDataSize()
    • isVectorField

      public boolean isVectorField()
    • isDenseVector

      public boolean isDenseVector()
    • isSparseVector

      public boolean isSparseVector()
    • isNullable

      public boolean isNullable()
    • setNullable

      public void setNullable(boolean nullable)
    • hasInvertIndex

      public boolean hasInvertIndex()
    • isArrayType

      public boolean isArrayType()
    • getDimension

      public int getDimension()
    • setDimension

      public void setDimension(int dimension)
    • getIndexType

      public IndexType getIndexType()
    • hasIndex

      public boolean hasIndex()
    • setIndexParams

      public void setIndexParams(IndexParams params)
      Set index parameters. The index params are deep-copied internally; the caller retains ownership and must destroy the IndexParams separately.
    • validate

      public void validate()
    • destroy

      public void destroy()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable