public class SegmentLoaderLocalCacheManager extends Object implements SegmentLoader
| Constructor and Description |
|---|
SegmentLoaderLocalCacheManager(IndexIO indexIO,
SegmentLoaderConfig config,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(DataSegment segment) |
void |
cleanupCacheFiles(File baseFile,
File cacheFile) |
io.druid.segment.loading.StorageLocation |
findStorageLocationIfLoaded(DataSegment segment) |
Segment |
getSegment(DataSegment segment) |
File |
getSegmentFiles(DataSegment segment) |
List<io.druid.segment.loading.StorageLocation> |
getSortedList(List<io.druid.segment.loading.StorageLocation> locs) |
boolean |
isSegmentLoaded(DataSegment segment) |
SegmentLoaderLocalCacheManager |
withConfig(SegmentLoaderConfig config) |
@Inject public SegmentLoaderLocalCacheManager(IndexIO indexIO, SegmentLoaderConfig config, com.fasterxml.jackson.databind.ObjectMapper mapper)
public SegmentLoaderLocalCacheManager withConfig(SegmentLoaderConfig config)
public boolean isSegmentLoaded(DataSegment segment)
isSegmentLoaded in interface SegmentLoaderpublic io.druid.segment.loading.StorageLocation findStorageLocationIfLoaded(DataSegment segment)
public Segment getSegment(DataSegment segment) throws SegmentLoadingException
getSegment in interface SegmentLoaderSegmentLoadingExceptionpublic File getSegmentFiles(DataSegment segment) throws SegmentLoadingException
getSegmentFiles in interface SegmentLoaderSegmentLoadingExceptionpublic void cleanup(DataSegment segment) throws SegmentLoadingException
cleanup in interface SegmentLoaderSegmentLoadingExceptionpublic void cleanupCacheFiles(File baseFile, File cacheFile) throws IOException
IOExceptionCopyright © 2011–2017. All rights reserved.