public class IndexIO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexIO.DefaultIndexIOHandler |
Modifier and Type | Field and Description |
---|---|
static ByteOrder |
BYTE_ORDER |
static int |
CURRENT_VERSION_ID |
static byte |
V8_VERSION |
static byte |
V9_VERSION |
Constructor and Description |
---|
IndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper,
SegmentWriteOutMediumFactory defaultSegmentWriteOutMediumFactory,
ColumnConfig columnConfig) |
Modifier and Type | Method and Description |
---|---|
static void |
checkFileSize(File indexFile) |
boolean |
convertSegment(File toConvert,
File converted,
IndexSpec indexSpec,
boolean forceIfCurrent,
boolean validate,
SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) |
static int |
getVersionFromDir(File inDir) |
QueryableIndex |
loadIndex(File inDir) |
static File |
makeDimFile(File dir,
String dimension) |
static File |
makeMetricFile(File dir,
String metricName,
ByteOrder order) |
static File |
makeTimeFile(File dir,
ByteOrder order) |
static void |
validateRowValues(Map<String,DimensionHandler> dimHandlers,
Rowboat rb1,
IndexableAdapter adapter1,
Rowboat rb2,
IndexableAdapter adapter2) |
void |
validateTwoSegments(File dir1,
File dir2) |
void |
validateTwoSegments(IndexableAdapter adapter1,
IndexableAdapter adapter2) |
public static final byte V8_VERSION
public static final byte V9_VERSION
public static final int CURRENT_VERSION_ID
public static final ByteOrder BYTE_ORDER
@Inject public IndexIO(com.fasterxml.jackson.databind.ObjectMapper mapper, SegmentWriteOutMediumFactory defaultSegmentWriteOutMediumFactory, ColumnConfig columnConfig)
public void validateTwoSegments(File dir1, File dir2) throws IOException
IOException
public void validateTwoSegments(IndexableAdapter adapter1, IndexableAdapter adapter2)
public QueryableIndex loadIndex(File inDir) throws IOException
IOException
public static int getVersionFromDir(File inDir) throws IOException
IOException
public static void checkFileSize(File indexFile) throws IOException
IOException
public boolean convertSegment(File toConvert, File converted, IndexSpec indexSpec, boolean forceIfCurrent, boolean validate, @Nullable SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) throws IOException
IOException
public static void validateRowValues(Map<String,DimensionHandler> dimHandlers, Rowboat rb1, IndexableAdapter adapter1, Rowboat rb2, IndexableAdapter adapter2)
Copyright © 2011–2018. All rights reserved.