Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6411

Support more generic way of using composite key for HBaseHandler

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: HBase Handler
    • Labels:
      None
    • Release Note:
      The new feature needs to be documented at Hive-HBase integration page.

      Description

      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.

      public interface HBaseKeyFactory {
        void init(SerDeParameters parameters, Properties properties) throws SerDeException;
        ObjectInspector createObjectInspector(TypeInfo type) throws SerDeException;
        LazyObjectBase createObject(ObjectInspector inspector) throws SerDeException;
      }
      

        Attachments

        1. HIVE-6411.1.patch.txt
          46 kB
          Navis
        2. HIVE-6411.2.patch.txt
          53 kB
          Navis
        3. HIVE-6411.3.patch.txt
          85 kB
          Navis
        4. HIVE-6411.4.patch.txt
          94 kB
          Navis
        5. HIVE-6411.5.patch.txt
          93 kB
          Navis
        6. HIVE-6411.6.patch.txt
          100 kB
          Navis
        7. HIVE-6411.7.patch.txt
          172 kB
          Navis
        8. HIVE-6411.8.patch.txt
          178 kB
          Navis
        9. HIVE-6411.9.patch.txt
          188 kB
          Navis
        10. HIVE-6411.10.patch.txt
          189 kB
          Swarnim Kulkarni
        11. HIVE-6411.11.patch.txt
          189 kB
          Swarnim Kulkarni

          Issue Links

            Activity

              People

              • Assignee:
                navis Navis
                Reporter:
                navis Navis
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: