public class LateFileRecordCountProvider extends RecordCountProvider
| Constructor and Description |
|---|
LateFileRecordCountProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
constructLateFilePath(String originalFilename,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path outputDir)
Construct filename for a late file.
|
long |
getRecordCount(org.apache.hadoop.fs.Path path)
Get record count from a given filename (possibly having LATE_COMPONENT{RandomInteger}), using the original
FileNameWithRecordCountFormat. |
static org.apache.hadoop.fs.Path |
restoreFilePath(org.apache.hadoop.fs.Path path)
Remove the late components in the path added by
LateFileRecordCountProvider. |
convertPath, getNotImplementedException, getRecordCountpublic org.apache.hadoop.fs.Path constructLateFilePath(String originalFilename, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path outputDir) throws IOException
IOExceptionpublic static org.apache.hadoop.fs.Path restoreFilePath(org.apache.hadoop.fs.Path path)
LateFileRecordCountProvider.public long getRecordCount(org.apache.hadoop.fs.Path path)
FileNameWithRecordCountFormat.getRecordCount in class RecordCountProvider