public class OnlineSentenceIndexReader extends AbstractIndexReader
Index reader for reading sentence index information on line
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected OnlineSentenceIndexer |
indexer |
collection, collectionReader, docIndexList, docKeyList, docrelationMatrix, doctermMatrix, initialized, relationdocMatrix, relationIndexList, relationSupported, termdocMatrix, termIndexList, termKeyList| Constructor and Description |
|---|
OnlineSentenceIndexReader(OnlineSentenceIndexer indexer) |
OnlineSentenceIndexReader(OnlineSentenceIndexer indexer,
CollectionReader collectionReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method releases all occupied resources.
|
Article |
getOriginalDoc(String key) |
protected boolean |
index(Indexer indexer,
CollectionReader collectionReader) |
void |
initialize()
It is required to call this method before reading out any indexing information.
|
void |
setCollectionReader(CollectionReader collectionReader) |
getCollection, getDoc, getDoc, getDocKey, getDocRelationMatrix, getDocTermMatrix, getIRRelation, getIRRelation, getIRTerm, getIRTerm, getIRTerm, getOriginalDoc, getRelaitonDocMatrix, getRelationDocFrequencyList, getRelationDocIndexList, getRelationDocList, getRelationFrequencyList, getRelationIndexList, getRelationList, getTermDocFrequencyList, getTermDocIndexList, getTermDocList, getTermDocMatrix, getTermFrequencyList, getTermIndexList, getTermKey, getTermList, isRelationSupported, setIRDocKeyList, setIRTermKeyListprotected OnlineSentenceIndexer indexer
public OnlineSentenceIndexReader(OnlineSentenceIndexer indexer)
public OnlineSentenceIndexReader(OnlineSentenceIndexer indexer, CollectionReader collectionReader)
public void initialize()
IndexReaderpublic void setCollectionReader(CollectionReader collectionReader)
public void close()
IndexReaderclose in interface IndexReaderclose in class AbstractIndexReaderpublic Article getOriginalDoc(String key)
getOriginalDoc in interface IndexReadergetOriginalDoc in class AbstractIndexReaderkey - the unique entry number of the documentprotected boolean index(Indexer indexer, CollectionReader collectionReader)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.