public class LocalDataSegmentPuller extends Object implements URIDataPuller
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RETRY_COUNT |
| Constructor and Description |
|---|
LocalDataSegmentPuller() |
| Modifier and Type | Method and Description |
|---|---|
static FileObject |
buildFileObject(URI uri) |
InputStream |
getInputStream(URI uri) |
void |
getSegmentFiles(DataSegment segment,
File dir) |
FileUtils.FileCopyResult |
getSegmentFiles(File sourceFile,
File dir) |
String |
getVersion(URI uri)
Returns the "version" (aka last modified timestamp) of the URI of interest
|
com.google.common.base.Predicate<Throwable> |
shouldRetryPredicate() |
public static final int DEFAULT_RETRY_COUNT
public static FileObject buildFileObject(URI uri)
public void getSegmentFiles(DataSegment segment, File dir) throws SegmentLoadingException
SegmentLoadingExceptionpublic FileUtils.FileCopyResult getSegmentFiles(File sourceFile, File dir) throws SegmentLoadingException
SegmentLoadingExceptionpublic InputStream getInputStream(URI uri) throws IOException
getInputStream in interface URIDataPullerIOExceptionpublic String getVersion(URI uri)
getVersion in interface URIDataPulleruri - The URI to check the last modified timestamppublic com.google.common.base.Predicate<Throwable> shouldRetryPredicate()
shouldRetryPredicate in interface URIDataPullerCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.