Class SegmentLocalFSDirectory
- java.lang.Object
-
- org.apache.pinot.segment.spi.store.SegmentDirectory
-
- org.apache.pinot.segment.local.segment.store.SegmentLocalFSDirectory
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SegmentLocalFSDirectory extends SegmentDirectory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSegmentLocalFSDirectory.ReaderSegmentDirectory ReaderclassSegmentLocalFSDirectory.WriterSegmentDirectory Writer
-
Constructor Summary
Constructors Constructor Description SegmentLocalFSDirectory(File directory)SegmentLocalFSDirectory(File directoryFile, SegmentMetadataImpl metadata, ReadMode readMode)SegmentLocalFSDirectory(File directory, ReadMode readMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcopyTo(File dest)SegmentLocalFSDirectory.ReadercreateReader()SegmentLocalFSDirectory.WritercreateWriter()Set<String>getColumnsWithIndex(IndexType<?,?,?> type)longgetDiskSizeBytes()URIgetIndexDir()PathgetPath()SegmentMetadataImplgetSegmentMetadata()StringgetTier()protected voidload()voidreloadMetadata()voidsetTier(String tier)StringtoString()-
Methods inherited from class org.apache.pinot.segment.spi.store.SegmentDirectory
acquire, prefetch, release
-
-
-
-
Constructor Detail
-
SegmentLocalFSDirectory
public SegmentLocalFSDirectory(File directory)
-
SegmentLocalFSDirectory
public SegmentLocalFSDirectory(File directory, ReadMode readMode) throws IOException, org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
IOExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
SegmentLocalFSDirectory
public SegmentLocalFSDirectory(File directoryFile, SegmentMetadataImpl metadata, ReadMode readMode)
-
-
Method Detail
-
getIndexDir
public URI getIndexDir()
- Specified by:
getIndexDirin classSegmentDirectory
-
copyTo
public void copyTo(File dest) throws Exception
- Overrides:
copyToin classSegmentDirectory- Throws:
Exception
-
getTier
@Nullable public String getTier()
- Specified by:
getTierin classSegmentDirectory
-
setTier
public void setTier(@Nullable String tier)- Specified by:
setTierin classSegmentDirectory
-
getSegmentMetadata
public SegmentMetadataImpl getSegmentMetadata()
- Specified by:
getSegmentMetadatain classSegmentDirectory
-
reloadMetadata
public void reloadMetadata() throws Exception- Specified by:
reloadMetadatain classSegmentDirectory- Throws:
Exception
-
getPath
public Path getPath()
- Specified by:
getPathin classSegmentDirectory
-
getDiskSizeBytes
public long getDiskSizeBytes()
- Specified by:
getDiskSizeBytesin classSegmentDirectory
-
getColumnsWithIndex
public Set<String> getColumnsWithIndex(IndexType<?,?,?> type)
- Specified by:
getColumnsWithIndexin classSegmentDirectory
-
createReader
public SegmentLocalFSDirectory.Reader createReader() throws IOException
- Specified by:
createReaderin classSegmentDirectory- Throws:
IOException
-
createWriter
public SegmentLocalFSDirectory.Writer createWriter() throws IOException
- Specified by:
createWriterin classSegmentDirectory- Throws:
IOException
-
toString
public String toString()
- Specified by:
toStringin classSegmentDirectory
-
load
protected void load() throws IOException, org.apache.commons.configuration2.ex.ConfigurationException- Throws:
IOExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
close
public void close() throws IOException- Throws:
IOException
-
-