Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gcp
gcp-bigdataml
Commits
b3465391
Commit
b3465391
authored
Apr 03, 2019
by
Federico Mestrone
Browse files
Fixed bug with new data types of Impression
parent
e7b764a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
adtech-storage/src/main/java/gcp/cm/bigdata/adtech/BigtableHelper.java
View file @
b3465391
...
...
@@ -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
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment