asdf2014 commented on a change in pull request #5957: Various changes
URL: https://github.com/apache/incubator-druid/pull/5957#discussion_r200844064
 
 

 ##########
 File path: 
processing/src/test/java/io/druid/collections/bitmap/BitmapBenchmark.java
 ##########
 @@ -73,7 +73,7 @@ protected static ImmutableConciseSet 
makeOffheapConcise(ImmutableConciseSet conc
     conciseCount++;
     final ByteBuffer buf = ByteBuffer.allocateDirect(bytes.length).put(bytes);
     buf.rewind();
-    return new ImmutableConciseSet(buf);
+    return new ImmutableConciseSet(buf.asIntBuffer());
 
 Review comment:
   Is `asIntBuffer` necessary? If the `ImmutableConciseSet(ByteBuffer 
byteBuffer)` constructor is called, it will also call the `asIntBuffer` method 
internally..

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to