|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.contrib.text.Parse
public final class Parse
Methods for parsing instances of PCollection<String> into PCollection's of strongly-typed
tuples.
| Method Summary | ||
|---|---|---|
static
|
parse(String groupName,
PCollection<String> input,
Extractor<T> extractor)
Parses the lines of the input PCollection<String> and returns a PCollection<T> using
the given Extractor<T>. |
|
static
|
parse(String groupName,
PCollection<String> input,
PTypeFamily ptf,
Extractor<T> extractor)
Parses the lines of the input PCollection<String> and returns a PCollection<T> using
the given Extractor<T> that uses the given PTypeFamily. |
|
static
|
parseTable(String groupName,
PCollection<String> input,
Extractor<Pair<K,V>> extractor)
Parses the lines of the input PCollection<String> and returns a PTable<K, V> using
the given Extractor<Pair<K, V>>. |
|
static
|
parseTable(String groupName,
PCollection<String> input,
PTypeFamily ptf,
Extractor<Pair<K,V>> extractor)
Parses the lines of the input PCollection<String> and returns a PTable<K, V> using
the given Extractor<Pair<K, V>> that uses the given PTypeFamily. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> PCollection<T> parse(String groupName,
PCollection<String> input,
Extractor<T> extractor)
PCollection<String> and returns a PCollection<T> using
the given Extractor<T>.
groupName - A label to use for tracking errors related to the parsing processinput - The input PCollection<String> to convertextractor - The Extractor<T> that converts each line
PCollection<T>
public static <T> PCollection<T> parse(String groupName,
PCollection<String> input,
PTypeFamily ptf,
Extractor<T> extractor)
PCollection<String> and returns a PCollection<T> using
the given Extractor<T> that uses the given PTypeFamily.
groupName - A label to use for tracking errors related to the parsing processinput - The input PCollection<String> to convertptf - The PTypeFamily of the returned PCollection<T>extractor - The Extractor<T> that converts each line
PCollection<T>
public static <K,V> PTable<K,V> parseTable(String groupName,
PCollection<String> input,
Extractor<Pair<K,V>> extractor)
PCollection<String> and returns a PTable<K, V> using
the given Extractor<Pair<K, V>>.
groupName - A label to use for tracking errors related to the parsing processinput - The input PCollection<String> to convertextractor - The Extractor<Pair<K, V>> that converts each line
PTable<K, V>
public static <K,V> PTable<K,V> parseTable(String groupName,
PCollection<String> input,
PTypeFamily ptf,
Extractor<Pair<K,V>> extractor)
PCollection<String> and returns a PTable<K, V> using
the given Extractor<Pair<K, V>> that uses the given PTypeFamily.
groupName - A label to use for tracking errors related to the parsing processinput - The input PCollection<String> to convertptf - The PTypeFamily of the returned PTable<K, V>extractor - The Extractor<Pair<K, V>> that converts each line
PTable<K, V>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||