[
https://issues.apache.org/jira/browse/HIVE-6411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14576663#comment-14576663
]
Lefty Leverenz commented on HIVE-6411:
--------------------------------------
[~amains12] documented this in the wiki so I'm removing the TODOC14 label.
Thanks Andrew!
* [HBaseIntegration -- Complex Composite Row Keys and HBaseKeyFactory |
https://cwiki.apache.org/confluence/display/Hive/HBaseIntegration#HBaseIntegration-ComplexCompositeRowKeysandHBaseKeyFactory]
Note that the doc has a TODO (so maybe the TODOC14 label should be restored):
bq. "hbase.composite.key.factory" should be the fully qualified class name of
a class implementing HBaseKeyFactory. See SampleHBaseKeyFactory2 for a fixed
length example in the same package. This class must be on your classpath in
order for the above example to work. TODO: place these in an accessible place;
they're currently only in test code.
> Support more generic way of using composite key for HBaseHandler
> ----------------------------------------------------------------
>
> Key: HIVE-6411
> URL: https://issues.apache.org/jira/browse/HIVE-6411
> Project: Hive
> Issue Type: Improvement
> Components: HBase Handler
> Reporter: Navis
> Assignee: Navis
> Priority: Minor
> Fix For: 0.14.0
>
> Attachments: HIVE-6411.1.patch.txt, HIVE-6411.10.patch.txt,
> HIVE-6411.11.patch.txt, HIVE-6411.2.patch.txt, HIVE-6411.3.patch.txt,
> HIVE-6411.4.patch.txt, HIVE-6411.5.patch.txt, HIVE-6411.6.patch.txt,
> HIVE-6411.7.patch.txt, HIVE-6411.8.patch.txt, HIVE-6411.9.patch.txt
>
>
> HIVE-2599 introduced using custom object for the row key. But it forces key
> objects to extend HBaseCompositeKey, which is again extension of LazyStruct.
> If user provides proper Object and OI, we can replace internal key and keyOI
> with those.
> Initial implementation is based on factory interface.
> {code}
> public interface HBaseKeyFactory {
> void init(SerDeParameters parameters, Properties properties) throws
> SerDeException;
> ObjectInspector createObjectInspector(TypeInfo type) throws SerDeException;
> LazyObjectBase createObject(ObjectInspector inspector) throws
> SerDeException;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)