public class BinaryWriter extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
bytesWritten |
(package private) File |
current |
(package private) SimpleDateFormat |
dateFormat |
(package private) File |
file |
(package private) SimpleDateFormat |
fmt |
(package private) String[] |
keys |
(package private) static org.slf4j.Logger |
log |
(package private) OutputStream |
os |
(package private) Time |
rotate |
(package private) SimpleDateFormat |
timeFormat |
context| Constructor and Description |
|---|
BinaryWriter() |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
String[] |
getKeys() |
void |
init(ProcessContext ctx) |
Data |
process(Data input) |
void |
setFile(File file) |
void |
setKey(String key) |
void |
setKeys(String[] keys) |
finish, resetStatestatic org.slf4j.Logger log
final SimpleDateFormat dateFormat
final SimpleDateFormat timeFormat
final SimpleDateFormat fmt
String[] keys
File file
File current
OutputStream os
long bytesWritten
Time rotate
public void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public Data process(Data input)
Processor.process(stream.Data)public File getFile()
public void setFile(File file)
file - the file to setpublic String[] getKeys()
public void setKeys(String[] keys)
keys - the keys to setpublic void setKey(String key)
Copyright © 2014. All rights reserved.