Package org.terrier.utility.restructure
Class Terrier4
- java.lang.Object
-
- org.terrier.utility.restructure.Terrier4
-
public class Terrier4 extends java.lang.Object
This Class allows the updating of a Terrier 3.x index to the specification of Terrier 4.x index. The main difference between these versions from a structure perspective was that addition of pluggable compression within the IndexOnDisk.- Since:
- 4.0
- Author:
- Richard McCreadie
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
path
protected java.lang.String
prefix
protected java.util.Properties
properties
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
loadProperties(java.lang.String path, java.lang.String prefix)
loads in the properties file, falling back to the Terrier 1.xx log file if no properties exist.static void
main(java.lang.String[] args)
void
updateIndexProperties()
void
updateIndexProperties(java.util.Properties indexProperties)
This method takes re-writes the index properties for a Terrier 3.x index to making compatible with Terrier 4.x
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
updateIndexProperties
public void updateIndexProperties()
-
updateIndexProperties
public void updateIndexProperties(java.util.Properties indexProperties)
This method takes re-writes the index properties for a Terrier 3.x index to making compatible with Terrier 4.x- Parameters:
indexProperties
- properties object to alter
-
loadProperties
protected boolean loadProperties(java.lang.String path, java.lang.String prefix)
loads in the properties file, falling back to the Terrier 1.xx log file if no properties exist.
-
-