Class CompactParam.Builder
- java.lang.Object
-
- io.milvus.client.CompactParam.Builder
-
- Enclosing class:
- CompactParam
public static class CompactParam.Builder extends java.lang.Object
Builder forCompactParam
-
-
Constructor Summary
Constructor Description Builder(java.lang.String collectionName)
-
Method Summary
Modifier and Type Method Description CompactParam
build()
CompactParam.Builder
withThreshold(double threshold)
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)
- Parameters:
collectionName
- collection to compact
-
-
Method Detail
-
withThreshold
public CompactParam.Builder withThreshold(double threshold)
Optional. Default to 0.2. Segment will compact if and only if the percentage of entities deleted exceeds the threshold.- Parameters:
threshold
- The threshold- Returns:
Builder
-
build
public CompactParam build()
-
-