public abstract class DirectFileInputDescription extends Object implements ImporterDescription
public
abstract
ImporterDescription.DataSize
Constructor and Description |
---|
DirectFileInputDescription() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getBasePath()
Returns the base path of target input.
|
Class<? extends DataFilter<?>> |
getFilter()
Returns an implementation of
DataFilter class. |
abstract Class<? extends DataFormat<?>> |
getFormat()
Returns an implementation of
DataFormat class. |
abstract String |
getResourcePattern()
Returns the resource path pattern of target input.
|
boolean |
isOptional()
Returns whether the target input is optional or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSize, getModelType
public abstract String getBasePath()
${<variable-name>}
.public abstract String getResourcePattern()
the base path
.
The pattern can include following characters:
"\", "*", "$", "?", "#", "|", "{", "}", "[", "]"
{alter1|alter2|alter3}
(selection)
${variable-name}
(variables)
*
(wildcard character)
**
(wildcard segment)
**.csv
is NOT accepted (**/*.csv
instead)
Expression | Description |
---|---|
a/b/c.csv |
just a/b/c.csv |
{2011/12|2012/01|2012/02}/*.csv |
any CSV files in "2011/12", "2012/01", or "2012/02" |
* |
any files in target directory |
** |
any files in target directory (recursive) |
*.csv |
any CSV files in target directory |
**/*.csv |
any CSV files in target directory (recursive) |
FilePattern
public abstract Class<? extends DataFormat<?>> getFormat()
DataFormat
class.DataFormat
implementationpublic Class<? extends DataFilter<?>> getFilter()
DataFilter
class.DataFilter
implementation, or null
if filter is not requiredpublic boolean isOptional()
true
if the target input is optional, otherwise false
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.