CompactionState

This enum represents the state of a compaction task, as returned in each plan of getCompactionPlans().

class io.milvus.v2.common.CompactionState

METHODS:

  • getCode() (int) -

    The numeric compaction state code.

VARIANTS

  • UndefiedState (0) - The compaction state is undefined. (The spelling matches the SDK source, where this constant name contains a typo.)

  • Executing (1) - A compaction task is currently running.

  • Completed (2) - A compaction task has completed.

Example

resp.getPlans().forEach(plan ->
    System.out.println(plan.getState() == CompactionState.Completed ? "done" : "in progress"));

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?