public abstract class CasDataCollectionReader_ImplBase extends ConfigurableResource_ImplBase implements CasDataCollectionReader
CasData
interface to access the CAS.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 |
---|
CasDataCollectionReader_ImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Releases all resources held by this
Resource . |
ProcessingResourceMetaData |
getProcessingResourceMetaData()
Gets the metadata that describes this
CasProcesor . |
void |
initialize()
This method is called during initialization, and does nothing by default.
|
boolean |
initialize(ResourceSpecifier aSpecifier,
Map<String,Object> aAdditionalParams)
Called by the framework to initialize this Collection Reader.
|
boolean |
isConsuming()
Gets whether this is a consuming
CollectionReader . |
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCasDataInitializer, getNext, getNext, setCasInitializer
close, getProgress, hasNext
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
public boolean initialize(ResourceSpecifier aSpecifier, Map<String,Object> aAdditionalParams) throws ResourceInitializationException
initialize()
method and access metadata via the getProcessingResourceMetaData()
method. This method
is non-final only for legacy reasons.initialize
in interface Resource
initialize
in class Resource_ImplBase
aSpecifier
- specifies how to create a resource or locate an existing resource service.aAdditionalParams
- a Map containing additional parameters. May be null
if there are no
parameters. Each class that implements this interface can decide what additional
parameters it supports.ResourceSpecifier
is not of an appropriate type for this Resource. If
the ResourceSpecifier
is of an appropriate type but is invalid or if
some other failure occurs, an exception should be thrown.ResourceInitializationException
- if a failure occurs during initialization.Resource.initialize(org.apache.uima.resource.ResourceSpecifier,
java.util.Map)
public void initialize() throws ResourceInitializationException
ResourceInitializationException
- if a failure occurs during initialization.public void destroy()
Resource
Resource
.destroy
in interface Resource
destroy
in class Resource_ImplBase
Resource.destroy()
public ProcessingResourceMetaData getProcessingResourceMetaData()
BaseCollectionReader
CasProcesor
.getProcessingResourceMetaData
in interface BaseCollectionReader
BaseCollectionReader.getProcessingResourceMetaData()
public boolean isConsuming()
BaseCollectionReader
CollectionReader
. Consuming
CollectionReader
s remove each element from the Collection
as it
is read.isConsuming
in interface BaseCollectionReader
CollectionReader
BaseCollectionReader.isConsuming()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.