Permalink
Browse files

Merge pull request #558 from woolfel/master

Int32 and Date comparator - Again
  • Loading branch information...
2 parents fcde06d + 186b131 commit f64c9be77aefc01d000dc5fc861301c0bf8b16d5 @zznate zznate committed Nov 12, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 core/src/main/java/me/prettyprint/hector/api/ddl/ComparatorType.java
View
8 core/src/main/java/me/prettyprint/hector/api/ddl/ComparatorType.java
@@ -16,12 +16,16 @@
"org.apache.cassandra.db.marshal.BooleanType");
public static final ComparatorType BYTESTYPE = new ComparatorType(
"org.apache.cassandra.db.marshal.BytesType");
+ public static final ComparatorType DATETYPE = new ComparatorType(
+ "org.apache.cassandra.db.marshal.DateType");
public static final ComparatorType DECIMALTYPE = new ComparatorType(
"org.apache.cassandra.db.marshal.DecimalType");
public static final ComparatorType FLOATTYPE = new ComparatorType(
"org.apache.cassandra.db.marshal.FloatType");
public static final ComparatorType INTEGERTYPE = new ComparatorType(
"org.apache.cassandra.db.marshal.IntegerType");
+ public static final ComparatorType INT32TYPE = new ComparatorType(
+ "org.apache.cassandra.db.marshal.Int32Type");
public static final ComparatorType LEXICALUUIDTYPE = new ComparatorType(
"org.apache.cassandra.db.marshal.LexicalUUIDType");
public static final ComparatorType LOCALBYPARTITIONERTYPE = new ComparatorType(
@@ -44,7 +48,8 @@
private static final Map<String, ComparatorType> valuesMap;
static {
- ComparatorType[] types = { ASCIITYPE, BOOLEANTYPE, BYTESTYPE, DECIMALTYPE, FLOATTYPE, INTEGERTYPE,
+ ComparatorType[] types = { ASCIITYPE, BOOLEANTYPE, BYTESTYPE, DATETYPE,
+ DECIMALTYPE, FLOATTYPE, INTEGERTYPE, INT32TYPE,
LEXICALUUIDTYPE, LOCALBYPARTITIONERTYPE, LONGTYPE, TIMEUUIDTYPE,
UTF8TYPE, COMPOSITETYPE, DYNAMICCOMPOSITETYPE, UUIDTYPE, COUNTERTYPE };
@@ -113,4 +118,3 @@ public boolean equals(Object obj) {
return true;
}
}
-

0 comments on commit f64c9be

Please sign in to comment.