gov.nist.nlpir.irfapps.trec
Class TrecDocument
java.lang.Object
|
+--gov.nist.nlpir.irf.document.Document
|
+--gov.nist.nlpir.irfapps.trec.TrecDocument
- Direct Known Subclasses:
- CranfieldDocument, FbisDocument
- public abstract class TrecDocument
- extends Document
An extension of Document that should be common to all TREC documents.
Every TREC Collection may extend this document to have a particular type
containing the fields needed.
- Version:
- $Revision: 1.3 $
- Author:
- This software was produced by NIST, an agency of the
U.S. government, and by statute is not subject to copyright in the
United States. Recipients of this software assume all
responsibilities associated with its operation, modification and
maintenance.
- See Also:
Document
Field Summary |
ProxyDeString |
docNumber
|
(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 |
Method Summary |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.lang.String |
toString()
Returns string representation of TREC Document
#: docNumber |
Methods inherited from class gov.nist.nlpir.irf.document.Document |
addHTML,
finalize,
getFeatureNames,
getFeatureTypes,
getFeatureValues,
getFirstInstances,
getIndexingFeatures,
getIndexingModalities,
getQueryDocument,
index,
makeResultsForDocMatchingQuery,
present,
presentBrief,
retrieve,
setProxyRefsCountedTrue,
typeName |
Methods inherited from class java.lang.Object |
,
clone,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
serialVersionUID
static final 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
docNumber
public ProxyDeString docNumber
TrecDocument
public TrecDocument()
TrecDocument
public TrecDocument(java.lang.String docNr)
- Parameters:
docNr
- document number
TrecDocument
public TrecDocument(ProxyDeString docNr)
- Parameters:
docNr
- document number
toString
public java.lang.String toString()
- Returns string representation of TREC Document
#: docNumber
- Overrides:
- toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
- equals in class java.lang.Object