Class SmooshedFileMapper
java.lang.Object
org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper
- All Implemented Interfaces:
Closeable,AutoCloseable,SegmentFileMapper
Class that works in conjunction with FileSmoosher. This class knows how to map in a set of files smooshed
by the FileSmoosher.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.Interner<String>Interner for smoosh internal files, which includes all column names since every column has an internal file associated with it -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the list of files contained within in the segment file which can be retrieved withSegmentFileMapper.mapFile(String)static SmooshedFileMapperReturns a mappedByteBufferwhich of the contents of the internal file, or null if the file is not present in this segment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.file.SegmentFileMapper
mapExternalFile
-
Field Details
-
STRING_INTERNER
Interner for smoosh internal files, which includes all column names since every column has an internal file associated with it
-
-
Method Details
-
load
- Throws:
IOException
-
getInternalFilenames
Description copied from interface:SegmentFileMapperReturns the list of files contained within in the segment file which can be retrieved withSegmentFileMapper.mapFile(String)- Specified by:
getInternalFilenamesin interfaceSegmentFileMapper
-
mapFile
Description copied from interface:SegmentFileMapperReturns a mappedByteBufferwhich of the contents of the internal file, or null if the file is not present in this segment. The file data is from 0 toBuffer.capacity(),Buffer.limit()is equal to the capacity.- Specified by:
mapFilein interfaceSegmentFileMapper- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSegmentFileMapper
-