public class Indexor
extends java.lang.Object
Extractor. They are added to
a given index. Note that the index is not overwritten, but the documents are appended.| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
count |
protected java.lang.String |
indexPath |
protected java.util.LinkedList<java.io.File> |
inputFiles |
protected static boolean |
verbose |
| 构造器和说明 |
|---|
Indexor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInputFile(java.io.File inputFile) |
protected void |
addToDocument(GlobalFeature feature,
org.apache.lucene.document.Document document,
java.lang.String featureFieldName)
Overwrite this method if you want to filter the input, apply hashing, etc.
|
protected boolean |
isConfigured() |
static void |
main(java.lang.String[] args) |
protected static void |
printHelp()
Just prints help.
|
void |
run() |
void |
setIndexPath(java.lang.String indexPath) |
protected java.util.LinkedList<java.io.File> inputFiles
protected java.lang.String indexPath
protected static boolean verbose
protected int count
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionprotected boolean isConfigured()
protected static void printHelp()
public void run()
protected void addToDocument(GlobalFeature feature, org.apache.lucene.document.Document document, java.lang.String featureFieldName)
feature - the current feature.document - the current document.featureFieldName - the field hashFunctionsFileName of the feature.public void addInputFile(java.io.File inputFile)
public void setIndexPath(java.lang.String indexPath)