Class HbaseRowBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.hbase.integ.HbaseRowBuilder
-
public class HbaseRowBuilder extends Object
This class constructs a row that can be inserted into an HBase table.
-
-
Constructor Summary
Constructors Constructor Description HbaseRowBuilder(String rowDesignation)
The constructor instantiates the row with the row designation (usually the row number).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HbaseRowBuilder
addColumn(String familyName, String columnName, String columnValue)
Adds a single column to the row.org.apache.hadoop.hbase.client.Put
build()
Returns the built row.
-
-
-
Constructor Detail
-
HbaseRowBuilder
public HbaseRowBuilder(String rowDesignation)
The constructor instantiates the row with the row designation (usually the row number).- Parameters:
rowDesignation
- The row number (e.g. "1").
-
-
Method Detail
-
addColumn
public HbaseRowBuilder addColumn(String familyName, String columnName, String columnValue)
Adds a single column to the row.- Parameters:
familyName
- The name of the family.columnName
- The name of the column.columnValue
- The value of the column.- Returns:
- A row builder object.
-
build
public org.apache.hadoop.hbase.client.Put build()
Returns the built row.- Returns:
- A Put (row) object.
-
-