public class IndexUpgrader extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected static String[] |
REQUIRED_DIRECT_INDEX_FILE_EXTENSIONS
A minimal set of files required for a valid direct index.
|
protected static String[] |
REQUIRED_INDEX_FILE_EXTENSIONS
A minimal set of files required for a valid index.
|
protected static String[] |
REQUIRED_QS_DIRECT_INDEX_FILE_EXTENSIONS
A minimal set of files required for a valid quasi-succinct direct index.
|
protected static String[] |
REQUIRED_QS_INDEX_FILE_EXTENSIONS
A minimal set of files required for a valid quasi-succinct index.
|
Constructor and Description |
---|
IndexUpgrader() |
Modifier and Type | Method and Description |
---|---|
protected static void |
upgradeFromV7(File indexDirectory) |
static void |
upgradeIndex(File indexDirectory) |
protected static void |
upgradeSubIndex(File indexDirectory,
int subIndexIdx,
boolean direct,
IndexConfig.SemanticIndexerConfig mentionsConfig)
Moves the file belonging to one sub-index.
|
protected static org.slf4j.Logger logger
protected static final String[] REQUIRED_INDEX_FILE_EXTENSIONS
protected static final String[] REQUIRED_QS_INDEX_FILE_EXTENSIONS
protected static final String[] REQUIRED_DIRECT_INDEX_FILE_EXTENSIONS
protected static final String[] REQUIRED_QS_DIRECT_INDEX_FILE_EXTENSIONS
public static void upgradeIndex(File indexDirectory) throws IOException, IndexException
IOException
IndexException
protected static void upgradeSubIndex(File indexDirectory, int subIndexIdx, boolean direct, IndexConfig.SemanticIndexerConfig mentionsConfig) throws IndexException, IOException
indexDirectory
- the top level index directory for the Mímir
index being upgraded.subIndexIdx
- the index (position) of the sub-indexmentionsConfig
- if this is a mentions index, then this parameter
contains the mentions indexer config, null otherwise.direct
- doe this sub-index have a direct index also?IndexException
IOException
protected static void upgradeFromV7(File indexDirectory) throws IndexException, IOException
IndexException
IOException
Copyright © 2021 GATE. All rights reserved.