Class SmooshedFileMapper
java.lang.Object
org.apache.druid.java.util.common.io.smoosh.SmooshedFileMapper
- All Implemented Interfaces:
Closeable,AutoCloseable
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()static SmooshedFileMapperReturns a mapped buffer of the smooshed file with the given name.
-
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
-
mapFile
Returns a mapped buffer of the smooshed file with the given name. Buffer's contents from 0 to capacity() are the whole mapped file contents, limit() is equal to capacity().- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-