public class PTypes extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static MapFn<BigDecimal,ByteBuffer> | BIGDECIMAL_TO_BYTE | 
| static MapFn<BigInteger,ByteBuffer> | BIGINT_TO_BYTE | 
| static MapFn<ByteBuffer,BigDecimal> | BYTE_TO_BIGDECIMAL | 
| static MapFn<ByteBuffer,BigInteger> | BYTE_TO_BIGINT | 
| Constructor and Description | 
|---|
| PTypes() | 
| Modifier and Type | Method and Description | 
|---|---|
| static PType<BigDecimal> | bigDecimal(PTypeFamily typeFamily)A PType for Java's  BigDecimaltype. | 
| static PType<BigInteger> | bigInt(PTypeFamily typeFamily)A PType for Java's  BigIntegertype. | 
| static <T extends Enum> | enums(Class<T> type,
     PTypeFamily typeFamily)Constructs a PType for a Java  Enumtype. | 
| static <T> PType<T> | jsonString(Class<T> clazz,
          PTypeFamily typeFamily)Constructs a PType for reading a Java type from a JSON string using Jackson's  ObjectMapper. | 
| static <T extends com.google.protobuf.Message> | protos(Class<T> clazz,
      PTypeFamily typeFamily)Constructs a PType for the given protocol buffer. | 
| static <T extends com.google.protobuf.Message> | protos(Class<T> clazz,
      PTypeFamily typeFamily,
      SerializableSupplier<com.google.protobuf.ExtensionRegistry> supplier)Constructs a PType for a protocol buffer, using the given  SerializableSupplierto provide
 anExtensionRegistryto use in reading the given protobuf. | 
| static <T extends org.apache.thrift.TBase> | thrifts(Class<T> clazz,
       PTypeFamily typeFamily)Constructs a PType for a Thrift record. | 
| static PType<UUID> | uuid(PTypeFamily ptf)A PType for Java's  UUIDtype. | 
public static final MapFn<ByteBuffer,BigInteger> BYTE_TO_BIGINT
public static final MapFn<BigInteger,ByteBuffer> BIGINT_TO_BYTE
public static final MapFn<ByteBuffer,BigDecimal> BYTE_TO_BIGDECIMAL
public static final MapFn<BigDecimal,ByteBuffer> BIGDECIMAL_TO_BYTE
public static PType<BigInteger> bigInt(PTypeFamily typeFamily)
BigInteger type.public static PType<BigDecimal> bigDecimal(PTypeFamily typeFamily)
BigDecimal type.public static PType<UUID> uuid(PTypeFamily ptf)
UUID type.public static <T> PType<T> jsonString(Class<T> clazz, PTypeFamily typeFamily)
ObjectMapper.public static <T extends com.google.protobuf.Message> PType<T> protos(Class<T> clazz, PTypeFamily typeFamily)
public static <T extends com.google.protobuf.Message> PType<T> protos(Class<T> clazz, PTypeFamily typeFamily, SerializableSupplier<com.google.protobuf.ExtensionRegistry> supplier)
SerializableSupplier to provide
 an ExtensionRegistry to use in reading the given protobuf.public static <T extends org.apache.thrift.TBase> PType<T> thrifts(Class<T> clazz, PTypeFamily typeFamily)
public static <T extends Enum> PType<T> enums(Class<T> type, PTypeFamily typeFamily)
Enum type.Copyright © 2017 The Apache Software Foundation. All rights reserved.