incubator-crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Micah Whitacre (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRUNCH-123) HBaseTarget should support PCollection<Delete>
Date Tue, 04 Dec 2012 19:08:58 GMT
Micah Whitacre created CRUNCH-123:
-------------------------------------

             Summary: HBaseTarget should support PCollection<Delete>
                 Key: CRUNCH-123
                 URL: https://issues.apache.org/jira/browse/CRUNCH-123
             Project: Crunch
          Issue Type: Improvement
          Components: Core
            Reporter: Micah Whitacre
            Assignee: Josh Wills


Currently the HBaseTarget implementation does not accept PCollection<Delete> because
of the following code in HBaseTarget.

{quote}
@Override
  public boolean accept(OutputHandler handler, PType<?> ptype) {
    if (Put.class.equals(ptype.getTypeClass())) {
      handler.configure(this, ptype);
      return true;
    }
    return false;
  }
{quote}

The TableOutputFormat supports deletes so it seems like a change to the if statement to check
if the ptype.getTypeClass() equals Delete.class is all that is needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message