how to put a int type filed to druid with tranquility

hi guys
I am try to use tranquility to ingest data to druid. I copied code from readme file in tranquility, and change some code like follows:

Map<String, Object> map = new HashMap<String, Object>();

map.put(“bar”, i);

Integer val = new Integer(String.valueOf(i));

map.put(“qux”, val);

String nowAsISO = df.format(new Date());

map.put(“timestamp”, nowAsISO);

List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();

list.add(map);

Future numSentFuture = druidService.apply(list);

but when I run a select query against druid, I got this:

“event” : {

“timestamp” : “2015-04-07T11:27:00.000Z”,

“bar” : “106”,

“qux” : “106”,

“baz” : 106,

“cnt” : 1}

so field bar and qux are all string type. and I want to them to be integer, how can I make that happen?

or where I can find some examples to teach myself?

I think, Druid treats dimension values as String [1]. So, if you are specifying “bar” and “qux” as dimensions, it will output as String.

https://github.com/druid-io/druid-api/blob/master/src/main/java/io/druid/data/input/impl/DimensionsSpec.java

I see, thank you for your reply.