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 SegmentLoader
public 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 SegmentLoader
io.druid.segment.loading.SegmentLoadingException
public File getSegmentFiles(io.druid.timeline.DataSegment segment) throws io.druid.segment.loading.SegmentLoadingException
getSegmentFiles
in interface SegmentLoader
io.druid.segment.loading.SegmentLoadingException
public void cleanup(io.druid.timeline.DataSegment segment) throws io.druid.segment.loading.SegmentLoadingException
cleanup
in interface SegmentLoader
io.druid.segment.loading.SegmentLoadingException
public void cleanupCacheFiles(File baseFile, File cacheFile) throws IOException
IOException
Copyright © 2011–2015. All rights reserved.