public class SimpleHBaseMapper extends Object implements HBaseMapper
Constructor and Description |
---|
SimpleHBaseMapper() |
Modifier and Type | Method and Description |
---|---|
ColumnList |
columns(Tuple tuple)
Given a tuple, return a list of HBase columns to insert.
|
byte[] |
rowKey(Tuple tuple)
Given a tuple, return the HBase rowkey.
|
SimpleHBaseMapper |
withColumnFamily(String columnFamily) |
SimpleHBaseMapper |
withColumnFields(Fields columnFields) |
SimpleHBaseMapper |
withCounterFields(Fields counterFields) |
SimpleHBaseMapper |
withRowKeyField(String rowKeyField) |
public SimpleHBaseMapper withRowKeyField(String rowKeyField)
public SimpleHBaseMapper withColumnFields(Fields columnFields)
public SimpleHBaseMapper withCounterFields(Fields counterFields)
public SimpleHBaseMapper withColumnFamily(String columnFamily)
public byte[] rowKey(Tuple tuple)
HBaseMapper
Given a tuple, return the HBase rowkey.
rowKey
in interface HBaseMapper
public ColumnList columns(Tuple tuple)
HBaseMapper
Given a tuple, return a list of HBase columns to insert.
columns
in interface HBaseMapper
Copyright © 2019 The Apache Software Foundation. All rights reserved.