public class HdfsFileTimestampVersionFinder extends HdfsDataSegmentPuller implements SearchableVersionedDataFinder<URI>
HdfsDataSegmentPuller.HdfsIOException
config, DEFAULT_RETRY_COUNT
Constructor and Description |
---|
HdfsFileTimestampVersionFinder(org.apache.hadoop.conf.Configuration config) |
Modifier and Type | Method and Description |
---|---|
Class<URI> |
getDataDescriptorClass() |
URI |
getLatestVersion(URI uri,
Pattern pattern)
Returns the latest modified file at the uri of interest.
|
buildFileObject, buildFileObject, getInputStream, getInputStream, getSegmentFiles, getSegmentFiles, getSegmentFiles, getVersion, shouldRetryPredicate
@Inject public HdfsFileTimestampVersionFinder(org.apache.hadoop.conf.Configuration config)
public URI getLatestVersion(URI uri, Pattern pattern)
getLatestVersion
in interface SearchableVersionedDataFinder<URI>
uri
- Either a directory or a file on HDFS. If it is a file, the parent directory will be searched.pattern
- A pattern matcher for file names in the directory of interest. Passing `null` results in matching any file in the directory.public Class<URI> getDataDescriptorClass()
getDataDescriptorClass
in interface SearchableVersionedDataFinder<URI>
Copyright © 2011–2015. All rights reserved.