milvus-logo

Class CompactParam

  • java.lang.Object
    • io.milvus.client.CompactParam

  • public class CompactParam
    extends java.lang.Object
    Contains parameters for compact
    • Method Summary

      Modifier and Type Method Description
      static CompactParam create​(java.lang.String collectionName)  
      CompactParam setThreshold​(double threshold)
      Optional.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static CompactParam create​(java.lang.String collectionName)
        Parameters:
        collectionName - collection to compact
      • setThreshold

        public CompactParam setThreshold​(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