|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.modality.IndexingModalityUnit
Container for information relating an index, the feature (i.e.,
document field) on which it is built, the indexer used, etc.
Index
,
IndexingModalities
,
InfoServer
, Serialized FormField Summary | |
private java.lang.String |
featureName
Name of feature (i.e. |
private ProxyIndex |
index
Index for this feature, i.e., document field |
private Indexer |
indexer
An instance of the indexer for this IMU |
private java.lang.reflect.Field |
managedField
A an instance of Field class for the document field being indexed. |
private boolean |
proxyRefsCounted
Flag indicating refs to proxy indexes have been added to the table of in-memory proxies |
(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 | |
IndexingModalityUnit()
Constructor: sets a default indexer |
Method Summary | |
protected void |
finalize()
Performs clean-up just before being garbage collected |
java.lang.String |
getFeatureName()
Gets the feature name of this modality unit. |
DataElem |
getFeatureValue(Document theDoc)
Returns the data elements from 'fvals' corresponding to the featureName of this IMU. |
void |
getFirstInstances()
Removes proxy duplicated during deserialization - replace with references to a single instance of the proxy. |
ProxyIndex |
getIndex()
Gets index |
Indexer |
getIndexer()
Gets indexer for this modality unit |
java.lang.String |
getIndexName()
Gets index name |
void |
present()
Prints representation of indexing modality unit to standard output showing featureName, indexer, and indexName. |
void |
save()
If references from this object to its index have not been added to the table of in-memory proxies, then add the reference and mark it as added. |
void |
setFeatureName(java.lang.String name)
Sets feature name |
void |
setIndex(ProxyIndex index)
Sets index |
void |
setIndexer(Indexer ixr)
Sets indexer for this modality unit |
java.lang.String |
toString()
Returns string representation of indexing modality unit showing featureName, indexer, and indexName. |
boolean |
validate(DocumentIntrf r)
Validates this supplied document against this modality unit |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final long serialVersionUID
private java.lang.String featureName
private transient java.lang.reflect.Field managedField
private ProxyIndex index
private Indexer indexer
private boolean proxyRefsCounted
Constructor Detail |
public IndexingModalityUnit()
Method Detail |
public final java.lang.String getFeatureName()
public final void setFeatureName(java.lang.String name)
name
- new feature namepublic final Indexer getIndexer()
public final void setIndexer(Indexer ixr)
ixr
- indexerpublic final ProxyIndex getIndex()
public void setIndex(ProxyIndex index)
new
- indexpublic java.lang.String getIndexName()
public DataElem getFeatureValue(Document theDoc)
fnames
- collection of feature namesfvals
- collection of feature valuespublic void save()
public void present()
public java.lang.String toString()
public boolean validate(DocumentIntrf r)
public void getFirstInstances()
protected void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |