|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncHbaseEventSerializer
Interface for an event serializer which serializes the headers and body of an event to write them to hbase. This is configurable, so any config params required should be taken through this. The table should be valid on the column family. An implementation of this interface is expected by the AsyncHBaseSink to serialize the events.
Method Summary | |
---|---|
void |
cleanUp()
Clean up any state. |
List<org.hbase.async.PutRequest> |
getActions()
Get the actions that should be written out to hbase as a result of this event. |
List<org.hbase.async.AtomicIncrementRequest> |
getIncrements()
Get the increments that should be made in hbase as a result of this event. |
void |
initialize(byte[] table,
byte[] cf)
Initialize the event serializer. |
void |
setEvent(Event event)
|
Methods inherited from interface org.apache.flume.conf.Configurable |
---|
configure |
Methods inherited from interface org.apache.flume.conf.ConfigurableComponent |
---|
configure |
Method Detail |
---|
void initialize(byte[] table, byte[] cf)
table
- - The table the serializer should use when creating
PutRequest
or
AtomicIncrementRequest
.cf
- - The column family to be used.void setEvent(Event event)
Event
- to be written to HBase.List<org.hbase.async.PutRequest> getActions()
PutRequest
which
are written as such to HBase.List<org.hbase.async.AtomicIncrementRequest> getIncrements()
AtomicIncrementRequest
which
are written as such to HBase.void cleanUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |