ResourceCollectionReaderBase
instead.@Deprecated public abstract class FileSetCollectionReaderBase extends org.apache.uima.fit.component.CasCollectionReader_ImplBase
Example of a hypothetic FooReader
that should read only files ending in
.foo
from in the directory foodata
or any subdirectory thereof:
CollectionReader reader = createReader(FooReader.class, FileSetCollectionReaderBase.PARAM_LANGUAGE, "en", FileSetCollectionReaderBase.PARAM_SOURCE_LOCATION, "some/path", FileSetCollectionReaderBase.PARAM_PATTERNS, "[+]foodata/**/*.foo" );
Modifier and Type | Field and Description |
---|---|
static String |
EXCLUDE_PREFIX
Deprecated.
|
static String |
INCLUDE_PREFIX
Deprecated.
|
static String |
PARAM_CASE_SENSITIVE
Deprecated.
States whether the matching is done case sensitive.
|
static String |
PARAM_LANGUAGE
Deprecated.
The language.
|
static String |
PARAM_PATH
Deprecated.
|
static String |
PARAM_PATTERNS
Deprecated.
A set of Ant-like include/exclude patterns.
|
static String |
PARAM_SOURCE_LOCATION
Deprecated.
Location from which the input is read.
|
static String |
PARAM_USE_DEFAULT_EXCLUDES
Deprecated.
Use the default excludes.
|
Constructor and Description |
---|
FileSetCollectionReaderBase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Iterator<org.apache.tools.ant.types.Resource> |
getFileSetIterator()
Deprecated.
|
protected int |
getIncludedFilesCount()
Deprecated.
|
String |
getLanguage()
Deprecated.
|
org.apache.uima.util.Progress[] |
getProgress()
Deprecated.
|
boolean |
hasNext()
Deprecated.
|
protected void |
initCas(org.apache.uima.cas.CAS aCas,
org.apache.tools.ant.types.resources.FileResource aFile,
String aQualifier)
Deprecated.
Initialize the
DocumentMetaData . |
void |
initialize(org.apache.uima.UimaContext aContext)
Deprecated.
|
protected org.apache.tools.ant.types.resources.FileResource |
nextFile()
Deprecated.
|
close, getLogger, initialize
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String INCLUDE_PREFIX
public static final String EXCLUDE_PREFIX
@Deprecated public static final String PARAM_PATH
PARAM_SOURCE_LOCATION
public static final String PARAM_SOURCE_LOCATION
public static final String PARAM_PATTERNS
[+]
if it is an include pattern and with [-]
if it is an exclude pattern.
The wildcard /**/
can be used to address any number of sub-directories.
The wildcard *
can be used to a address a part of a name.public static final String PARAM_USE_DEFAULT_EXCLUDES
public static final String PARAM_LANGUAGE
public static final String PARAM_CASE_SENSITIVE
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.fit.component.CasCollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
protected int getIncludedFilesCount()
protected Iterator<org.apache.tools.ant.types.Resource> getFileSetIterator()
protected org.apache.tools.ant.types.resources.FileResource nextFile()
public org.apache.uima.util.Progress[] getProgress()
public boolean hasNext() throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
protected void initCas(org.apache.uima.cas.CAS aCas, org.apache.tools.ant.types.resources.FileResource aFile, String aQualifier)
DocumentMetaData
. This must be called before setting the document
text, otherwise the end feature of this annotation will not be set correctly.aCas
- the CAS.aFile
- the file from which the CAS is initialized.aQualifier
- a qualifier if multiple CASes are generated from the same file.public String getLanguage()
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.