|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
gate.corpora.CorpusImpl
gate.corpora.DatabaseCorpusImpl
public class DatabaseCorpusImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gate.corpora.CorpusImpl |
|---|
CorpusImpl.VerboseList |
| Field Summary | |
|---|---|
protected List |
addedDocuments
|
protected List |
documentData
|
protected gate.corpora.DatabaseCorpusImpl.EventsHandler |
eventHandler
The listener for the events coming from the features. |
protected List |
removedDocuments
|
| Fields inherited from class gate.corpora.CorpusImpl |
|---|
documentsList, supportList |
| Fields inherited from class gate.creole.AbstractLanguageResource |
|---|
dataStore, lrPersistentId |
| Fields inherited from class gate.creole.AbstractResource |
|---|
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
|---|
features |
| Fields inherited from interface gate.corpora.EventAwareLanguageResource |
|---|
DOC_CONTENT, DOC_MAIN, RES_FEATURES, RES_NAME |
| Fields inherited from interface gate.SimpleCorpus |
|---|
CORPUS_DOCLIST_PARAMETER_NAME, CORPUS_NAME_PARAMETER_NAME |
| Constructor Summary | |
|---|---|
DatabaseCorpusImpl()
|
|
DatabaseCorpusImpl(String _name,
DatabaseDataStore _ds,
Long _persistenceID,
FeatureMap _features,
Vector _dbDocs)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
cleanup()
Overriden to remove the features listener, when the document is closed. |
boolean |
contains(Object o)
|
boolean |
equals(Object o)
|
int |
findDocument(Document doc)
|
Object |
get(int index)
returns a document in the coprus by index |
List |
getAddedDocuments()
|
String |
getDocumentName(int index)
Gets the name of a document in this corpus. |
List |
getDocumentNames()
Gets the names of the documents in this corpus. |
Object |
getInitData__$$__(Object initData)
|
List |
getLoadedDocuments()
|
List |
getRemovedDocuments()
|
boolean |
isDocumentLoaded(int index)
This method returns true when the document is already loaded in memory |
boolean |
isModified()
Returns true of an LR has been modified since the last sync. |
boolean |
isPersistentDocument(int index)
This method returns true when the document is already stored on disk i.e., is not transient |
boolean |
isResourceChanged(int changeType)
|
Iterator |
iterator()
|
Object |
remove(int index)
|
boolean |
remove(Object obj)
|
void |
resourceAdopted(DatastoreEvent evt)
Called by a datastore when a new resource has been adopted |
void |
resourceDeleted(DatastoreEvent evt)
Called by a datastore when a resource has been deleted |
void |
resourceUnloaded(CreoleEvent e)
Called when a Resource has been removed from the system |
void |
resourceWritten(DatastoreEvent evt)
Called by a datastore when a resource has been wrote into the datastore |
void |
setFeatures(FeatureMap features)
Set the feature set |
void |
setInitData__$$__(Object data)
|
void |
setName(String name)
Sets the name of this resource |
void |
unloadDocument(Document doc)
Unloads a document from memory |
void |
unloadDocument(int index)
Unloads the document from memory, but calls sync() first, to store the changes |
| Methods inherited from class gate.corpora.CorpusImpl |
|---|
addCorpusListener, clear, clearDocList, containsAll, datastoreClosed, datastoreCreated, datastoreOpened, fireDocumentAdded, fireDocumentRemoved, getDocumentsList, hashCode, indexOf, init, isEmpty, lastIndexOf, listIterator, listIterator, populate, populate, removeAll, removeCorpusListener, resourceLoaded, resourceRenamed, retainAll, set, setDocumentsList, size, subList, toArray, toArray |
| Methods inherited from class gate.creole.AbstractLanguageResource |
|---|
getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from class gate.creole.AbstractResource |
|---|
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
|---|
getFeatures |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.LanguageResource |
|---|
getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from interface gate.Resource |
|---|
getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
|---|
getFeatures |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName |
| Field Detail |
|---|
protected gate.corpora.DatabaseCorpusImpl.EventsHandler eventHandler
protected List documentData
protected List removedDocuments
protected List addedDocuments
| Constructor Detail |
|---|
public DatabaseCorpusImpl()
public DatabaseCorpusImpl(String _name,
DatabaseDataStore _ds,
Long _persistenceID,
FeatureMap _features,
Vector _dbDocs)
| Method Detail |
|---|
public boolean add(Object o)
add in interface Collectionadd in interface Listadd in class CorpusImpl
public void add(int index,
Object element)
add in interface Listadd in class CorpusImplpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListaddAll in class CorpusImpl
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class CorpusImplpublic void resourceAdopted(DatastoreEvent evt)
DatastoreListener
resourceAdopted in interface DatastoreListenerpublic void resourceDeleted(DatastoreEvent evt)
DatastoreListener
resourceDeleted in interface DatastoreListenerpublic void resourceWritten(DatastoreEvent evt)
DatastoreListener
resourceWritten in interface DatastoreListenerpublic void resourceUnloaded(CreoleEvent e)
CreoleListenerResource has been removed from the system
resourceUnloaded in interface CreoleListenerresourceUnloaded in class CorpusImplpublic boolean isResourceChanged(int changeType)
isResourceChanged in interface EventAwareLanguageResourcepublic boolean isModified()
isModified in interface LanguageResourceisModified in class AbstractLanguageResourcepublic void setName(String name)
setName in interface NameBearersetName in class AbstractResourcepublic void setFeatures(FeatureMap features)
setFeatures in interface FeatureBearersetFeatures in class AbstractFeatureBearerpublic void cleanup()
cleanup in interface Resourcecleanup in class CorpusImplpublic void setInitData__$$__(Object data)
public Object getInitData__$$__(Object initData)
public List getDocumentNames()
getDocumentNames in interface SimpleCorpusgetDocumentNames in class CorpusImplList of Strings representing the names of the documents
in this corpus.public String getDocumentName(int index)
getDocumentName in interface SimpleCorpusgetDocumentName in class CorpusImplindex - the index of the document
public Object get(int index)
get in interface Listget in class CorpusImplindex - the index of the document
public Object remove(int index)
remove in interface Listremove in class CorpusImplpublic boolean remove(Object obj)
remove in interface Collectionremove in interface Listremove in class CorpusImplpublic int findDocument(Document doc)
public boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class CorpusImplpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class CorpusImplpublic List getLoadedDocuments()
getLoadedDocuments in interface EventAwareCorpuspublic List getRemovedDocuments()
getRemovedDocuments in interface EventAwareCorpuspublic List getAddedDocuments()
getAddedDocuments in interface EventAwareCorpuspublic void unloadDocument(int index)
public void unloadDocument(Document doc)
unloadDocument in interface CorpusunloadDocument in class CorpusImpldoc - Document to be unloaded from memory.public boolean isDocumentLoaded(int index)
isDocumentLoaded in interface CorpusisDocumentLoaded in class CorpusImplpublic boolean isPersistentDocument(int index)
public boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class CorpusImpl
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||