|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.clue.ClueWarcForwardIndex
public class ClueWarcForwardIndex
| Constructor Summary | |
|---|---|
ClueWarcForwardIndex()
|
|
| 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. |
ClueWarcRecord |
getDocument(int docno)
Fetches the document for a given docno. |
ClueWarcRecord |
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 ClueWarcForwardIndex()
| Method Detail |
|---|
public void loadIndex(Path index,
Path mapping,
FileSystem fs)
throws IOException
DocumentForwardIndex
loadIndex in interface DocumentForwardIndex<ClueWarcRecord>index - path of the index datamapping - path of the docno/docid mapping datafs - reference to the FileSystem
IOExceptionpublic String getCollectionPath()
DocumentForwardIndex
getCollectionPath in interface DocumentForwardIndex<ClueWarcRecord>public ClueWarcRecord getDocument(int docno)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<ClueWarcRecord>public ClueWarcRecord getDocument(String docid)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<ClueWarcRecord>public int getDocno(String docid)
DocumentForwardIndex
getDocno in interface DocumentForwardIndex<ClueWarcRecord>public String getDocid(int docno)
DocumentForwardIndex
getDocid in interface DocumentForwardIndex<ClueWarcRecord>public int getFirstDocno()
DocumentForwardIndex
getFirstDocno in interface DocumentForwardIndex<ClueWarcRecord>public int getLastDocno()
DocumentForwardIndex
getLastDocno in interface DocumentForwardIndex<ClueWarcRecord>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||