public class OmniSegmentLoader extends Object implements SegmentLoader
| Constructor and Description |
|---|
OmniSegmentLoader(Map<String,io.druid.segment.loading.DataSegmentPuller> pullers,
QueryableIndexFactory factory,
SegmentLoaderConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(io.druid.timeline.DataSegment segment) |
void |
cleanupCacheFiles(File baseFile,
File cacheFile) |
io.druid.segment.loading.StorageLocation |
findStorageLocationIfLoaded(io.druid.timeline.DataSegment segment) |
Segment |
getSegment(io.druid.timeline.DataSegment segment) |
File |
getSegmentFiles(io.druid.timeline.DataSegment segment) |
boolean |
isSegmentLoaded(io.druid.timeline.DataSegment segment) |
OmniSegmentLoader |
withConfig(SegmentLoaderConfig config) |
@Inject public OmniSegmentLoader(Map<String,io.druid.segment.loading.DataSegmentPuller> pullers, QueryableIndexFactory factory, SegmentLoaderConfig config)
public OmniSegmentLoader withConfig(SegmentLoaderConfig config)
public boolean isSegmentLoaded(io.druid.timeline.DataSegment segment)
isSegmentLoaded in interface SegmentLoaderpublic io.druid.segment.loading.StorageLocation findStorageLocationIfLoaded(io.druid.timeline.DataSegment segment)
public Segment getSegment(io.druid.timeline.DataSegment segment) throws io.druid.segment.loading.SegmentLoadingException
getSegment in interface SegmentLoaderio.druid.segment.loading.SegmentLoadingExceptionpublic File getSegmentFiles(io.druid.timeline.DataSegment segment) throws io.druid.segment.loading.SegmentLoadingException
getSegmentFiles in interface SegmentLoaderio.druid.segment.loading.SegmentLoadingExceptionpublic void cleanup(io.druid.timeline.DataSegment segment)
throws io.druid.segment.loading.SegmentLoadingException
cleanup in interface SegmentLoaderio.druid.segment.loading.SegmentLoadingExceptionpublic void cleanupCacheFiles(File baseFile, File cacheFile) throws IOException
IOExceptionCopyright © 2015. All rights reserved.