hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1205) Enhance HBaseStorage-- Make it support loading row key and implement StoreFunc
Date Wed, 27 Jan 2010 09:27:34 GMT

    [ 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.


Mime
View raw message