public class LocalFileTimestampVersionFinder extends LocalDataSegmentPuller implements SearchableVersionedDataFinder<URI>
Modifier and Type | Field and Description |
---|---|
static String |
URI_SCHEME |
DEFAULT_RETRY_COUNT
Constructor and Description |
---|
LocalFileTimestampVersionFinder() |
Modifier and Type | Method and Description |
---|---|
Class<URI> |
getDataDescriptorClass() |
URI |
getLatestVersion(URI uri,
Pattern pattern)
Matches based on a pattern in the file name.
|
buildFileObject, getInputStream, getSegmentFiles, getSegmentFiles, getVersion, shouldRetryPredicate
public static final String URI_SCHEME
public URI getLatestVersion(URI uri, Pattern pattern)
getLatestVersion
in interface SearchableVersionedDataFinder<URI>
uri
- If it is a file, then the parent is searched. If it is a directory, then the directory is searched.pattern
- The matching filter to down-select the file names in the directory of interest. Passing `null` results in matching any filepublic Class<URI> getDataDescriptorClass()
getDataDescriptorClass
in interface SearchableVersionedDataFinder<URI>
Copyright © 2011–2015. All rights reserved.