|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.indexing.Indexer
public abstract class Indexer
Properties:
| Constructor Summary | |
|---|---|
Indexer()
|
|
Indexer(java.lang.String path,
java.lang.String prefix)
Creates an instance of the class. |
|
| Method Summary | |
|---|---|
abstract void |
createDirectIndex(Collection[] collections)
An abstract method for creating the direct index, the document index and the lexicon for the given collections. |
abstract void |
createInvertedIndex()
An abstract method for creating the inverted index, given that the the direct index, the document index and the lexicon have already been created. |
void |
index(Collection[] collections)
Creates the data structures for a set of collections. |
boolean |
isUTFIndexing()
|
static void |
main(java.lang.String[] args)
|
static void |
merge(java.lang.String mpath,
java.lang.String mprefix,
int lowest,
int highest)
Merge a series of numbered indices in the same path/prefix area. |
static void |
merge(java.lang.String mpath,
java.lang.String mprefix,
java.util.LinkedList<java.lang.String[]> llist,
int counterMerged)
Merge a series of indices, in pair-wise fashion |
boolean |
useFieldInformation()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Indexer()
public Indexer(java.lang.String path,
java.lang.String prefix)
path - String the path where the generated data structures will be saved.prefix - String the filename that the data structures will have.| Method Detail |
|---|
public abstract void createDirectIndex(Collection[] collections)
collections - Collection[] An array of collections to indexpublic abstract void createInvertedIndex()
public void index(Collection[] collections)
collections - The document collection objects to index.
public static void merge(java.lang.String mpath,
java.lang.String mprefix,
int lowest,
int highest)
mpath - Path of all indicesmprefix - Common prefix of all indiceslowest - lowest subfix of prefixhighest - highest subfix of prefix
public static void merge(java.lang.String mpath,
java.lang.String mprefix,
java.util.LinkedList<java.lang.String[]> llist,
int counterMerged)
mpath - Common path of all indicesmprefix - Prefix of target indexcounterMerged - - number of indices to mergepublic boolean isUTFIndexing()
public boolean useFieldInformation()
public static void main(java.lang.String[] args)
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||