Package io.milvus.response
Class GetBulkInsertStateWrapper
- java.lang.Object
-
- io.milvus.response.GetBulkInsertStateWrapper
-
public class GetBulkInsertStateWrapper extends Object
Util class to wrap response ofGetImportStateResponseinterface.
-
-
Constructor Summary
Constructors Constructor Description GetBulkInsertStateWrapper(@NonNull GetImportStateResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>getAutoGeneratedIDs()Gets the long ID array for auto-id primary key, generated by bulk insert task.StringgetCollectionName()Gets target collection name of the bulk insert task.longgetCreateTimestamp()Gets the integer timestamp when this task is created.StringgetCreateTimeStr()Gets the timestamp in string format when this task is created.StringgetFailedReason()Gets failed reason of the bulk insert task.StringgetFiles()Gets target files of the bulk insert task.longgetImportedCount()Gets how many rows were imported by the bulk insert task.StringgetPartitionName()Gets target partition name of the bulk insert task.intgetProgress()Gets working progress percent value of the bulk insert task.ImportStategetState()Gets state of the bulk insert task.longgetTaskID()Gets ID of the bulk insert task.StringtoString()Construct aStringbyDescCollResponseWrapperinstance.
-
-
-
Constructor Detail
-
GetBulkInsertStateWrapper
public GetBulkInsertStateWrapper(@NonNull @NonNull GetImportStateResponse response)
-
-
Method Detail
-
getTaskID
public long getTaskID()
Gets ID of the bulk insert task.- Returns:
- Long ID of the bulk insert task
-
getAutoGeneratedIDs
public List<Long> getAutoGeneratedIDs()
Gets the long ID array for auto-id primary key, generated by bulk insert task.- Returns:
- List of Long, ID array returned by bulk insert task
-
getState
public ImportState getState()
Gets state of the bulk insert task.- Returns:
- ImportState state of the bulk insert task
-
getImportedCount
public long getImportedCount()
Gets how many rows were imported by the bulk insert task.- Returns:
- Long how many rows were imported by the bulk insert task
-
getCreateTimestamp
public long getCreateTimestamp()
Gets the integer timestamp when this task is created.- Returns:
- the integer timestamp when this task is created
-
getCreateTimeStr
public String getCreateTimeStr()
Gets the timestamp in string format when this task is created.- Returns:
- the timestamp in string format when this task is created
-
getFailedReason
public String getFailedReason()
Gets failed reason of the bulk insert task.- Returns:
- String failed reason of the bulk insert task
-
getFiles
public String getFiles()
Gets target files of the bulk insert task.- Returns:
- String target files of the bulk insert task
-
getCollectionName
public String getCollectionName()
Gets target collection name of the bulk insert task.- Returns:
- String target collection name
-
getPartitionName
public String getPartitionName()
Gets target partition name of the bulk insert task.- Returns:
- String target partition name
-
getProgress
public int getProgress()
Gets working progress percent value of the bulk insert task.- Returns:
- String target collection name
-
toString
public String toString()
Construct aStringbyDescCollResponseWrapperinstance.
-
-