|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.DoFn<S,T> org.apache.crunch.MapFn<String,T> org.apache.crunch.types.PTypes.EnumInputMapper<T>
public static class PTypes.EnumInputMapper<T extends Enum>
Constructor Summary | |
---|---|
PTypes.EnumInputMapper(Class<T> type)
|
Method Summary | |
---|---|
T |
map(String input)
Maps the given input into an instance of the output type. |
Methods inherited from class org.apache.crunch.MapFn |
---|
process, scaleFactor |
Methods inherited from class org.apache.crunch.DoFn |
---|
cleanup, configure, initialize, setContext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTypes.EnumInputMapper(Class<T> type)
Method Detail |
---|
public T map(String input)
MapFn
map
in class MapFn<String,T extends Enum>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |