You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2010/01/27 10:27:34 UTC

[jira] Commented: (PIG-1205) Enhance HBaseStorage-- Make it support loading row key and implement StoreFunc

    [ https://issues.apache.org/jira/browse/PIG-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805435#action_12805435 ] 

Jeff Zhang commented on PIG-1205:
---------------------------------

This issue is about enhance the features of HBaseStorage.
1. make it support loading key.  Add a constructor for HBaseStorage , the second argument can have value "true" or "false" which indicate whether you want to load the row key as the first field of Tuple
{code}
public HBaseStorage(String columnList, String loadRowKey){
...
}
{code}

2. Make the HBaseStorage implements interface StoreFunc, you can store the Tuple to HBase. One thing to be noticed is that if you use HBaseStorage, the type of  of each field stored in HBase is String no matter what its type in Tuple. That means if you use HBaseStorage to load it again, you have to convert the type by yourself. The HBaseStorage do not do the type conversion for you.

> Enhance HBaseStorage-- Make it support loading row key and implement StoreFunc
> ------------------------------------------------------------------------------
>
>                 Key: PIG-1205
>                 URL: https://issues.apache.org/jira/browse/PIG-1205
>             Project: Pig
>          Issue Type: Sub-task
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.