public class UimacppEngine
extends java.lang.Object
Constructor and Description |
---|
UimacppEngine() |
Modifier and Type | Method and Description |
---|---|
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.
|
public UimacppEngine() throws UimacppException
UimacppException
public static void configureResourceManager(java.lang.String workDirectory, java.lang.String dataDirectory) throws UimacppException
workDirectory
- the work directorydataDirectory
- the data directoryUimacppException
- wraps any exceptionpublic static UimacppEngine createJTafTAE(java.lang.String configFile) throws UimacppException
configFile
- the configuration file used for initializationUimacppException
- 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
- tbdUimacppException
- wraps any exceptionpublic boolean hasNext() throws UimacppException
UimacppException
- wraps any exceptionpublic void next(CAS segment) throws UimacppException
segment
- tbdUimacppException
- 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 messageUimacppException
- 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
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.