milvus-logo
LFAI
< Docs
  • Java

getFlushAllState()

MilvusClient interface. This method tests whether specified segments are flushed.

R<GetFlushAllStateResponse> getFlushAllState(GetFlushAllStateParam requestParam);

GetFlushAllStateParam

Use the GetFlushAllStateParam.Builder to construct a GetFlushAllStateParam object.

import io.milvus.param.GetFlushAllStateParam;
GetFlushAllStateParam.Builder builder = GetFlushAllStateParam.newBuilder();

Methods of GetFlushAllStateParam.Builder:

Method

Description

Parameters

withDatabaseName(String databaseName)

Sets the database name. database name can be null for default database.

databaseName: The database name.

build()

Construct a GetFlushAllStateParam object.

N/A

Returns

This method catches all the exceptions and returns an R<GetFlushAllStateResponse> object.

  • If the API fails on the server side, it returns the error code and message from the server.

  • If the API fails by RPC exception, it returns R.Status.Unknown and error message of the exception.

  • If the API succeeds, it returns a valid GetFlushAllStateResponse held by the R template.

Example

import io.milvus.param.*;
import io.milvus.grpc.GetFlushAllStateResponse;

GetFlushAllStateParam param = GetFlushAllStateParam.newBuilder()
        .build();
R<GetFlushAllStateResponse> response = client.getFlushAllState(param);
if (response.getStatus() != R.Status.Success.getCode()) {
    System.out.println(response.getMessage());
}
Feedback

Was this page helpful?