public class CellValidator extends Object implements Serializable
Cell.
In the case of collection types, a simple cassandra marshaller qualified name
is not enough to fully generate an AbstractType, we also need the type(s) the
collection holds.| Modifier and Type | Class and Description |
|---|---|
static class |
CellValidator.Kind
Possible types of CellValidator.
|
| Modifier and Type | Method and Description |
|---|---|
static CellValidator |
cellValidator(com.datastax.driver.core.DataType type)
Factory method that builds a CellValidator from a DataType object.
|
static CellValidator |
cellValidator(Field field)
Factory method that builds a CellValidator from an IDeepType field.
|
static <T> CellValidator |
cellValidator(T obj)
Generates a CellValidator for a generic instance of an object.
|
boolean |
equals(Object o) |
org.apache.cassandra.db.marshal.AbstractType<?> |
getAbstractType()
Generates the cassandra marshaller (
AbstractType) for this CellValidator. |
com.datastax.driver.core.DataType.Name |
getCqlTypeName() |
String |
getValidatorClassName()
Getter for validatorClassName.
|
Collection<String> |
getValidatorTypes()
Getter for validatorTypes.
|
int |
hashCode() |
String |
toString() |
CellValidator.Kind |
validatorKind()
Getter for validatorKind.
|
public static CellValidator cellValidator(Field field)
field - the IDeepType field.public static CellValidator cellValidator(com.datastax.driver.core.DataType type)
type - the data type coming from the driver.public static <T> CellValidator cellValidator(T obj)
T - the generic type of the provided object instance.obj - an instance to use to build the new CellValidator.public org.apache.cassandra.db.marshal.AbstractType<?> getAbstractType()
AbstractType) for this CellValidator.public String getValidatorClassName()
public Collection<String> getValidatorTypes()
public CellValidator.Kind validatorKind()
public com.datastax.driver.core.DataType.Name getCqlTypeName()
Copyright © 2014. All rights reserved.