public interface OccurrenceStore
extends java.io.Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
OccurrenceStore.State |
static class |
OccurrenceStore.Type |
Modifier and Type | Method and Description |
---|---|
void |
addOccurrence(Term term,
java.lang.String documentUrl,
int begin,
int end,
java.lang.String coveredText) |
void |
close() |
void |
flush() |
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) |
java.util.Collection<TermOccurrence> |
getOccurrences(Term term) |
OccurrenceStore.Type |
getStoreType() |
java.lang.String |
getUrl()
Returns the path to access the occurrence store if
this occurrence store is of type
Type#FILE ,
null otherwise. |
void |
log() |
void |
removeTerm(Term t)
Removes all occurrences of the term
|
long |
size()
The number of occurrences in occurrence store.
|
java.util.Collection<TermOccurrence> getOccurrences(Term term)
OccurrenceStore.Type getStoreType()
void flush()
java.lang.String getUrl()
Type#FILE
,
null
otherwise.null
if this store is of type OccurrenceStore.Type.MEMORY
void removeTerm(Term t)
t
- void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
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.lang.String getMostFrequentForm(Term t)
long size()
void log()