|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.util.PTypes
public class PTypes
Utility functions for creating common types of derived PTypes, e.g., for JSON data, protocol buffers, and Thrift records.
Nested Class Summary | |
---|---|
static class |
PTypes.JacksonInputMapFn<T>
|
static class |
PTypes.JacksonOutputMapFn<T>
|
static class |
PTypes.ProtoInputMapFn<T extends com.google.protobuf.Message>
|
static class |
PTypes.ProtoOutputMapFn<T extends com.google.protobuf.Message>
|
static class |
PTypes.ThriftInputMapFn<T extends org.apache.thrift.TBase>
|
static class |
PTypes.ThriftOutputMapFn<T extends org.apache.thrift.TBase>
|
Field Summary | |
---|---|
static MapFn<BigInteger,ByteBuffer> |
BIGINT_TO_BYTE
|
static MapFn<ByteBuffer,BigInteger> |
BYTE_TO_BIGINT
|
Constructor Summary | |
---|---|
PTypes()
|
Method Summary | ||
---|---|---|
static PType<BigInteger> |
bigInt(PTypeFamily typeFamily)
|
|
static
|
jsonString(Class<T> clazz,
PTypeFamily typeFamily)
|
|
static
|
protos(Class<T> clazz,
PTypeFamily typeFamily)
|
|
static
|
thrifts(Class<T> clazz,
PTypeFamily typeFamily)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MapFn<ByteBuffer,BigInteger> BYTE_TO_BIGINT
public static MapFn<BigInteger,ByteBuffer> BIGINT_TO_BYTE
Constructor Detail |
---|
public PTypes()
Method Detail |
---|
public static PType<BigInteger> bigInt(PTypeFamily typeFamily)
public static <T> PType<T> jsonString(Class<T> clazz, PTypeFamily typeFamily)
public static <T extends com.google.protobuf.Message> PType<T> protos(Class<T> clazz, PTypeFamily typeFamily)
public static <T extends org.apache.thrift.TBase> PType<T> thrifts(Class<T> clazz, PTypeFamily typeFamily)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |