public class HBaseBolt extends AbstractHBaseBolt
Basic bolt for writing to HBase.
Note: Each HBaseBolt defined in a topology is tied to a specific table.
batchSize, collector, configKey, flushIntervalSecs, hBaseClient, mapper, tableName| Constructor and Description |
|---|
HBaseBolt(String tableName,
HBaseMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) |
void |
execute(Tuple tuple) |
Map<String,Object> |
getComponentConfiguration() |
HBaseBolt |
withBatchSize(int batchSize) |
HBaseBolt |
withConfigKey(String configKey) |
HBaseBolt |
withFlushIntervalSecs(int flushIntervalSecs) |
HBaseBolt |
writeToWAL(boolean writeToWAL) |
preparecleanuppublic HBaseBolt(String tableName, HBaseMapper mapper)
public HBaseBolt writeToWAL(boolean writeToWAL)
public HBaseBolt withBatchSize(int batchSize)
public HBaseBolt withFlushIntervalSecs(int flushIntervalSecs)
public Map<String,Object> getComponentConfiguration()
getComponentConfiguration in interface IComponentgetComponentConfiguration in class BaseComponentpublic void execute(Tuple tuple)
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.