Package org.terrier.utility.restructure
Class Terrier5
- java.lang.Object
-
- org.terrier.utility.restructure.Terrier5
-
public class Terrier5 extends java.lang.ObjectThis Class allows the updating of a Terrier 4.x index to the specification of Terrier 5.x index. The main difference between these versions from a structure perspective was that addition of pluggable compression within the IndexOnDisk.- Since:
- 5.0
- Author:
- Richard McCreadie and Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringpathprotected java.lang.Stringprefixprotected java.util.Propertiesproperties
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanloadProperties(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 voidmain(java.lang.String[] args)voidupdateIndexProperties()voidupdateIndexProperties(java.util.Properties indexProperties)This method takes re-writes the index properties for a Terrier 4.x index to making compatible with Terrier 5.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 4.x index to making compatible with Terrier 5.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.
-
-