|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.util.Protos
public class Protos
Utility functions for working with protocol buffers in Crunch.
| Nested Class Summary | |
|---|---|
static class |
Protos.ExtractKeyFn<M extends com.google.protobuf.Message,K>
|
static class |
Protos.TextToProtoFn<M extends com.google.protobuf.Message>
|
| Constructor Summary | |
|---|---|
Protos()
|
|
| Method Summary | ||
|---|---|---|
static
|
extractKey(String fieldName)
|
|
static
|
lineParser(String sep,
Class<M> msgClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Protos()
| Method Detail |
|---|
public static <M extends com.google.protobuf.Message,K> MapFn<M,K> extractKey(String fieldName)
public static <M extends com.google.protobuf.Message> DoFn<String,M> lineParser(String sep,
Class<M> msgClass)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||