|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.client.CacheElement
public class CacheElement
Encapsulates details about a timestamped section of the cache.
Nested Class Summary | |
---|---|
private static class |
CacheElement.AllDocs
|
private static class |
CacheElement.DIIter
|
Field Summary | |
---|---|
private static simphony.util.messages.MessageCenter |
center
|
private java.util.List<CacheDocumentSet> |
docSets
|
private anl.aida.core.STCHeader |
header
|
private int |
id
|
private anl.aida.core.KeywordGenerator |
keyGen
|
private Keywords |
keywords
|
private anl.aida.core.ScoredTermsCollection |
stc
|
private java.io.File |
stcLocation
|
static java.lang.String |
SV_FILES_DIR
|
private anl.aida.sv.SemanticVectorStore |
svStore
|
Constructor Summary | |
---|---|
CacheElement(int id,
java.io.File stcLocation,
anl.aida.core.STCHeader header)
|
Method Summary | |
---|---|
void |
addDocumentSet(CacheDocumentSet set)
|
java.lang.Iterable<CacheDocumentSet> |
documentSets()
|
int |
getDocumentCount()
|
CacheDocumentSet |
getDocumentSet(int index)
Gets the document set at the specified index. |
int |
getDocumentSetCount()
|
anl.aida.core.STCHeader |
getHeader()
Gets the header associated with this cache element. |
int |
getID()
|
anl.aida.core.KeywordGenerator |
getKeywordGenerator()
|
Keywords |
getKeywords()
Gets the keywords for this CacheElement. |
anl.aida.core.ScoredTermsCollection |
getSTC()
|
java.io.File |
getSTCLocation()
|
private java.io.File[] |
getSVFiles(java.io.File stcLoc,
anl.aida.core.ScoredTermsCollection stc)
|
anl.aida.sv.SemanticVectorStore |
getSVS()
|
int |
getTermCount()
|
private void |
initSTC()
|
private void |
initSV()
|
void |
release()
Releases any resources (STC etc.) acquired by this CacheElement. |
void |
setKeyword(Keywords keywords)
Sets the keywords for this cache element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final simphony.util.messages.MessageCenter center
public static final java.lang.String SV_FILES_DIR
private java.io.File stcLocation
private anl.aida.core.STCHeader header
private anl.aida.core.ScoredTermsCollection stc
private anl.aida.core.KeywordGenerator keyGen
private anl.aida.sv.SemanticVectorStore svStore
private int id
private Keywords keywords
private java.util.List<CacheDocumentSet> docSets
Constructor Detail |
---|
public CacheElement(int id, java.io.File stcLocation, anl.aida.core.STCHeader header)
Method Detail |
---|
public Keywords getKeywords()
public void setKeyword(Keywords keywords)
keywords
- the new keywordspublic CacheDocumentSet getDocumentSet(int index)
index
- the index
public anl.aida.core.STCHeader getHeader()
public void release()
private void initSTC()
private void initSV()
public int getID()
public anl.aida.core.ScoredTermsCollection getSTC()
public anl.aida.sv.SemanticVectorStore getSVS()
public anl.aida.core.KeywordGenerator getKeywordGenerator()
public java.lang.Iterable<CacheDocumentSet> documentSets()
public void addDocumentSet(CacheDocumentSet set)
public int getDocumentSetCount()
private java.io.File[] getSVFiles(java.io.File stcLoc, anl.aida.core.ScoredTermsCollection stc) throws java.io.IOException
java.io.IOException
public int getDocumentCount()
public int getTermCount()
public java.io.File getSTCLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |