hbase support

This commit is contained in:
温少
2012-05-19 14:45:21 +08:00
parent 85ca61fc0a
commit 35f1e3483c
2 changed files with 9 additions and 1 deletions
@@ -44,6 +44,12 @@ public class InsertExecutePlan extends SingleTableExecutePlan {
} else if (value instanceof Integer) {
int intValue = ((Integer) value).intValue();
bytes = Bytes.toBytes(intValue);
} else if (value instanceof Long) {
long longValue = ((Long) value).longValue();
bytes = Bytes.toBytes(longValue);
} else if (value instanceof Boolean) {
boolean booleanValue = ((Boolean) value).booleanValue();
bytes = Bytes.toBytes(booleanValue);
} else {
throw new SQLException("TODO"); // TODO
}