public class IndexableAnchorTextForwardIndex extends Object implements DocumentForwardIndex<IndexableAnchorText>
| Constructor and Description |
|---|
IndexableAnchorTextForwardIndex(DocnoMapping docnoMapping) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionPath()
Returns the base path of the collection.
|
String |
getContentType() |
String |
getDisplayContentType() |
String |
getDocid(int docno)
Returns the docid, given the docno.
|
int |
getDocno(String docid)
Returns the docno, given the docid.
|
IndexableAnchorText |
getDocument(int docno)
Fetches the document for a given docno.
|
IndexableAnchorText |
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(org.apache.hadoop.fs.Path index,
org.apache.hadoop.fs.Path mapping,
org.apache.hadoop.fs.FileSystem fs)
Loads the index.
|
public IndexableAnchorTextForwardIndex(DocnoMapping docnoMapping)
public void loadIndex(org.apache.hadoop.fs.Path index,
org.apache.hadoop.fs.Path mapping,
org.apache.hadoop.fs.FileSystem fs)
throws IOException
DocumentForwardIndexloadIndex in interface DocumentForwardIndex<IndexableAnchorText>index - path of the index datamapping - path of the docno/docid mapping datafs - reference to the FileSystemIOExceptionpublic String getCollectionPath()
DocumentForwardIndexgetCollectionPath in interface DocumentForwardIndex<IndexableAnchorText>public IndexableAnchorText getDocument(int docno)
DocumentForwardIndexgetDocument in interface DocumentForwardIndex<IndexableAnchorText>public IndexableAnchorText getDocument(String docid)
DocumentForwardIndexgetDocument in interface DocumentForwardIndex<IndexableAnchorText>public int getDocno(String docid)
DocumentForwardIndexgetDocno in interface DocumentForwardIndex<IndexableAnchorText>public String getDocid(int docno)
DocumentForwardIndexgetDocid in interface DocumentForwardIndex<IndexableAnchorText>public int getFirstDocno()
DocumentForwardIndexgetFirstDocno in interface DocumentForwardIndex<IndexableAnchorText>public int getLastDocno()
DocumentForwardIndexgetLastDocno in interface DocumentForwardIndex<IndexableAnchorText>public String getContentType()
public String getDisplayContentType()
Copyright © 2015. All rights reserved.