Package org.apache.druid.segment.loading
Class LocalDataSegmentPuller
java.lang.Object
org.apache.druid.segment.loading.LocalDataSegmentPuller
- All Implemented Interfaces:
URIDataPuller
- Direct Known Subclasses:
LocalFileTimestampVersionFinder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileObjectbuildFileObject(URI uri) getInputStream(URI uri) getSegmentFiles(File sourceFile, File dir) getVersion(URI uri) Returns the "version" (aka last modified timestamp) of the URI of interestcom.google.common.base.Predicate<Throwable>
-
Field Details
-
DEFAULT_RETRY_COUNT
public static final int DEFAULT_RETRY_COUNT- See Also:
-
-
Constructor Details
-
LocalDataSegmentPuller
public LocalDataSegmentPuller()
-
-
Method Details
-
buildFileObject
-
getSegmentFiles
public FileUtils.FileCopyResult getSegmentFiles(File sourceFile, File dir) throws SegmentLoadingException - Throws:
SegmentLoadingException
-
getInputStream
- Specified by:
getInputStreamin interfaceURIDataPuller- Throws:
IOException
-
getVersion
Returns the "version" (aka last modified timestamp) of the URI of interest- Specified by:
getVersionin interfaceURIDataPuller- Parameters:
uri- The URI to check the last modified timestamp- Returns:
- The last modified timestamp in ms of the URI in String format
-
shouldRetryPredicate
- Specified by:
shouldRetryPredicatein interfaceURIDataPuller
-