Class DefaultSegmentDirectoryLoader
- java.lang.Object
-
- org.apache.pinot.segment.local.loader.DefaultSegmentDirectoryLoader
-
- All Implemented Interfaces:
SegmentDirectoryLoader
public class DefaultSegmentDirectoryLoader extends Object implements SegmentDirectoryLoader
Default implementation ofSegmentDirectoryLoader
-
-
Constructor Summary
Constructors Constructor Description DefaultSegmentDirectoryLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(SegmentDirectoryLoaderContext segmentLoaderContext)SegmentDirectoryload(URI indexDir, SegmentDirectoryLoaderContext segmentLoaderContext)Creates and loads theSegmentLocalFSDirectorywhich is the default implementation ofSegmentDirectory-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.loader.SegmentDirectoryLoader
needsTierMigration
-
-
-
-
Method Detail
-
load
public SegmentDirectory load(URI indexDir, SegmentDirectoryLoaderContext segmentLoaderContext) throws Exception
Creates and loads theSegmentLocalFSDirectorywhich is the default implementation ofSegmentDirectory- Specified by:
loadin interfaceSegmentDirectoryLoader- Parameters:
indexDir- segment index directorysegmentLoaderContext- context for instantiation of the SegmentDirectory- Returns:
- instance of
SegmentLocalFSDirectory - Throws:
Exception
-
delete
public void delete(SegmentDirectoryLoaderContext segmentLoaderContext) throws Exception
- Specified by:
deletein interfaceSegmentDirectoryLoader- Throws:
Exception
-
-