List<String> iids = mapper.loadKeyList(tableName);
return iids.toArray(new String[] {});
}
private GenericRow genRow(long createdTimeStamp, String id, String key, Object value) {
GenericRow gr = null;
if (value instanceof Double) {
gr = new GenericRow(createdTimeStamp, id, key, null, (Double) value, null);
} else if (value instanceof String) {
gr = new GenericRow(createdTimeStamp, id, key, null, null, (String) value);
} else if (value instanceof Integer) {
gr = new GenericRow(createdTimeStamp, id, key, (Long) value, null, null);
} else if (value instanceof Long) {
gr = new GenericRow(createdTimeStamp, id, key, (Long) value, null, null);
}
return gr;
}