Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cld
workloads
tpcds
Commits
06bd3dae
Commit
06bd3dae
authored
Apr 11, 2017
by
Jonathan Mace
Browse files
add tohexstring method
parent
016ac195
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/edu/brown/cs/systems/tpcds/spark/SparkTPCDSBatchGenerator.java
View file @
06bd3dae
...
...
@@ -151,7 +151,7 @@ public class SparkTPCDSBatchGenerator {
System
.
out
.
println
(
"Query "
+
query
+
" failed due to "
+
e
.
getClass
().
getSimpleName
()
+
": "
+
e
.
getMessage
());
errorreason
=
e
.
getClass
().
getSimpleName
();
}
Object
[]
row
=
{
end
,
iteration
,
query
.
benchmarkName
(),
query
.
queryName
,
query
,
end
-
begin
,
successful
,
errorreason
,
taskId
,
taskId
+
1
};
Object
[]
row
=
{
end
,
iteration
,
query
.
benchmarkName
(),
query
.
queryName
,
query
,
end
-
begin
,
successful
,
errorreason
,
toHexString
(
taskId
)
,
toHexString
(
taskId
+
1
)
};
statusLog
.
println
(
StringUtils
.
join
(
row
,
"\t"
));
statusLog
.
flush
();
...
...
@@ -160,5 +160,9 @@ public class SparkTPCDSBatchGenerator {
statusLog
.
close
();
}
public
static
String
toHexString
(
long
value
)
{
return
String
.
format
(
"%16s"
,
Long
.
toHexString
(
value
)).
replace
(
' '
,
'0'
);
}
}
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