public class SegmentLoaderLocalCacheManager extends Object implements SegmentLoader
| Constructor and Description |
|---|
SegmentLoaderLocalCacheManager(QueryableIndexFactory factory,
SegmentLoaderConfig config,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
| 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) |
SegmentLoaderLocalCacheManager |
withConfig(SegmentLoaderConfig config) |
@Inject public SegmentLoaderLocalCacheManager(QueryableIndexFactory factory, SegmentLoaderConfig config, com.fasterxml.jackson.databind.ObjectMapper mapper)
public SegmentLoaderLocalCacheManager 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 © 2011–2015. All rights reserved.