org.apache.flume.channel.jdbc.impl
Class PersistableEvent
java.lang.Object
org.apache.flume.channel.jdbc.impl.PersistableEvent
- All Implemented Interfaces:
- Event
public class PersistableEvent
- extends Object
- implements Event
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistableEvent
public PersistableEvent(String channel,
Event event)
getChannelName
public String getChannelName()
getBasePayload
public byte[] getBasePayload()
getSpillPayload
public byte[] getSpillPayload()
setEventId
protected void setEventId(long eventId)
getEventId
protected long getEventId()
getHeaderEntries
public List<PersistableEvent.HeaderEntry> getHeaderEntries()
setHeaders
public void setHeaders(Map<String,String> headers)
- Description copied from interface:
Event
- Set the event headers
- Specified by:
setHeaders
in interface Event
- Parameters:
headers
- Map of headers to replace the current headers.
getBody
public byte[] getBody()
- Description copied from interface:
Event
- Returns the raw byte array of the data contained in this event.
- Specified by:
getBody
in interface Event
setBody
public void setBody(byte[] body)
- Description copied from interface:
Event
- Sets the raw byte array of the data contained in this event.
- Specified by:
setBody
in interface Event
- Parameters:
body
- The data.
getHeaders
public Map<String,String> getHeaders()
- Description copied from interface:
Event
- Returns a map of name-value pairs describing the data stored in the body.
- Specified by:
getHeaders
in interface Event
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.