|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractSet | +--java.util.TreeSet | +--gate.corpora.CorpusImpl
Corpora are sets of Document. They are ordered by lexicographic collation on Url.
Field Summary | |
protected DataStore |
dataStore
The data store this LR lives in. |
private static boolean |
DEBUG
Debug flag |
protected FeatureMap |
features
The features associated with this corpus. |
protected String |
name
The name of the corpus |
(package private) static long |
serialVersionUID
Freeze the serialization UID. |
Fields inherited from class java.util.TreeSet |
keySet, m, PRESENT |
Constructor Summary | |
CorpusImpl()
Construction |
Method Summary | |
boolean |
equals(Object other)
|
DataStore |
getDataStore()
Get the data store the document lives in. |
FeatureMap |
getFeatures()
Get the features associated with this corpus. |
String |
getName()
Get the name of the corpus. |
int |
hashCode()
A Hash value for this corpus |
Resource |
init()
Initialise this resource, and return it. |
void |
setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
setFeatures(FeatureMap features)
Set the feature set |
void |
setName(String name)
Set the name of the corpus. |
void |
sync()
Save: synchonise the in-memory image of the corpus with the persistent image. |
Methods inherited from class java.util.TreeSet |
|
Methods inherited from class java.util.AbstractSet |
removeAll |
Methods inherited from class java.util.AbstractCollection |
containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.util.SortedSet |
comparator, first, headSet, last, subSet, tailSet |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Field Detail |
private static final boolean DEBUG
protected transient DataStore dataStore
protected String name
protected FeatureMap features
static final long serialVersionUID
Constructor Detail |
public CorpusImpl()
Method Detail |
public Resource init()
init
in interface Resource
public String getName()
getName
in interface Corpus
public void setName(String name)
setName
in interface Corpus
public DataStore getDataStore()
getDataStore
in interface LanguageResource
public void setDataStore(DataStore dataStore) throws PersistenceException
setDataStore
in interface LanguageResource
public void sync() throws PersistenceException
sync
in interface LanguageResource
public FeatureMap getFeatures()
getFeatures
in interface FeatureBearer
public void setFeatures(FeatureMap features)
setFeatures
in interface FeatureBearer
public boolean equals(Object other)
equals
in interface Set
equals
in class AbstractSet
public int hashCode()
hashCode
in interface Set
hashCode
in class AbstractSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |