Package org.terrier.applications
Class TRECIndexing
- java.lang.Object
-
- org.terrier.applications.BatchIndexing
-
- org.terrier.applications.TRECIndexing
-
- Direct Known Subclasses:
TRECIndexingSinglePass
public class TRECIndexing extends BatchIndexing
This class creates the indices for a test collection.Properties:
- trec.indexer.class - name of the class to use as the indexer. This only applies to the Index method.
- trec.collection.class - name of the class to use as the Collection.
- Author:
- Gianni Amati, Vassilis Plachouras, Ben He, Craig Macdonald
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terrier.applications.BatchIndexing
BatchIndexing.Command
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectioncollectionTRECThe collection to index.-
Fields inherited from class org.terrier.applications.BatchIndexing
blocks, collectionClassName, collectionFiles, collectionSpec, externalParalllism, logger, path, prefix
-
-
Constructor Summary
Constructors Constructor Description TRECIndexing()A default constructor that initialised the data structures to use for indexing.TRECIndexing(java.lang.String _path, java.lang.String _prefix)TRECIndexing(java.lang.String _path, java.lang.String _prefix, java.lang.String collectionSpec)A constructor that initialised the data structures to use for indexing.TRECIndexing(java.lang.String _path, java.lang.String _prefix, Collection c)A constructor that initialised the data structures to use for indexing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidindex()Calls the method index(Collection[]) of the class Indexer in order to build the data structures for a set of collections.protected IndexerloadIndexer(java.lang.String pa, java.lang.String pr)static voidmain(java.lang.String[] args)Used for testing purposes.-
Methods inherited from class org.terrier.applications.BatchIndexing
getExternalParalllism, loadCollection, loadCollection, setCollectionName, setCollectionSpec, setExternalParalllism
-
-
-
-
Field Detail
-
collectionTREC
protected Collection collectionTREC
The collection to index.
-
-
Constructor Detail
-
TRECIndexing
public TRECIndexing(java.lang.String _path, java.lang.String _prefix)
-
TRECIndexing
public TRECIndexing(java.lang.String _path, java.lang.String _prefix, java.lang.String collectionSpec)A constructor that initialised the data structures to use for indexing.- Parameters:
_path- Absolute path to where the index should be created_prefix- Prefix of the index files, usually "data"
-
TRECIndexing
public TRECIndexing(java.lang.String _path, java.lang.String _prefix, Collection c)A constructor that initialised the data structures to use for indexing.- Parameters:
_path- Absolute path to where the index should be created_prefix- Prefix of the index files, usually "data"
-
TRECIndexing
public TRECIndexing()
A default constructor that initialised the data structures to use for indexing.
-
-
Method Detail
-
loadIndexer
protected Indexer loadIndexer(java.lang.String pa, java.lang.String pr)
-
index
public void index()
Calls the method index(Collection[]) of the class Indexer in order to build the data structures for a set of collections. This particular method of the Indexer uses a set of builders for a subset of the collection and builds separate data structures, which are later merged.- Specified by:
indexin classBatchIndexing
-
main
public static void main(java.lang.String[] args)
Used for testing purposes.- Parameters:
args- the command line arguments.
-
-