use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.
the class TdchUtilsTest method getTdchProcessResultWithEmptyOutputRecordCountInfo.
private static TdchProcessResult getTdchProcessResultWithEmptyOutputRecordCountInfo() {
int exitValue = 0;
TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
String[] logLines = new String[4];
logLines[0] = " Map input records=6";
logLines[1] = "";
logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.
the class TdchUtilsTest method getTdchProcessResultWithInvalidInputRecordCountShortLineInfo.
private static TdchProcessResult getTdchProcessResultWithInvalidInputRecordCountShortLineInfo() {
int exitValue = 0;
TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
String[] logLines = new String[4];
logLines[0] = "No input rec";
logLines[1] = " Map output records=5";
logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.
the class TdchUtilsTest method getTdchProcessResultWithInvalidOutputRecordCountLongLineInfo.
private static TdchProcessResult getTdchProcessResultWithInvalidOutputRecordCountLongLineInfo() {
int exitValue = 0;
TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
String[] logLines = new String[4];
logLines[0] = " Map input records=6";
logLines[1] = "No output records found in log";
logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.
the class TdchUtilsTest method getTdchProcessResultWithInvalidInputRecordCountLongLineInfo.
private static TdchProcessResult getTdchProcessResultWithInvalidInputRecordCountLongLineInfo() {
int exitValue = 0;
TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
String[] logLines = new String[4];
logLines[0] = "No input records found in log";
logLines[1] = " Map output records=5";
logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
use of com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.processor.base.TdchOperationType in project kylo by Teradata.
the class TdchUtilsTest method getTdchProcessResultWithNoOutputRecordCountInfo.
private static TdchProcessResult getTdchProcessResultWithNoOutputRecordCountInfo() {
int exitValue = 0;
TdchOperationType tdchOperationType = TdchOperationType.TDCH_EXPORT;
String[] logLines = new String[4];
logLines[0] = " Map input records=6";
logLines[1] = null;
logLines[2] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: job completed with exit code 0";
logLines[3] = "18/03/21 05:43:24 INFO tool.ConnectorExportTool: ConnectorExportTool time is 33s";
return new TdchProcessResult(exitValue, logLines, tdchOperationType);
}
Aggregations