Package org.apache.uima.uimacpp
Class UimacppEngine
java.lang.Object
org.apache.uima.uimacpp.UimacppEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchProcessCompletevoidCasConsumer collectionProcessCompletestatic voidconfigureResourceManager(String workDirectory, String dataDirectory) Configure the TAF Resource Manager.static UimacppEnginecreateJTafTAE(String configFile) create a TAF engine with a config filevoiddestroy()de-initializes the TAF engine.protected voidfinalize()static StringgetErrorMessage(long errorCode) helper function to get the error message for some TAF error ID.static Stringhelper function to get the TAF JNI version.booleanhasNext()hasNextvoidnextvoidprocess(ResultSpecification rs, CAS aCas, boolean casIsEmpty) process the document.
-
Constructor Details
-
UimacppEngine
- Throws:
UimacppException
-
-
Method Details
-
configureResourceManager
public static void configureResourceManager(String workDirectory, String dataDirectory) throws UimacppException Configure the TAF Resource Manager.- Parameters:
workDirectory- the work directorydataDirectory- the data directory- Throws:
UimacppException- wraps any exception
-
createJTafTAE
create a TAF engine with a config file- Parameters:
configFile- the configuration file used for initialization- Returns:
- a UimacppEngine
- Throws:
UimacppException- pass thru
-
destroy
de-initializes the TAF engine.- Throws:
UimacppException- wraps any exception
-
process
process the document.- Parameters:
rs- the result specificationaCas- the CAScasIsEmpty- tbd- Throws:
UimacppException- wraps any exception
-
hasNext
hasNext- Returns:
- true if there's a next element
- Throws:
UimacppException- wraps any exception
-
next
next- Parameters:
segment- tbd- Throws:
UimacppException- wraps any exception
-
batchProcessComplete
batchProcessComplete- Throws:
UimacppException- wraps any exception
-
collectionProcessComplete
CasConsumer collectionProcessComplete- Throws:
UimacppException- wraps any exception
-
getErrorMessage
helper function to get the error message for some TAF error ID.- Parameters:
errorCode- the code used as the key to look up the error message- Returns:
- the error message
- Throws:
UimacppException- wraps any exception
-
getTafJNIVersion
helper function to get the TAF JNI version.- Returns:
- Taf JNI Version
- Throws:
UimacppException- wraps any exception
-
finalize
-