GigaSpaces XAP 9.1 API

org.openspaces.persistency.cassandra.meta.types
Class ValidatorClassInferer

java.lang.Object
  extended by 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
           
 
Constructor Summary
ValidatorClassInferer()
           
 
Method Summary
static String getBytesTypeValidationClass()
           
static String infer(Class<?> type)
           
static boolean isBytesType(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ValidatorClassInferer

public ValidatorClassInferer()
Method Detail

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.

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.