GigaSpaces XAP 9.5 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 ComparatorType BOOLEANTYPE
           
static ComparatorType DATETYPE
           
static ComparatorType DOUBLETYPE
           
static ComparatorType FLOATTYPE
           
static 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 ComparatorType INT32TYPE

DATETYPE

public static final ComparatorType DATETYPE

BOOLEANTYPE

public static final ComparatorType BOOLEANTYPE

FLOATTYPE

public static final ComparatorType FLOATTYPE

DOUBLETYPE

public static final 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.5 API

Copyright © GigaSpaces.