Skip to content

Commit

Permalink
add "raw" shortcut for RawFileOutputFormat and MultipleRawFileOutputF…
Browse files Browse the repository at this point in the history
…ormat

(cherry picked from commit ea2f84e)
  • Loading branch information
dangra authored and Klaas Bosteels committed Mar 17, 2011
1 parent 76c7c9b commit a1a9cdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dumbo/backends/streaming.py
Expand Up @@ -154,11 +154,13 @@ def run(self):
outputformat_shortcuts = \
{'code': 'fm.last.feathers.output.MultipleSequenceFiles',
'text': 'fm.last.feathers.output.MultipleTextFiles',
'raw': 'fm.last.feathers.output.MultipleRawFileOutputFormat',
'sequencefile': 'fm.last.feathers.output.MultipleSequenceFiles'}
else:
outputformat_shortcuts = \
{'code': 'org.apache.hadoop.mapred.SequenceFileOutputFormat',
'text': 'org.apache.hadoop.mapred.TextOutputFormat',
'raw': 'fm.last.feathers.output.RawFileOutputFormat',
'sequencefile': 'org.apache.hadoop.mapred.SequenceFileOutputFormat'}
outputformat_shortcuts.update(configopts('outputformats', self.prog))
outputformat = addedopts['outputformat'][0]
Expand Down

0 comments on commit a1a9cdb

Please sign in to comment.