|
@@ -9,64 +9,64 @@ import lombok.NonNull;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * Util class to wrap response of <code>getImportState</code> interface.
|
|
|
+ * Util class to wrap response of <code>getBulkloadState</code> interface.
|
|
|
*/
|
|
|
-public class GetImportStateWrapper {
|
|
|
+public class GetBulkloadStateWrapper {
|
|
|
private final GetImportStateResponse response;
|
|
|
|
|
|
- public GetImportStateWrapper(@NonNull GetImportStateResponse response) {
|
|
|
+ public GetBulkloadStateWrapper(@NonNull GetImportStateResponse response) {
|
|
|
this.response = response;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets ID of the import task.
|
|
|
+ * Gets ID of the bulk load task.
|
|
|
*
|
|
|
- * @return Long ID of the import task
|
|
|
+ * @return Long ID of the bulk load task
|
|
|
*/
|
|
|
public long getTaskID() {
|
|
|
return response.getId();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets the long ID array for auto-id primary key, generated by import task.
|
|
|
+ * Gets the long ID array for auto-id primary key, generated by bulk load task.
|
|
|
*
|
|
|
- * @return List<Long> ID array returned by import task
|
|
|
+ * @return List<Long> ID array returned by bulk load task
|
|
|
*/
|
|
|
public List<Long> getAutoGeneratedIDs() {
|
|
|
return response.getIdListList();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets state of the import task.
|
|
|
+ * Gets state of the bulk load task.
|
|
|
*
|
|
|
- * @return ImportState state of the import task
|
|
|
+ * @return ImportState state of the bulk load task
|
|
|
*/
|
|
|
public ImportState getState() {
|
|
|
return response.getState();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets how many rows were imported by the import task.
|
|
|
+ * Gets how many rows were imported by the bulk load task.
|
|
|
*
|
|
|
- * @return Long how many rows were imported by the import task
|
|
|
+ * @return Long how many rows were imported by the bulk load task
|
|
|
*/
|
|
|
public long getImportedCount() {
|
|
|
return response.getRowCount();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets failed reason of the import task.
|
|
|
+ * Gets failed reason of the bulk load task.
|
|
|
*
|
|
|
- * @return String failed reason of the import task
|
|
|
+ * @return String failed reason of the bulk load task
|
|
|
*/
|
|
|
public String getFailedReason() {
|
|
|
return getInfo(Constant.FAILED_REASON);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets target files of the import task.
|
|
|
+ * Gets target files of the bulk load task.
|
|
|
*
|
|
|
- * @return String target files of the import task
|
|
|
+ * @return String target files of the bulk load task
|
|
|
*/
|
|
|
public String getFiles() {
|
|
|
return getInfo(Constant.IMPORT_FILES);
|
|
@@ -90,7 +90,7 @@ public class GetImportStateWrapper {
|
|
|
*/
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
- return "Import task state{" +
|
|
|
+ return "bulk load task state{" +
|
|
|
", autoGeneratedIDs:" + getAutoGeneratedIDs() +
|
|
|
", state:" + getState().name() +
|
|
|
", failed reason:" + getFailedReason() +
|