public class HashingIndexor extends Indexor
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Class |
featureClass |
count, indexPath, inputFiles, verbose| 构造器和说明 |
|---|
HashingIndexor() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
static void |
main(java.lang.String[] args) |
void |
setFeatureClass(java.lang.Class featureClass) |
addInputFile, isConfigured, printHelp, run, setIndexPathpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic void setFeatureClass(java.lang.Class featureClass)
protected void addToDocument(GlobalFeature feature, org.apache.lucene.document.Document document, java.lang.String featureFieldName)
IndexoraddToDocument 在类中 Indexorfeature - the current feature.document - the current document.featureFieldName - the field hashFunctionsFileName of the feature.