This project has retired. For details please refer to its
Attic page.
PTypes (Apache Crunch 0.7.0 API)
org.apache.crunch.types
Class PTypes
java.lang.Object
org.apache.crunch.types.PTypes
public class PTypes
- extends Object
Utility functions for creating common types of derived PTypes, e.g., for JSON
data, protocol buffers, and Thrift records.
BYTE_TO_BIGINT
public static MapFn<ByteBuffer,BigInteger> BYTE_TO_BIGINT
BIGINT_TO_BYTE
public static MapFn<BigInteger,ByteBuffer> BIGINT_TO_BYTE
PTypes
public PTypes()
bigInt
public static PType<BigInteger> bigInt(PTypeFamily typeFamily)
uuid
public static PType<UUID> uuid(PTypeFamily ptf)
jsonString
public static <T> PType<T> jsonString(Class<T> clazz,
PTypeFamily typeFamily)
protos
public static <T extends com.google.protobuf.Message> PType<T> protos(Class<T> clazz,
PTypeFamily typeFamily)
thrifts
public static <T extends org.apache.thrift.TBase> PType<T> thrifts(Class<T> clazz,
PTypeFamily typeFamily)
enums
public static final <T extends Enum> PType<T> enums(Class<T> type,
PTypeFamily typeFamily)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.