public class SimpleHBase2EventSerializer extends Object implements HBase2EventSerializer
Takes optional parameters:
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 null: payloadColumn: Which column to put payload in. If it is null, event data will not be written.
incColumn: Which column to increment. Null means no column is incremented.
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleHBase2EventSerializer.KeyType |
| Constructor and Description |
|---|
SimpleHBase2EventSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(ComponentConfiguration conf) |
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
List<org.apache.hadoop.hbase.client.Row> |
getActions()
Get the actions that should be written out to hbase as a result of this
event.
|
List<org.apache.hadoop.hbase.client.Increment> |
getIncrements() |
void |
initialize(Event event,
byte[] cf)
Initialize the event serializer.
|
public 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 configure(ComponentConfiguration conf)
configure in interface ConfigurableComponentpublic void initialize(Event event, byte[] cf)
HBase2EventSerializerinitialize in interface HBase2EventSerializerevent - Event to be written to HBasecf - Column family to write topublic List<org.apache.hadoop.hbase.client.Row> getActions() throws FlumeException
HBase2EventSerializergetActions in interface HBase2EventSerializerRow which
are written as such to HBase.
0.92 increments do not implement Row, so this is not generic.FlumeExceptionpublic List<org.apache.hadoop.hbase.client.Increment> getIncrements()
getIncrements in interface HBase2EventSerializerpublic void close()
close in interface HBase2EventSerializerCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.