Package org.apache.druid.segment
Class IndexIO
java.lang.Object
org.apache.druid.segment.IndexIO
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteOrderstatic final intstatic final BitmapSerdeFactorystatic final bytestatic final byte -
Constructor Summary
ConstructorsConstructorDescriptionIndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper, ColumnConfig columnConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckFileSize(File indexFile) loadIndex(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 Details
-
V8_VERSION
public static final byte V8_VERSION- See Also:
-
V9_VERSION
public static final byte V9_VERSION- See Also:
-
CURRENT_VERSION_ID
public static final int CURRENT_VERSION_ID- See Also:
-
LEGACY_FACTORY
-
BYTE_ORDER
-
-
Constructor Details
-
IndexIO
@Inject public IndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper, ColumnConfig columnConfig)
-
-
Method Details
-
validateTwoSegments
- Throws:
IOException
-
validateTwoSegments
-
loadIndex
- Throws:
IOException
-
loadIndex
public QueryableIndex loadIndex(File inDir, boolean lazy, SegmentLazyLoadFailCallback loadFailed) throws IOException - Throws:
IOException
-
checkFileSize
- Throws:
IOException
-
makeDimFile
-
makeTimeFile
-
makeMetricFile
-