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