public static final class CreateSimpleCollectionParam.Builder
extends java.lang.Object
CreateSimpleCollectionParam
class.Modifier and Type | Method and Description |
---|---|
CreateSimpleCollectionParam |
build()
Verifies parameters and creates a new
CreateSimpleCollectionParam instance. |
CreateSimpleCollectionParam.Builder |
withAutoId(boolean autoId)
Sets the autoId.
|
CreateSimpleCollectionParam.Builder |
withCollectionName(@NonNull java.lang.String collectionName)
Sets the collection name.
|
CreateSimpleCollectionParam.Builder |
withConsistencyLevel(@NonNull ConsistencyLevelEnum consistencyLevel)
Sets the consistency level.
|
CreateSimpleCollectionParam.Builder |
withDescription(@NonNull java.lang.String description)
Sets the collection description.
|
CreateSimpleCollectionParam.Builder |
withDimension(int dimension)
Sets the collection vector dimension.
|
CreateSimpleCollectionParam.Builder |
withMaxLength(@NonNull java.lang.Integer maxLength)
Sets the primaryFiled maxLength.
|
CreateSimpleCollectionParam.Builder |
withMetricType(@NonNull MetricType metricType)
Sets the metricType of vectorField.
|
CreateSimpleCollectionParam.Builder |
withPrimaryField(@NonNull java.lang.String primaryField)
Sets the primaryFiled name.
|
CreateSimpleCollectionParam.Builder |
withPrimaryFieldType(@NonNull io.milvus.grpc.DataType primaryFieldType)
Sets the primaryFiled type.
|
CreateSimpleCollectionParam.Builder |
withSyncLoad(boolean syncLoad)
Sets the SyncLoad when loadCollection
|
CreateSimpleCollectionParam.Builder |
withVectorField(@NonNull java.lang.String vectorField)
Sets the vectorField name.
|
public CreateSimpleCollectionParam.Builder withCollectionName(@NonNull @NonNull java.lang.String collectionName)
collectionName
- collection nameBuilder
public CreateSimpleCollectionParam.Builder withDimension(int dimension)
dimension
- collection vector dimensionBuilder
public CreateSimpleCollectionParam.Builder withMetricType(@NonNull @NonNull MetricType metricType)
metricType
- metricType of vectorFieldBuilder
public CreateSimpleCollectionParam.Builder withDescription(@NonNull @NonNull java.lang.String description)
description
- description of the collectionBuilder
public CreateSimpleCollectionParam.Builder withPrimaryField(@NonNull @NonNull java.lang.String primaryField)
primaryField
- primaryFiled name of the collectionBuilder
public CreateSimpleCollectionParam.Builder withVectorField(@NonNull @NonNull java.lang.String vectorField)
vectorField
- vectorField name of the collectionBuilder
public CreateSimpleCollectionParam.Builder withAutoId(boolean autoId)
autoId
- if open autoIdBuilder
public CreateSimpleCollectionParam.Builder withSyncLoad(boolean syncLoad)
syncLoad
- set to true to be sync modeBuilder
public CreateSimpleCollectionParam.Builder withConsistencyLevel(@NonNull @NonNull ConsistencyLevelEnum consistencyLevel)
ConsistencyLevelEnum.BOUNDED
.consistencyLevel
- consistency levelBuilder
ConsistencyLevelEnum
public CreateSimpleCollectionParam.Builder withPrimaryFieldType(@NonNull @NonNull io.milvus.grpc.DataType primaryFieldType)
primaryFieldType
- primaryFiled type of the collectionBuilder
public CreateSimpleCollectionParam.Builder withMaxLength(@NonNull @NonNull java.lang.Integer maxLength)
maxLength
- maxLength of the primary fieldBuilder
public CreateSimpleCollectionParam build() throws ParamException
CreateSimpleCollectionParam
instance.CreateSimpleCollectionParam
ParamException