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
Constructor Description Builder(java.lang.String collectionName, long dimension)
-
Method Summary
Modifier and Type Method Description CollectionMapping
build()
CollectionMapping.Builder
withIndexFileSize(long indexFileSize)
Optional.CollectionMapping.Builder
withMetricType(MetricType metricType)
Optional.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
Builder
public Builder(@Nonnull java.lang.String collectionName, long dimension)
- Parameters:
collectionName
- collection namedimension
- vector dimension
-
-
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()
-
-