public abstract class AbstractWriter extends ConditionedProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Keys |
keys |
(package private) String |
url |
conditioncontext| Constructor and Description |
|---|
AbstractWriter() |
| Modifier and Type | Method and Description |
|---|---|
Keys |
getKeys() |
String |
getUrl() |
Data |
processMatchingData(Data data) |
protected Set<String> |
selectedKeys(Data item)
This class returns the keys that need to be written based on the
selection pattern.
|
void |
setKeys(Keys keys) |
void |
setUrl(String url) |
abstract void |
write(Data item)
This method is actually responsible for writing the data item to the
output stream in the format that the implementing class supports.
|
getCondition, matches, process, setConditionfinish, init, resetStatepublic Data processMatchingData(Data data)
processMatchingData in class ConditionedProcessorConditionedProcessor.processMatchingData(stream.Data)public Keys getKeys()
@Parameter(description="The keys, which shall be written out (supports wildcards *, ? and negation with !", defaultValue="*") public void setKeys(Keys keys)
keys - the keys to setpublic String getUrl()
@Parameter(description="The URL to write to, currently, only file URLs are supported.", required=true) public void setUrl(String url)
url - the url to setprotected Set<String> selectedKeys(Data item)
item - The item to extract keys from.Copyright © 2018. All rights reserved.