|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.aquaint2.Aquaint2ForwardIndex
public class Aquaint2ForwardIndex
Object representing a document forward index for AQUAINT2 collections.
| Constructor Summary | |
|---|---|
Aquaint2ForwardIndex()
|
|
| Method Summary | |
|---|---|
String |
getCollectionPath()
Returns the base path of the collection. |
String |
getDocid(int docno)
Returns the docid, given the docno. |
int |
getDocno(String docid)
Returns the docno, given the docid. |
Aquaint2Document |
getDocument(int docno)
Fetches the document for a given docno. |
Aquaint2Document |
getDocument(String docid)
Fetches the document for a given docid. |
int |
getFirstDocno()
Returns the first docno in the collection. |
int |
getLastDocno()
Returns the last docno in the collection. |
void |
loadIndex(Path index,
Path mapping,
FileSystem fs)
Loads the index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Aquaint2ForwardIndex()
| Method Detail |
|---|
public int getDocno(String docid)
DocumentForwardIndex
getDocno in interface DocumentForwardIndex<Aquaint2Document>public String getDocid(int docno)
DocumentForwardIndex
getDocid in interface DocumentForwardIndex<Aquaint2Document>public int getLastDocno()
DocumentForwardIndex
getLastDocno in interface DocumentForwardIndex<Aquaint2Document>public int getFirstDocno()
DocumentForwardIndex
getFirstDocno in interface DocumentForwardIndex<Aquaint2Document>public String getCollectionPath()
DocumentForwardIndex
getCollectionPath in interface DocumentForwardIndex<Aquaint2Document>public Aquaint2Document getDocument(String docid)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<Aquaint2Document>public Aquaint2Document getDocument(int docno)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<Aquaint2Document>
public void loadIndex(Path index,
Path mapping,
FileSystem fs)
throws IOException
DocumentForwardIndex
loadIndex in interface DocumentForwardIndex<Aquaint2Document>index - path of the index datamapping - path of the docno/docid mapping datafs - reference to the FileSystem
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||