public class HBaseResolver extends Plugin implements ReadResolver
Result objects)
into a List of OneField objects.
That also includes the conversion process of each HBase column's value into its HAWQ assigned type.
Currently, the class assumes all HBase values are stored as String object Bytes encoded.| Constructor and Description |
|---|
HBaseResolver(InputData input)
Constructs a resolver and initializes the table's tuple description.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<OneField> |
getFields(OneRow onerow)
Splits an HBase
Result object into a list of OneField,
based on the table's tuple description. |
isThreadSafepublic HBaseResolver(InputData input)
input - query information, contains HBase table name and filterpublic java.util.List<OneField> getFields(OneRow onerow) throws java.lang.Exception
Result object into a list of OneField,
based on the table's tuple description.
Each field is converted from HBase bytes into its column description type.getFields in interface ReadResolveronerow - the row to get the fields fromjava.lang.Exception - if decomposing the row into fields failed