Package org.zvec.binding
Class CollectionSchema
java.lang.Object
org.zvec.binding.CollectionSchema
- All Implemented Interfaces:
AutoCloseable
High-level wrapper for
zvec_collection_schema_t.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(FieldSchema field) Add a field.voidaddIndex(String fieldName, IndexParams params) voidalterField(String fieldName, FieldSchema newField) voidclose()voiddestroy()voidvoidGet all field names.Returns a non-owning FieldSchema.getForwardField(String fieldName) Returns a non-owning FieldSchema for a forward (scalar) field.longgetName()getVectorField(String fieldName) Returns a non-owning FieldSchema for a vector field.booleanbooleanvoidsetMaxDocCountPerSegment(long maxDocCount) voidvoidvalidate()
-
Constructor Details
-
CollectionSchema
-
-
Method Details
-
getName
-
setName
-
addField
Add a field. The field schema is deep-copied; caller retains ownership. -
alterField
-
dropField
-
hasField
-
getField
Returns a non-owning FieldSchema. Do NOT destroy it. -
getForwardField
Returns a non-owning FieldSchema for a forward (scalar) field. -
getVectorField
Returns a non-owning FieldSchema for a vector field. -
getAllFieldNames
Get all field names. -
getMaxDocCountPerSegment
public long getMaxDocCountPerSegment() -
setMaxDocCountPerSegment
public void setMaxDocCountPerSegment(long maxDocCount) -
addIndex
-
dropIndex
-
hasIndex
-
validate
public void validate() -
destroy
public void destroy() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-