public interface IndexReader
Interface of index reader
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method releases all occupied resources.
|
IRCollection |
getCollection() |
IRDoc |
getDoc(int index) |
IRDoc |
getDoc(String key) |
String |
getDocKey(int index) |
IRRelation |
getIRRelation(int index) |
IRRelation |
getIRRelation(int relationIndex,
int docIndex)
If the given document does not contain the given relation, this method returns null.
|
IRTerm |
getIRTerm(int index) |
IRTerm |
getIRTerm(int termIndex,
int docIndex)
If the given document does not contain the given term, this method returns null.
|
IRTerm |
getIRTerm(String key) |
Article |
getOriginalDoc(int index) |
Article |
getOriginalDoc(String key) |
int[] |
getRelationDocFrequencyList(int relationIndex) |
int[] |
getRelationDocIndexList(int relationIndex) |
IRDoc[] |
getRelationDocList(int relationIndex) |
int[] |
getRelationFrequencyList(int docIndex)
To know what relation the frequency corresponds to, call the method getRelationIndexList.
|
int[] |
getRelationIndexList(int docIndex) |
IRRelation[] |
getRelationList(int docIndex) |
int[] |
getTermDocFrequencyList(int termIndex) |
int[] |
getTermDocIndexList(int termIndex) |
IRDoc[] |
getTermDocList(int termIndex) |
int[] |
getTermFrequencyList(int docIndex)
To know what term the frequency corresponds to, call the method getTermIndexList.
|
int[] |
getTermIndexList(int docIndex) |
String |
getTermKey(int index) |
IRTerm[] |
getTermList(int docIndex) |
void |
initialize()
It is required to call this method before reading out any indexing information.
|
boolean |
isRelationSupported() |
void initialize()
void close()
boolean isRelationSupported()
IRCollection getCollection()
IRDoc getDoc(int index)
index - the index of the documentIRDoc getDoc(String key)
key - the unique etnry number of the documentString getDocKey(int index)
index - the index of the documentArticle getOriginalDoc(String key)
key - the unique entry number of the documentArticle getOriginalDoc(int index)
index - the index of the documentIRTerm[] getTermList(int docIndex)
docIndex - the index of the documentint[] getTermIndexList(int docIndex)
docIndex - the index of the documentint[] getTermFrequencyList(int docIndex)
docIndex - the index of the documentIRTerm getIRTerm(String key)
key - the name of the termIRTerm getIRTerm(int index)
index - the index of the termIRTerm getIRTerm(int termIndex, int docIndex)
termIndex - the index of the termdocIndex - the index of the documentString getTermKey(int index)
index: - the index of the wanted termIRDoc[] getTermDocList(int termIndex)
termIndex - the index of the termint[] getTermDocFrequencyList(int termIndex)
termIndex - the index of the termint[] getTermDocIndexList(int termIndex)
termIndex - the index of the termIRRelation[] getRelationList(int docIndex)
docIndex - the index of the documentint[] getRelationFrequencyList(int docIndex)
docIndex - the index of the documentint[] getRelationIndexList(int docIndex)
docIndex - the index of the documentIRRelation getIRRelation(int index)
index - the index of the relationIRRelation getIRRelation(int relationIndex, int docIndex)
relationIndex - the index of the relationdocIndex - the index of the documentIRDoc[] getRelationDocList(int relationIndex)
relationIndex - the index of the relationint[] getRelationDocFrequencyList(int relationIndex)
relationIndex - the index of the relationint[] getRelationDocIndexList(int relationIndex)
relationIndex - the index of the relationCopyright © 2018 JULIE Lab, Germany. All rights reserved.