|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of documentpublic interface DocumentForwardIndex<T extends Indexable>
Interface for a document forward index.
| 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 |
T |
getDocument(int docno)
Fetches the document for a given docno. |
T |
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(String indexFile,
String mappingDataFile)
Loads the index. |
| Method Detail |
|---|
int getDocno(String docid)
String getDocid(int docno)
T getDocument(int docno)
T getDocument(String docid)
int getFirstDocno()
int getLastDocno()
void loadIndex(String indexFile,
String mappingDataFile)
throws IOException
IOExceptionString getCollectionPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||