public class ProximityHashingIndexor
extends java.lang.Object
Extractor. They are added to
a given index. Note that the index is not overwritten, but the documents are appended.
This one implements the proximity approach "metric spaces" based on the work of Giuseppe Amato.
See Gennaro, Claudio, et al. "An approach to content-based image retrieval based on the Lucene search engine
library." Research and Advanced Technology for Digital Libraries. Springer Berlin Heidelberg, 2010. 55-66.| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Class |
featureClass |
protected java.lang.String |
indexPath |
protected java.util.LinkedList<java.io.File> |
inputFiles |
protected static boolean |
verbose |
| 构造器和说明 |
|---|
ProximityHashingIndexor() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
setFeatureClass(java.lang.Class featureClass) |
void |
setIndexPath(java.lang.String indexPath) |
protected java.util.LinkedList<java.io.File> inputFiles
protected java.lang.String indexPath
protected static boolean verbose
protected java.lang.Class featureClass
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 setFeatureClass(java.lang.Class featureClass)
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)