|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.invertedindex.core.ManagedIndexer
public final class ManagedIndexer
A class to build an inverted index from inverted file(s). The created index is static and read-only.
Constructor Summary | |
---|---|
ManagedIndexer()
|
Method Summary | ||
---|---|---|
static
|
index(java.lang.Class<V> clazz,
Configuration config)
Builds an inverted index from pseudo or real inverted files whose value type is defined by the generic parameter <V> , which is
some derivative of Value . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedIndexer()
Method Detail |
---|
public static final <V extends Value> Properties index(java.lang.Class<V> clazz, Configuration config)
Builds an inverted index from pseudo or real inverted files whose
value type is defined by the generic parameter <V>
, which is
some derivative of Value
.
Please read the documentation according to the type of your input
files to setup the Configuration
object properly. There are also
some limitations compared to indexing with Indexer
to keep in
mind.
IntString
) are not allowed.The configuration parameter required for this job are:
Configuration.setIndexDirectory(java.io.File)
Configuration.setInputDirectory(java.io.File)
Configuration.setKeySorting(KeySorting)
(leave blank if unsure)Configuration.setValueSorting(ValueSorting)
(disabled by default)
V
- the value type parameterclazz
- the class object of the value typeconfig
- the indexing job configuration
Properties
object with some
information about the created index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |