crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Friedrich (JIRA)" <>
Subject [jira] [Updated] (CRUNCH-97) Add helpers for parsing PCollection<String> instances
Date Sat, 01 Dec 2012 11:41:58 GMT


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:
>             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,
> 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:

View raw message