Package io.milvus.param.control
Class GetFlushStateParam.Builder
- java.lang.Object
-
- io.milvus.param.control.GetFlushStateParam.Builder
-
- Enclosing class:
- GetFlushStateParam
public static final class GetFlushStateParam.Builder extends Object
Builder forGetFlushStateParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GetFlushStateParam.BuilderaddSegmentID(@NonNull Long segmentID)Deprecated.GetFlushStateParambuild()Verifies parameters and creates a newGetFlushStateParaminstance.GetFlushStateParam.BuilderwithCollectionName(@NonNull String collectionName)Sets the collection name.GetFlushStateParam.BuilderwithDatabaseName(String databaseName)Sets the database name.GetFlushStateParam.BuilderwithFlushTs(@NonNull Long flushTs)Input a time stamp of a flush action, get its flush stateGetFlushStateParam.BuilderwithSegmentIDs(@NonNull List<Long> segmentIDs)Deprecated.
-
-
-
Method Detail
-
withDatabaseName
public GetFlushStateParam.Builder withDatabaseName(String databaseName)
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withSegmentIDs
@Deprecated public GetFlushStateParam.Builder withSegmentIDs(@NonNull @NonNull List<Long> segmentIDs)
Deprecated.Specify segments- Parameters:
segmentIDs- segments id list- Returns:
Builder
-
addSegmentID
@Deprecated public GetFlushStateParam.Builder addSegmentID(@NonNull @NonNull Long segmentID)
Deprecated.Specify a segment- Parameters:
segmentID- segment id- Returns:
Builder
-
withCollectionName
public GetFlushStateParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withFlushTs
public GetFlushStateParam.Builder withFlushTs(@NonNull @NonNull Long flushTs)
Input a time stamp of a flush action, get its flush state- Parameters:
flushTs- a time stamp returned by the flush() response- Returns:
Builder
-
build
public GetFlushStateParam build() throws ParamException
Verifies parameters and creates a newGetFlushStateParaminstance.- Returns:
GetFlushStateParam- Throws:
ParamException
-
-