public final class UDHelper
extends java.lang.Object
Constructor and Description |
---|
UDHelper() |
Modifier and Type | Method and Description |
---|---|
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
DataType s for the
C* internal types. |
static boolean |
isNullOrEmpty(AbstractType<?> type,
java.nio.ByteBuffer bb) |
static java.lang.Class<?>[] |
javaTypes(com.datastax.driver.core.DataType[] dataTypes,
boolean calledOnNullInput)
Construct an array containing the Java classes for the given Java Driver
DataType s. |
public static java.lang.Class<?>[] javaTypes(com.datastax.driver.core.DataType[] dataTypes, boolean calledOnNullInput)
DataType
s.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)
DataType
s for the
C* internal types.abstractTypes
- list with UDF argument typesDataType
public static com.datastax.driver.core.DataType driverType(AbstractType abstractType)
DataType
for the C* internal type.public static boolean isNullOrEmpty(AbstractType<?> type, java.nio.ByteBuffer bb)
Copyright © 2016 The Apache Software Foundation