T - public abstract class Store<T extends Serializable> extends AbstractProcessor implements DataService<T>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
capacity |
protected Map<String,T> |
data |
protected String[] |
keys |
(package private) static org.slf4j.Logger |
log |
context| Constructor and Description |
|---|
Store() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addData(String[] keys,
Data item) |
Integer |
getCapacity() |
T |
getData(String key) |
String[] |
getKeys() |
void |
init(ProcessContext ctx) |
Data |
process(Data input) |
void |
reset() |
void |
setCapacity(Integer capacity) |
void |
setKeys(String[] keys) |
finish, resetStatestatic org.slf4j.Logger log
protected String[] keys
protected Integer capacity
protected Map<String,T extends Serializable> data
public T getData(String key)
getData in interface DataService<T extends Serializable>public String[] getKeys()
public void setKeys(String[] keys)
public Integer getCapacity()
public void setCapacity(Integer capacity)
public void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionCopyright © 2018. All rights reserved.