Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-1725

Old TableMap interface's definitions are not generic enough

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.20.0
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In old mapred package, TableMap is defined like this:

      public interface TableMap<K extends WritableComparable<K>, V extends Writable>

      I think the "WritableComparable<K>" part is new, because some of my old code does not compile with hbase 0.20. Specifically, you can not output a hadoop.io.Text from TableMap as Text implements WritableComparable<BinaryComparable> and not WritableComparable<Text>.

        Attachments

        1. mapred.patch
          0.6 kB
          Doğacan Güney

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dogacan Doğacan Güney
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: