public class ResultUtil extends Object
| Constructor and Description |
|---|
ResultUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertNull(String str) |
void |
deleteDir(String directory)
Utility method to delete directory
|
void |
ensureBaseDirExists(String directory)
Utility method to check if base result dir exists
|
void |
ensureBaseResultDirExists() |
Result |
getCSVHeaderAsResult(String row)
Used by custom ResultWriter out Pherf's normal code base
|
String |
getSuffix() |
static void |
setFileSuffix(String suffix)
Set the file suffix
|
void |
write(DataLoadThreadTime dataLoadThreadTime)
Write data load time details
|
void |
write(DataLoadTimeSummary dataLoadTime)
Write data load time summary
|
void |
write(ResultHandler resultHandler,
DataModelResult dataModelResult,
RulesApplier ruleApplier) |
public void write(DataLoadThreadTime dataLoadThreadTime) throws IOException
dataLoadThreadTime - DataLoadThreadTimeIOExceptionpublic void write(DataLoadTimeSummary dataLoadTime) throws IOException
dataLoadTime - IOExceptionpublic void write(ResultHandler resultHandler, DataModelResult dataModelResult, RulesApplier ruleApplier) throws Exception
Exceptionpublic void ensureBaseResultDirExists()
public void ensureBaseDirExists(String directory)
public void deleteDir(String directory) throws IOException
IOExceptionpublic String getSuffix()
public Result getCSVHeaderAsResult(String row)
Resultpublic static void setFileSuffix(String suffix)
suffix - Copyright © 2018 Apache Software Foundation. All Rights Reserved.