|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.uimacpp.UimacppEngine
public class UimacppEngine
Constructor Summary | |
---|---|
UimacppEngine()
|
Method Summary | |
---|---|
void |
batchProcessComplete()
batchProcessComplete |
void |
collectionProcessComplete()
CasConsumer collectionProcessComplete |
static void |
configureResourceManager(java.lang.String workDirectory,
java.lang.String dataDirectory)
Configure the TAF Resource Manager. |
static UimacppEngine |
createJTafTAE(java.lang.String configFile)
create a TAF engine with a config file |
void |
destroy()
de-initializes the TAF engine. |
protected void |
finalize()
|
static java.lang.String |
getErrorMessage(long errorCode)
helper function to get the error message for some TAF error ID. |
static java.lang.String |
getTafJNIVersion()
helper function to get the TAF JNI version. |
boolean |
hasNext()
hasNext |
void |
next(CAS segment)
next |
void |
process(ResultSpecification rs,
CAS aCas,
boolean casIsEmpty)
process the document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UimacppEngine() throws UimacppException
UimacppException
Method Detail |
---|
public static void configureResourceManager(java.lang.String workDirectory, java.lang.String dataDirectory) throws UimacppException
workDirectory
- the work directorydataDirectory
- the data directory
UimacppException
- wraps any exceptionpublic static UimacppEngine createJTafTAE(java.lang.String configFile) throws UimacppException
configFile
- the configuration file used for initialization
UimacppException
- pass thrupublic void destroy() throws UimacppException
UimacppException
- wraps any exceptionpublic void process(ResultSpecification rs, CAS aCas, boolean casIsEmpty) throws UimacppException
rs
- the result specificationaCas
- the CAScasIsEmpty
- tbd
UimacppException
- wraps any exceptionpublic boolean hasNext() throws UimacppException
UimacppException
- wraps any exceptionpublic void next(CAS segment) throws UimacppException
segment
- tbd
UimacppException
- wraps any exceptionpublic void batchProcessComplete() throws UimacppException
UimacppException
- wraps any exceptionpublic void collectionProcessComplete() throws UimacppException
UimacppException
- wraps any exceptionpublic static java.lang.String getErrorMessage(long errorCode) throws UimacppException
errorCode
- the code used as the key to look up the error message
UimacppException
- wraps any exceptionpublic static java.lang.String getTafJNIVersion() throws UimacppException
UimacppException
- wraps any exceptionprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |