public class LocalDataSegmentPuller extends Object implements io.druid.segment.loading.DataSegmentPuller, io.druid.segment.loading.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(io.druid.timeline.DataSegment segment,
File dir) |
com.metamx.common.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(io.druid.timeline.DataSegment segment,
File dir)
throws io.druid.segment.loading.SegmentLoadingException
getSegmentFiles in interface io.druid.segment.loading.DataSegmentPullerio.druid.segment.loading.SegmentLoadingExceptionpublic com.metamx.common.FileUtils.FileCopyResult getSegmentFiles(File sourceFile, File dir) throws io.druid.segment.loading.SegmentLoadingException
io.druid.segment.loading.SegmentLoadingExceptionpublic InputStream getInputStream(URI uri) throws IOException
getInputStream in interface io.druid.segment.loading.URIDataPullerIOExceptionpublic String getVersion(URI uri)
getVersion in interface io.druid.segment.loading.URIDataPulleruri - The URI to check the last modified timestamppublic com.google.common.base.Predicate<Throwable> shouldRetryPredicate()
shouldRetryPredicate in interface io.druid.segment.loading.URIDataPullerCopyright © 2011–2015. All rights reserved.