Class GetBulkInsertStateWrapper


  • public class GetBulkInsertStateWrapper
    extends Object
    Util class to wrap response of GetImportStateResponse interface.
    • 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