|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.InfoObj | +--gov.nist.nlpir.irf.index.Index
Provides some basic index information and access to the index features. It also provides basic functionality for using the index. This class is aimed to extension in order to provide specific kinds of index: with Inversed Document Frequency, for example (see IdfIndex) or with Key word (see KeyWordIndex).
InfoObj
,
IdfIndex
,
KeyWordIndex
, Serialized FormField Summary | |
protected java.lang.String |
appliedIndexer
the name of the indexer used to create this index |
protected IdxIntern |
IFs
the index itself |
protected java.lang.String |
indexName
the name of the index |
(package private) static long |
serialVersionUID
serial version universal id - put here so Java does not insert one which may change due to revisions and make it impossible to deserialize earlier versions of serialized objects |
Constructor Summary | |
Index()
No argument constructor only used by deserialization mechanism. |
|
Index(java.lang.String name)
Creates an Index with the supplied name and sets the appliedIndexer to "none". |
Method Summary | |
boolean |
addIndexingFeatures(java.util.Vector indexingFeatures,
Indexer anIndexer)
Add indexing features. |
boolean |
checkIndexer(Indexer anIndexer)
Verifies that the same indexer is applied consistantly. |
void |
clear()
Clears the index and its features. |
java.util.Enumeration |
getFeatures()
Returns the features for which indexing features have been stored. |
java.lang.String |
getName()
Gets the index name. |
java.util.Enumeration |
getSources()
Returns the sources for which indexing features have been stored. |
void |
present()
Presents the status of the index and its features. |
void |
presentStatistics()
Presents the status of the index and its feature statistics. |
java.util.Vector |
retrieve(QueryModalityUnit qm,
java.util.Vector setIF)
Executes a search and retrieves documents. |
void |
showStatistics(int depth,
int maxLengthIf3)
statistics about the index. |
java.lang.String |
toString()
Gives a String Representaiton of the Index. |
void |
update()
Updates the index and its features. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final long serialVersionUID
protected java.lang.String indexName
protected java.lang.String appliedIndexer
protected IdxIntern IFs
Constructor Detail |
public Index(java.lang.String name)
name
- index name.public Index()
Method Detail |
public java.lang.String getName()
public java.util.Enumeration getFeatures()
public java.util.Enumeration getSources()
public void update()
public void clear()
public java.util.Vector retrieve(QueryModalityUnit qm, java.util.Vector setIF)
qm
- Query Modality UnitsetIF
- Vector of indexing featurespublic void present()
public void presentStatistics()
public java.lang.String toString()
public boolean checkIndexer(Indexer anIndexer)
an_Indexer
- an indexerpublic boolean addIndexingFeatures(java.util.Vector indexingFeatures, Indexer anIndexer)
indexingFeatures
- Vector of indexing features.anIndexer
- an indexer.public void showStatistics(int depth, int maxLengthIf3)
deep
- depth of the statistics in the intern indexmaxLengthIf3
- maximum number of characters printed.PersistentDualKeyContainer.showStatistics(int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |