|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Eventpublic void setHeaders(Map<String,String> headers)
Event
setHeaders in interface Eventheaders - Map of headers to replace the current headers.public byte[] getBody()
Event
getBody in interface Eventpublic void setBody(byte[] body)
Event
setBody in interface Eventbody - 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 | |||||||||