public abstract class JCasCollectionReader_ImplBase extends CollectionReader_ImplBase
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
Constructor and Description |
---|
JCasCollectionReader_ImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getNext(CAS cas) |
abstract void |
getNext(JCas jCas)
Subclasses should implement this method rather than
getNext(CAS) |
void |
initialize() |
void |
initialize(UimaContext context)
This method should be overwritten by subclasses.
|
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgress, hasNext
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
public final void initialize() throws ResourceInitializationException
initialize
in class CollectionReader_ImplBase
ResourceInitializationException
public void initialize(UimaContext context) throws ResourceInitializationException
context
- the UIMA context the component is running inResourceInitializationException
- if a failure occurs during initialization.public final void getNext(CAS cas) throws IOException, CollectionException
IOException
CollectionException
public abstract void getNext(JCas jCas) throws IOException, CollectionException
getNext(CAS)
jCas
- the JCas
to store the read data toIOException
- if there was a low-level I/O problemCollectionException
- if there was another problempublic void close() throws IOException
IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.