public class RandomStream extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<String,Class<?>> |
attributes |
(package private) String[] |
keys |
(package private) Random[] |
random |
(package private) Map<String,Object> |
store |
closed, count, id, in, limit, log, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
RandomStream() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key) |
Object |
get(String key,
Object init) |
String[] |
getKeys() |
Double |
next(Random rnd) |
Data |
readNext() |
void |
set(String key,
Object val) |
void |
setKeys(String[] keys) |
close, getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, init, read, setId, setLimit, setPrefix, setSequenceKey, setUrlpublic String[] getKeys()
@Parameter(required=false, description="The attribute names to create (comma separated)") public void setKeys(String[] keys)
keys - the keys to setpublic Data readNext() throws Exception
readNext in class AbstractStreamExceptionCopyright © 2018. All rights reserved.