|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.feature.IndexingFeature
Container for elements of an Indexing Feature (IF): the feature itself (e.g., a term in a text document), the source document that it was generated from and the field within the source from which it was extracted.
Field Summary | |
private ProxyDataElem |
feature
The feature itself, e.g., a term from a text document |
private boolean |
proxyRefsCountedTrue
The boolean to manage the inMemoryProxiesByOid table. |
private ProxyDocument |
sourceDoc
The document from which the feature was extracted |
private ProxyDataElem |
sourceField
The document field from which the feature was extracted |
Constructor Summary | |
IndexingFeature(ProxyDataElem feature,
ProxyDocument sourceDoc,
ProxyDataElem sourceField)
Constructs a new indexing feature |
Method Summary | |
void |
finalize()
This method is mandatory to manage the inMemoryProxiesByOid table in the case those references were counted for this object. |
ProxyDataElem |
getFeature()
Gets the IF's stored feature |
ProxyDocument |
getSourceDoc()
Gets this IF's source document |
ProxyDataElem |
getSourceField()
Gets the field this IF was extracted from. |
void |
setFeature(ProxyDataElem feature)
Sets this IF's feature |
void |
setProxyRefsCountedTrue()
This method must be called if the IndexingFeature has registered its references to its different parts. |
void |
setSourceDoc(ProxyDocument sourceDoc)
Sets this IF's source document |
void |
setSourceField(ProxyDataElem sourceField)
Sets the document field this IF was found in. |
java.lang.String |
toString()
Returns a string representation of indexing feature showing feature and source. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private ProxyDataElem feature
private ProxyDocument sourceDoc
private ProxyDataElem sourceField
private boolean proxyRefsCountedTrue
Constructor Detail |
public IndexingFeature(ProxyDataElem feature, ProxyDocument sourceDoc, ProxyDataElem sourceField)
f
- feature to be storeds
- source document to be storedMethod Detail |
public final ProxyDataElem getFeature()
public final ProxyDocument getSourceDoc()
public final void setFeature(ProxyDataElem feature)
f
- feature to be storedpublic final void setSourceDoc(ProxyDocument sourceDoc)
s
- source document to be storedpublic final ProxyDataElem getSourceField()
public final void setSourceField(ProxyDataElem sourceField)
public java.lang.String toString()
public final void setProxyRefsCountedTrue()
public void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |