Skip to content

Commit

Permalink
Use static method for JSON writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Dec 4, 2023
1 parent 4d576bc commit 4cbe751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) {

private static Kvin createStore(String storeLocation) {
URI locationUri = URIs.createURI(storeLocation);
Path path = null;
Path path;
if (locationUri.scheme() != null && locationUri.scheme().startsWith("http")) {
return new KvinHttp(storeLocation);
} else if (locationUri.isFile()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class KvinServiceBenchmark {

if (i % 10000 == 0) {
println(" at: " + i)
val json: String = new JsonFormatWriter().toJsonString(WrappedIterator.create(tuples.iterator()))
val json = JsonFormatWriter.toJsonString(WrappedIterator.create(tuples.iterator()))
queue.put(Some(json))
tuples = new util.ArrayList[KvinTuple]()
}
Expand Down

0 comments on commit 4cbe751

Please sign in to comment.