public class PTypes extends Object
Modifier and Type | Field and Description |
---|---|
static MapFn<BigInteger,ByteBuffer> |
BIGINT_TO_BYTE |
static MapFn<ByteBuffer,BigInteger> |
BYTE_TO_BIGINT |
Constructor and Description |
---|
PTypes() |
Modifier and Type | Method and Description |
---|---|
static PType<BigInteger> |
bigInt(PTypeFamily typeFamily) |
static <T extends Enum> |
enums(Class<T> type,
PTypeFamily typeFamily) |
static <T> PType<T> |
jsonString(Class<T> clazz,
PTypeFamily typeFamily) |
static <T extends com.google.protobuf.Message> |
protos(Class<T> clazz,
PTypeFamily typeFamily) |
static <T extends org.apache.thrift.TBase> |
thrifts(Class<T> clazz,
PTypeFamily typeFamily) |
public static MapFn<ByteBuffer,BigInteger> BYTE_TO_BIGINT
public static MapFn<BigInteger,ByteBuffer> BIGINT_TO_BYTE
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)
public static final <T extends Enum> PType<T> enums(Class<T> type, PTypeFamily typeFamily)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.