Package io.milvus.param.collection
Class CollectionSchemaParam.Builder
java.lang.Object
io.milvus.param.collection.CollectionSchemaParam.Builder
- Enclosing class:
CollectionSchemaParam
Builder for
CollectionSchemaParam class.-
Method Summary
Modifier and TypeMethodDescriptionaddFieldType(@NonNull FieldType fieldType) Adds a field.build()Verifies parameters and creates a newCollectionSchemaParaminstance.withEnableDynamicField(boolean enableDynamicField) Sets the collection if enableDynamicField.withFieldTypes(@NonNull List<FieldType> fieldTypes) Sets the fieldTypes of the schema.
-
Method Details
-
withEnableDynamicField
Sets the collection if enableDynamicField.- Parameters:
enableDynamicField- enableDynamicField of the collection- Returns:
Builder
-
withFieldTypes
Sets the fieldTypes of the schema. The fieldTypes cannot be empty or null.- Parameters:
fieldTypes- aListofFieldType- Returns:
Builder- See Also:
-
addFieldType
Adds a field.- Parameters:
fieldType- aFieldTypeobject- Returns:
Builder- See Also:
-
build
Verifies parameters and creates a newCollectionSchemaParaminstance.- Returns:
CollectionSchemaParam- Throws:
ParamException
-