public class IngestionRecordCountProvider extends RecordCountProvider
RecordCountProvider, which provides record count from file path.
The file path should follow the pattern: {Filename}.{RecordCount}.{Extension}.
For example, given a file path: "/a/b/c/file.123.avro", the record count will be 123.| Constructor and Description |
|---|
IngestionRecordCountProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
constructFilePath(String oldFilePath,
long recordCounts)
Construct a new file path by appending record count to the filename of the given file path, separated by SEPARATOR.
|
long |
getRecordCount(org.apache.hadoop.fs.Path filepath)
The record count should be the last component before the filename extension.
|
convertPath, getNotImplementedException, getRecordCountpublic static String constructFilePath(String oldFilePath, long recordCounts)
public long getRecordCount(org.apache.hadoop.fs.Path filepath)
getRecordCount in class RecordCountProvider