|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.event.SimpleEvent
public class SimpleEvent
Constructor Summary | |
---|---|
SimpleEvent()
|
Method Summary | |
---|---|
byte[] |
getBody()
Returns the raw byte array of the data contained in this event. |
Map<String,String> |
getHeaders()
Returns a map of name-value pairs describing the data stored in the body. |
void |
setBody(byte[] body)
Sets the raw byte array of the data contained in this event. |
void |
setHeaders(Map<String,String> headers)
Set the event headers |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleEvent()
Method Detail |
---|
public Map<String,String> getHeaders()
Event
getHeaders
in interface Event
public void setHeaders(Map<String,String> headers)
Event
setHeaders
in interface Event
headers
- Map of headers to replace the current headers.public byte[] getBody()
Event
getBody
in interface Event
public void setBody(byte[] body)
Event
setBody
in interface Event
body
- The data.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |