Package org.apache.druid.segment
Class IndexIO
- java.lang.Object
-
- org.apache.druid.segment.IndexIO
-
public class IndexIO extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexIO.DefaultIndexIOHandler
-
Field Summary
Fields Modifier and Type Field Description static ByteOrderBYTE_ORDERstatic intCURRENT_VERSION_IDstatic BitmapSerdeFactoryLEGACY_FACTORYstatic byteV8_VERSIONstatic byteV9_VERSION
-
Constructor Summary
Constructors Constructor Description IndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper, ColumnConfig columnConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckFileSize(File indexFile)QueryableIndexloadIndex(File inDir)QueryableIndexloadIndex(File inDir, boolean lazy, SegmentLazyLoadFailCallback loadFailed)static FilemakeDimFile(File dir, String dimension)static FilemakeMetricFile(File dir, String metricName, ByteOrder order)static FilemakeTimeFile(File dir, ByteOrder order)voidvalidateTwoSegments(File dir1, File dir2)voidvalidateTwoSegments(IndexableAdapter adapter1, IndexableAdapter adapter2)
-
-
-
Field Detail
-
V8_VERSION
public static final byte V8_VERSION
- See Also:
- Constant Field Values
-
V9_VERSION
public static final byte V9_VERSION
- See Also:
- Constant Field Values
-
CURRENT_VERSION_ID
public static final int CURRENT_VERSION_ID
- See Also:
- Constant Field Values
-
LEGACY_FACTORY
public static final BitmapSerdeFactory LEGACY_FACTORY
-
BYTE_ORDER
public static final ByteOrder BYTE_ORDER
-
-
Constructor Detail
-
IndexIO
@Inject public IndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper, ColumnConfig columnConfig)
-
-
Method Detail
-
validateTwoSegments
public void validateTwoSegments(File dir1, File dir2) throws IOException
- Throws:
IOException
-
validateTwoSegments
public void validateTwoSegments(IndexableAdapter adapter1, IndexableAdapter adapter2)
-
loadIndex
public QueryableIndex loadIndex(File inDir) throws IOException
- Throws:
IOException
-
loadIndex
public QueryableIndex loadIndex(File inDir, boolean lazy, SegmentLazyLoadFailCallback loadFailed) throws IOException
- Throws:
IOException
-
checkFileSize
public static void checkFileSize(File indexFile) throws IOException
- Throws:
IOException
-
-