|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.trecweb.Gov2DocnoMapping
public class Gov2DocnoMapping
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.umd.cloud9.collection.DocnoMapping |
|---|
DocnoMapping.Builder, DocnoMapping.BuilderUtils, DocnoMapping.DefaultBuilderOptions |
| Constructor Summary | |
|---|---|
Gov2DocnoMapping()
|
|
| Method Summary | |
|---|---|
DocnoMapping.Builder |
getBuilder()
Returns the builder for this mapping. |
String |
getDocid(int docno)
Returns the docid for a particular docno. |
int |
getDocno(String docid)
Returns the docno for a particular docid. |
void |
loadMapping(Path p,
FileSystem fs)
Loads a mapping file. |
static void |
main(String[] args)
Simple program the provides access to the docno/docid mappings. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Gov2DocnoMapping()
| Method Detail |
|---|
public int getDocno(String docid)
DocnoMapping
getDocno in interface DocnoMappingdocid - the docid
public String getDocid(int docno)
DocnoMapping
getDocid in interface DocnoMappingdocno - the docno
public void loadMapping(Path p,
FileSystem fs)
throws IOException
DocnoMapping
loadMapping in interface DocnoMappingp - path to the mappings filefs - reference to the FileSystem
IOExceptionpublic DocnoMapping.Builder getBuilder()
DocnoMapping
getBuilder in interface DocnoMapping
public static void main(String[] args)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||