Class FileNameIndexUtils
java.lang.Object
org.apache.hadoop.mapreduce.v2.jobhistory.FileNameIndexUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeJobHistoryFileName(String logFileName) Helper function to decode the URL of the filename of the job-history log file.static StringencodeJobHistoryFileName(String logFileName) Helper function to encode the URL of the filename of the job-history log file.static StringgetDoneFileName(JobIndexInfo indexInfo) Constructs the job history file name from the JobIndexInfo.static StringgetDoneFileName(JobIndexInfo indexInfo, int jobNameLimit) static JobIndexInfogetIndexInfo(String jhFileName) Parses the provided job history file name to construct a JobIndexInfo object which is returned.
-
Constructor Details
-
FileNameIndexUtils
public FileNameIndexUtils()
-
-
Method Details
-
getDoneFileName
Constructs the job history file name from the JobIndexInfo.- Parameters:
indexInfo- the index info.- Returns:
- the done job history filename.
- Throws:
IOException
-
getDoneFileName
- Throws:
IOException
-
getIndexInfo
Parses the provided job history file name to construct a JobIndexInfo object which is returned.- Parameters:
jhFileName- the job history filename.- Returns:
- a JobIndexInfo object built from the filename.
- Throws:
IOException
-
encodeJobHistoryFileName
Helper function to encode the URL of the filename of the job-history log file.- Parameters:
logFileName- file name of the job-history file- Returns:
- URL encoded filename
- Throws:
IOException
-
decodeJobHistoryFileName
Helper function to decode the URL of the filename of the job-history log file.- Parameters:
logFileName- file name of the job-history file- Returns:
- URL decoded filename
- Throws:
IOException
-