Package org.zvec.binding
Class FieldSchema
java.lang.Object
org.zvec.binding.FieldSchema
- All Implemented Interfaces:
AutoCloseable
High-level wrapper for
zvec_field_schema_t.-
Constructor Summary
ConstructorsConstructorDescriptionFieldSchema(String name, DataType dataType, boolean nullable, int dimension) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddestroy()intlonggetName()booleanhasIndex()booleanbooleanbooleanbooleanbooleanbooleanvoidsetDataType(DataType dataType) voidsetDimension(int dimension) voidsetIndexParams(IndexParams params) Set index parameters.voidvoidsetNullable(boolean nullable) voidvalidate()
-
Constructor Details
-
FieldSchema
-
-
Method Details
-
getName
-
setName
-
getDataType
-
setDataType
-
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
-
hasIndex
public boolean hasIndex() -
setIndexParams
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:
closein interfaceAutoCloseable
-