public abstract class AbstractSequenceIndexReader extends Object implements SequenceIndexReader
The abstract index reader for sequencial data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected IRCollection |
collection |
protected CollectionReader |
collectionReader |
protected IRDocIndexList |
docIndexList |
protected SimpleElementList |
docKeyList |
protected SequenceReader |
doctermSeq |
protected boolean |
initialized |
protected IRTermIndexList |
termIndexList |
protected SimpleElementList |
termKeyList |
| Constructor and Description |
|---|
AbstractSequenceIndexReader() |
| 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) |
boolean |
isRelationSupported() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected CollectionReader collectionReader
protected SimpleElementList termKeyList
protected SimpleElementList docKeyList
protected IRTermIndexList termIndexList
protected IRDocIndexList docIndexList
protected SequenceReader doctermSeq
protected IRCollection collection
protected boolean initialized
public void close()
IndexReaderclose in interface IndexReaderpublic boolean isRelationSupported()
isRelationSupported in interface IndexReaderpublic IRCollection getCollection()
getCollection in interface IndexReaderpublic IRDoc getDoc(int index)
getDoc in interface IndexReaderindex - the index of the documentpublic String getDocKey(int index)
getDocKey in interface IndexReaderindex - the index of the documentpublic IRDoc getDoc(String key)
getDoc in interface IndexReaderkey - the unique etnry number of the documentpublic Article getOriginalDoc(String key)
getOriginalDoc in interface IndexReaderkey - the unique entry number of the documentpublic Article getOriginalDoc(int index)
getOriginalDoc in interface IndexReaderindex - the index of the documentpublic IRTerm[] getTermList(int docIndex)
getTermList in interface IndexReaderdocIndex - the index of the documentpublic int[] getTermIndexList(int docIndex)
getTermIndexList in interface IndexReaderdocIndex - the index of the documentpublic int[] getTermFrequencyList(int docIndex)
IndexReadergetTermFrequencyList in interface IndexReaderdocIndex - the index of the documentpublic IRTerm getIRTerm(int index)
getIRTerm in interface IndexReaderindex - the index of the termpublic String getTermKey(int index)
getTermKey in interface IndexReaderpublic IRTerm getIRTerm(String key)
getIRTerm in interface IndexReaderkey - the name of the termpublic IRTerm getIRTerm(int termIndex, int docIndex)
IndexReadergetIRTerm in interface IndexReadertermIndex - the index of the termdocIndex - the index of the documentpublic IRDoc[] getTermDocList(int termIndex)
getTermDocList in interface IndexReadertermIndex - the index of the termpublic int[] getTermDocFrequencyList(int termIndex)
getTermDocFrequencyList in interface IndexReadertermIndex - the index of the termpublic int[] getTermDocIndexList(int termIndex)
getTermDocIndexList in interface IndexReadertermIndex - the index of the termpublic IRRelation[] getRelationList(int docIndex)
getRelationList in interface IndexReaderdocIndex - the index of the documentpublic int[] getRelationFrequencyList(int docIndex)
IndexReadergetRelationFrequencyList in interface IndexReaderdocIndex - the index of the documentpublic int[] getRelationIndexList(int docIndex)
getRelationIndexList in interface IndexReaderdocIndex - the index of the documentpublic IRRelation getIRRelation(int index)
getIRRelation in interface IndexReaderindex - the index of the relationpublic IRRelation getIRRelation(int relationIndex, int docIndex)
IndexReadergetIRRelation in interface IndexReaderrelationIndex - the index of the relationdocIndex - the index of the documentpublic IRDoc[] getRelationDocList(int relationIndex)
getRelationDocList in interface IndexReaderrelationIndex - the index of the relationpublic int[] getRelationDocFrequencyList(int relationIndex)
getRelationDocFrequencyList in interface IndexReaderrelationIndex - the index of the relationpublic int[] getRelationDocIndexList(int relationIndex)
getRelationDocIndexList in interface IndexReaderrelationIndex - the index of the relationCopyright © 2018 JULIE Lab, Germany. All rights reserved.