Commit b3465391 authored by Federico Mestrone's avatar Federico Mestrone
Browse files

Fixed bug with new data types of Impression

parent e7b764a8
......@@ -44,7 +44,7 @@ public class BigtableHelper {
Table table = null;
try {
table = BigtableHelper.getConnection().getTable(TableName.valueOf("impressions"));
Put p = new Put(Bytes.toBytes(String.format("%d#%d#%d#%d", entry.getSiteCategory(), entry.getAppCategory(), entry.getDeviceType(), entry.getHour())));
Put p = new Put(Bytes.toBytes(String.format("%s#%s#%d#%d", entry.getSiteCategory(), entry.getAppCategory(), entry.getDeviceType(), entry.getHour())));
p.addColumn(CF1, Bytes.toBytes("ID"), Bytes.toBytes(entry.getImpressionId()));
p.addColumn(CF1, Bytes.toBytes("CLICK"), Bytes.toBytes(entry.getClicked()));
p.addColumn(CF1, Bytes.toBytes("HOUR"), Bytes.toBytes(entry.getHour()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment