public class MG4JTools extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
MG4JTools() |
Modifier and Type | Method and Description |
---|---|
static it.unimi.di.big.mg4j.index.Index |
openMg4jIndex(URI indexUri)
Opens one MG4J index.
|
static void |
upgradeIndex(URI indexUri)
Given a index URI (a file URI denoting the index base name for all the
index files), this method checks if the index if an older version, and
upgrades it to the current version, making sure it can be opened.
|
public static void upgradeIndex(URI indexUri) throws IOException, ClassNotFoundException, org.apache.commons.configuration.ConfigurationException
indexUri
- IOException
ClassNotFoundException
org.apache.commons.configuration.ConfigurationException
public static it.unimi.di.big.mg4j.index.Index openMg4jIndex(URI indexUri) throws org.apache.commons.configuration.ConfigurationException, SecurityException, IOException, URISyntaxException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
indexUri
- a URI denoting the basename for the index (a file path
with the correct basename, but no extension).Index
object.org.apache.commons.configuration.ConfigurationException
SecurityException
IOException
URISyntaxException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
Copyright © 2021 GATE. All rights reserved.