Package io.milvus.client
Class CollectionMapping.Builder
- java.lang.Object
-
- io.milvus.client.CollectionMapping.Builder
-
- Enclosing class:
- CollectionMapping
public static class CollectionMapping.Builder extends java.lang.Object
Builder forCollectionMapping
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String collectionName, long dimension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionMapping
build()
CollectionMapping.Builder
withIndexFileSize(long indexFileSize)
Optional.CollectionMapping.Builder
withMetricType(MetricType metricType)
Optional.
-
-
-
Method Detail
-
withIndexFileSize
public CollectionMapping.Builder withIndexFileSize(long indexFileSize)
Optional. Default to 1024 MB.- Parameters:
indexFileSize
- in megabytes.- Returns:
Builder
-
withMetricType
public CollectionMapping.Builder withMetricType(@Nonnull MetricType metricType)
Optional. Default to MetricType.L2- Parameters:
metricType
- aMetricType
value- Returns:
Builder
- See Also:
MetricType
-
build
public CollectionMapping build()
-
-