|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.core.STCBuilder.STCollection
private static class STCBuilder.STCollection
Nested Class Summary | |
---|---|
(package private) class |
STCBuilder.STCollection.SDCProcedure
|
(package private) class |
STCBuilder.STCollection.STCProcedure
|
Field Summary | |
---|---|
private DateRange |
dateRange
|
private cern.colt.map.OpenIntObjectHashMap |
docs
|
private STCBuilder.TermImpl[] |
terms
|
Constructor Summary | |
---|---|
private |
STCBuilder.STCollection()
|
Method Summary | |
---|---|
java.lang.Iterable<MIFSDocument> |
documents()
Gets an iterable over all the documents in this collection. |
MIFSDocument |
getDocument(int index)
Gets the document at the specified index. |
int |
getDocumentCount()
Gets the number of documents in the collection. |
IntIterator |
getDocumentsFor(int termIndex)
Gets an iterator of document indices of docs that contain a Term with the specified index. |
int |
getFrequency(int docIndex,
int termIndex)
Gets the frequency of the specified term in the specified document. |
DateRange |
getRange()
Gets the date range (inclusive) covered by this ScoredTermsCollection. |
float |
getScore(int docIndex,
int termIndex)
Gets the score of the specified term in the specified document. |
MIFSTerm |
getTerm(int index)
Gets the term at the specified index. |
int |
getTermCount()
Gets the number of terms in the collection. |
int |
getTermIndex(java.lang.String term)
Gets the index for the specified term. |
void |
iterateByDocument(ScoredDocumentCallback callback)
Iterates through the collection in document order calling the relevant methods in the callback. |
void |
iterateByTerm(ScoredTermCallback callback)
Iterates through the collection in term order calling the relevant methods in the callback. |
java.util.Iterator<MIFSDocument> |
iterator()
Returns an iterator over a set of elements of type T. |
java.lang.Iterable<MIFSTerm> |
terms()
Gets an iterable over all the terms in this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private STCBuilder.TermImpl[] terms
private cern.colt.map.OpenIntObjectHashMap docs
private DateRange dateRange
Constructor Detail |
---|
private STCBuilder.STCollection()
Method Detail |
---|
public java.lang.Iterable<MIFSTerm> terms()
terms
in interface ScoredTermsCollection
public java.util.Iterator<MIFSDocument> iterator()
iterator
in interface java.lang.Iterable<MIFSDocument>
public java.lang.Iterable<MIFSDocument> documents()
documents
in interface ScoredTermsCollection
public int getTermCount()
getTermCount
in interface ScoredTermsCollection
public MIFSTerm getTerm(int index)
getTerm
in interface ScoredTermsCollection
index
- the index of the term
public int getTermIndex(java.lang.String term)
getTermIndex
in interface ScoredTermsCollection
term
- the term to get the index for
public int getDocumentCount()
getDocumentCount
in interface ScoredTermsCollection
public MIFSDocument getDocument(int index)
getDocument
in interface ScoredTermsCollection
index
- the index of the document
public int getFrequency(int docIndex, int termIndex)
getFrequency
in interface ScoredTermsCollection
docIndex
- the index of the documenttermIndex
- the index of the term
public float getScore(int docIndex, int termIndex)
getScore
in interface ScoredTermsCollection
docIndex
- the index of the documenttermIndex
- the index of the term
public IntIterator getDocumentsFor(int termIndex)
getDocumentsFor
in interface ScoredTermsCollection
termIndex
- the term index
public DateRange getRange()
getRange
in interface ScoredTermsCollection
public void iterateByDocument(ScoredDocumentCallback callback)
iterateByDocument
in interface ScoredTermsCollection
callback
- methods are called on this obj during iterationpublic void iterateByTerm(ScoredTermCallback callback) throws AIDAException
iterateByTerm
in interface ScoredTermsCollection
callback
- methods are called on this obj during iteration
AIDAException
- if there is during the callback.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |