Package io.milvus.param.control
Class GetFlushStateParam.Builder
java.lang.Object
io.milvus.param.control.GetFlushStateParam.Builder
- Enclosing class:
GetFlushStateParam
Builder for
GetFlushStateParam class.-
Method Summary
Modifier and TypeMethodDescriptionaddSegmentID(@NonNull Long segmentID) Deprecated.build()Verifies parameters and creates a newGetFlushStateParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.withFlushTs(@NonNull Long flushTs) Input a time stamp of a flush action, get its flush statewithSegmentIDs(@NonNull List<Long> segmentIDs) Deprecated.
-
Method Details
-
withDatabaseName
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.Specify a segment- Parameters:
segmentID- segment id- Returns:
Builder
-
withCollectionName
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withFlushTs
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
Verifies parameters and creates a newGetFlushStateParaminstance.- Returns:
GetFlushStateParam- Throws:
ParamException
-