|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectIndexerConfig
public class IndexerConfig
This class records configuration information about the current state of
the TextIndexer application.
The main TextIndexer class uses this class to maintain information about its
current processing state. This information includes:
- The path to the configuration file that defines indices to be created or
updated.
- The output (trace) level to display while processing indices.
- Whether or not the current index should be rebuilt from scratch (clean
build).
- Whether or not the indexes should be optimized after being built.
- The source text and index database directories to use for the current
index being processed. (This information is actually stored in a separate
IndexInfo sub-structure within IndexerConfig.)
Field Summary | |
---|---|
boolean |
buildLazyFiles
Flag indicating whether to build lazy files during the indexing process. |
String |
cfgFilePath
Path to the config file. |
boolean |
clean
Flag indicating whether or not to build index from scratch or incrementally. |
boolean |
force
Flag indicating whether or not to "force" indexing of items. |
IndexInfo |
indexInfo
Index specific information for the current index being created or updated. |
boolean |
mustClean
Flag indicating whether or not index must still be cleaned or not. |
boolean |
optimize
Flag indicating whether or not to optimize the index after building it. |
boolean |
rotate
Flag indicating whether or not to perform rotation (on indexes which are so marked). |
boolean |
skipIndexing
Flag indicating whether or not to skip the main indexing pass. |
int |
traceLevel
Trace level to output. |
boolean |
updateSpellDict
Flag indicating whether or not to build spelling dictionaries for the index after building it. |
boolean |
validate
Flag indicating whether or not to perform validation (on indexes which are so marked). |
String |
xtfHomePath
Path of the XTF home directory |
Constructor Summary | |
---|---|
IndexerConfig()
Default constructor. |
Method Summary | |
---|---|
int |
readCmdLine(String[] args,
int startArg)
Processes command line arguments to set the corresponding data members in this class. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String xtfHomePath
public String cfgFilePath
public int traceLevel
public boolean clean
public boolean mustClean
public boolean force
public boolean buildLazyFiles
public boolean optimize
public boolean updateSpellDict
public boolean skipIndexing
public boolean validate
public boolean rotate
public IndexInfo indexInfo
Constructor Detail |
---|
public IndexerConfig()
Method Detail |
---|
public int readCmdLine(String[] args, int startArg)
args
- A string containing the command line arguments passed to
the text indexer.startArg
- The character index at which to begin processing the next
command line argument.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |