org.apache.flume.event
Class EventBuilder
java.lang.Object
org.apache.flume.event.EventBuilder
public class EventBuilder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventBuilder
public EventBuilder()
withBody
public static Event withBody(byte[] body,
Map<String,String> headers)
- Instantiate an Event instance based on the provided body and headers.
If
headers
is null
, then it is ignored.
- Parameters:
body
- headers
-
- Returns:
withBody
public static Event withBody(byte[] body)
withBody
public static Event withBody(String body,
Charset charset,
Map<String,String> headers)
withBody
public static Event withBody(String body,
Charset charset)
Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.