public final class UDHelper
extends java.lang.Object
| Constructor and Description |
|---|
UDHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class<?> |
asJavaClass(com.datastax.driver.core.TypeCodec<?> codec) |
static java.lang.Object |
deserialize(com.datastax.driver.core.TypeCodec<?> codec,
int protocolVersion,
java.nio.ByteBuffer value) |
static com.datastax.driver.core.DataType |
driverType(AbstractType abstractType)
Returns the Java Driver
DataType for the C* internal type. |
static com.datastax.driver.core.DataType[] |
driverTypes(java.util.List<AbstractType<?>> abstractTypes)
Construct an array containing the Java Driver
DataTypes for the
C* internal types. |
static boolean |
isNullOrEmpty(AbstractType<?> type,
java.nio.ByteBuffer bb) |
static java.lang.Class<?>[] |
javaTypes(com.datastax.driver.core.TypeCodec<java.lang.Object>[] dataTypes,
boolean calledOnNullInput)
Construct an array containing the Java classes for the given Java Driver
DataTypes. |
static java.nio.ByteBuffer |
serialize(com.datastax.driver.core.TypeCodec<?> codec,
int protocolVersion,
java.lang.Object value) |
public static java.lang.Class<?>[] javaTypes(com.datastax.driver.core.TypeCodec<java.lang.Object>[] dataTypes,
boolean calledOnNullInput)
DataTypes.dataTypes - array with UDF argument typescalledOnNullInput - whether to allow null as an argument valuepublic static com.datastax.driver.core.DataType[] driverTypes(java.util.List<AbstractType<?>> abstractTypes)
DataTypes for the
C* internal types.abstractTypes - list with UDF argument typesDataTypepublic static com.datastax.driver.core.DataType driverType(AbstractType abstractType)
DataType for the C* internal type.public static java.lang.Object deserialize(com.datastax.driver.core.TypeCodec<?> codec,
int protocolVersion,
java.nio.ByteBuffer value)
public static java.nio.ByteBuffer serialize(com.datastax.driver.core.TypeCodec<?> codec,
int protocolVersion,
java.lang.Object value)
public static java.lang.Class<?> asJavaClass(com.datastax.driver.core.TypeCodec<?> codec)
public static boolean isNullOrEmpty(AbstractType<?> type, java.nio.ByteBuffer bb)
Copyright © 2016 The Apache Software Foundation