org.openspaces.persistency.cassandra.meta.types
Class ValidatorClassInferer
java.lang.Object
org.openspaces.persistency.cassandra.meta.types.ValidatorClassInferer
public class ValidatorClassInferer
- extends Object
Helper class to deal with validators that hector doesn't take into consideration
- Since:
- 9.1.1
- Author:
- Dan Kilman
Field Summary |
static me.prettyprint.hector.api.ddl.ComparatorType |
BOOLEANTYPE
|
static me.prettyprint.hector.api.ddl.ComparatorType |
DATETYPE
|
static me.prettyprint.hector.api.ddl.ComparatorType |
DOUBLETYPE
|
static me.prettyprint.hector.api.ddl.ComparatorType |
FLOATTYPE
|
static me.prettyprint.hector.api.ddl.ComparatorType |
INT32TYPE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INT32TYPE
public static final me.prettyprint.hector.api.ddl.ComparatorType INT32TYPE
DATETYPE
public static final me.prettyprint.hector.api.ddl.ComparatorType DATETYPE
BOOLEANTYPE
public static final me.prettyprint.hector.api.ddl.ComparatorType BOOLEANTYPE
FLOATTYPE
public static final me.prettyprint.hector.api.ddl.ComparatorType FLOATTYPE
DOUBLETYPE
public static final me.prettyprint.hector.api.ddl.ComparatorType DOUBLETYPE
ValidatorClassInferer
public ValidatorClassInferer()
infer
public static String infer(Class<?> type)
- Parameters:
type
- The type to infer from.
- Returns:
- The matching Cassandra validation class.
getBytesTypeValidationClass
public static String getBytesTypeValidationClass()
- Returns:
- The default bytes type Cassandra validation class.
isBytesType
public static boolean isBytesType(Class<?> type)
- Parameters:
type
- The type to test.
- Returns:
true
if this type matches the default bytes type Cassandra validation class.
Copyright © GigaSpaces.