public class SimpleAsyncHbaseEventSerializer extends Object implements AsyncHbaseEventSerializer
rowPrefix: The prefix to be used. Default: default
incrementRow The row to increment. Default: incRow
suffix: uuid/random/timestamp.Default: uuid
Mandatory parameters:
cf:Column family.
Components that have no defaults and will not be used if absent: payloadColumn: Which column to put payload in. If it is not present, event data will not be written.
incrementColumn: Which column to increment. If this is absent, it means no column is incremented.
| Constructor and Description | 
|---|
| SimpleAsyncHbaseEventSerializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanUp()Clean up any state. | 
| void | configure(ComponentConfiguration conf) | 
| void | configure(Context context)
 Request the implementing class to (re)configure itself. | 
| 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) | 
public void initialize(byte[] table,
                       byte[] cf)
AsyncHbaseEventSerializerinitialize in interface AsyncHbaseEventSerializertable - - The table the serializer should use when creating
 PutRequest or
 AtomicIncrementRequest.cf - - The column family to be used.public List<org.hbase.async.PutRequest> getActions()
AsyncHbaseEventSerializergetActions in interface AsyncHbaseEventSerializerPutRequest which
 are written as such to HBase.public List<org.hbase.async.AtomicIncrementRequest> getIncrements()
AsyncHbaseEventSerializergetIncrements in interface AsyncHbaseEventSerializerAtomicIncrementRequest which
 are written as such to HBase.public void cleanUp()
AsyncHbaseEventSerializercleanUp in interface AsyncHbaseEventSerializerpublic void configure(Context context)
ConfigurableRequest the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure in interface Configurablepublic void setEvent(Event event)
setEvent in interface AsyncHbaseEventSerializerevent - Event to be written to HBasepublic void configure(ComponentConfiguration conf)
configure in interface ConfigurableComponentCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.