public abstract class AbstractMemoryOccStore extends java.lang.Object implements OccurrenceStore
OccurrenceStore.State, OccurrenceStore.Type
Constructor and Description |
---|
AbstractMemoryOccStore(Lang lang) |
Modifier and Type | Method and Description |
---|---|
void |
addOccurrence(Term term,
java.lang.String documentUrl,
int begin,
int end,
java.lang.String coveredText) |
Document |
getDocument(java.lang.String url) |
java.util.Collection<Document> |
getDocuments() |
java.util.Set<Document> |
getDocuments(Term t) |
java.util.List<Form> |
getForms(Term term) |
java.lang.String |
getMostFrequentForm(Term t) |
void |
log() |
protected Document |
protectedGetDocument(java.lang.String documentUrl) |
protected java.util.Set<Document> |
protectedGetDocuments(Term t) |
protected java.util.Map<java.lang.String,java.util.concurrent.atomic.AtomicInteger> |
protectedGetForms(Term t) |
void |
removeTerm(Term t)
Removes all occurrences of the term
|
protected java.lang.String |
toForm(java.lang.String coveredText) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush, getOccurrences, getStoreType, getUrl, size
public AbstractMemoryOccStore(Lang lang)
public void log()
log
in interface OccurrenceStore
protected java.util.Map<java.lang.String,java.util.concurrent.atomic.AtomicInteger> protectedGetForms(Term t)
protected Document protectedGetDocument(java.lang.String documentUrl)
public Document getDocument(java.lang.String url)
getDocument
in interface OccurrenceStore
public java.util.Collection<Document> getDocuments()
getDocuments
in interface OccurrenceStore
public java.util.List<Form> getForms(Term term)
getForms
in interface OccurrenceStore
public void addOccurrence(Term term, java.lang.String documentUrl, int begin, int end, java.lang.String coveredText)
addOccurrence
in interface OccurrenceStore
protected java.lang.String toForm(java.lang.String coveredText)
public void removeTerm(Term t)
OccurrenceStore
removeTerm
in interface OccurrenceStore
public java.lang.String getMostFrequentForm(Term t)
getMostFrequentForm
in interface OccurrenceStore
public java.util.Set<Document> getDocuments(Term t)
getDocuments
in interface OccurrenceStore