[
https://issues.apache.org/jira/browse/CRUNCH-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias Friedrich updated CRUNCH-97:
-------------------------------------
Attachment: CRUNCH-97-Tokenizer-v1.patch
Here's how it would look with Tokenizers. This is just a demo, I would clean it
up if we decided to go this way. I'd also have to design a nice call syntax for
Parse with tokenizers.
What I don't like about it: It makes nested collections harder to implement
(see the ugly hack for Extractors.xcollect()). We also have to pass column
positions to ExtractorS - that's the price we pay for flexibility.
> Add helpers for parsing PCollection<String> instances
> -----------------------------------------------------
>
> Key: CRUNCH-97
> URL: https://issues.apache.org/jira/browse/CRUNCH-97
> Project: Crunch
> Issue Type: Improvement
> Components: Core
> Reporter: Josh Wills
> Assignee: Josh Wills
> Fix For: 0.5.0
>
> Attachments: CRUNCH-97.patch, CRUNCH-97-take2.patch,
> CRUNCH-97-Tokenizer-v1.patch, CRUNCH-97v3.patch
>
>
> We should make it a bit easier to parse delimited text files into specific
> data types (e.g., ints, floats, etc.) or combinations of types-- e.g., pairs
> of strings and ints, a Tuple3 of booleans, etc.
--
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