somandal commented on code in PR #11131:
URL: https://github.com/apache/pinot/pull/11131#discussion_r1268273117
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/inv/geospatial/BaseH3IndexCreator.java:
##########
@@ -157,9 +157,12 @@ void generateIndexFile()
FileChannel bitmapOffsetFileChannel = new
RandomAccessFile(_bitmapOffsetFile, "r").getChannel();
FileChannel bitmapValueFileChannel = new
RandomAccessFile(_bitmapValueFile, "r").getChannel()) {
indexFileChannel.write(headerBuffer);
- dictionaryFileChannel.transferTo(0, _dictionaryFile.length(),
indexFileChannel);
- bitmapOffsetFileChannel.transferTo(0, _bitmapOffsetFile.length(),
indexFileChannel);
- bitmapValueFileChannel.transferTo(0, _bitmapValueFile.length(),
indexFileChannel);
+
org.apache.pinot.common.utils.FileUtils.transferBytes(dictionaryFileChannel, 0,
_dictionaryFile.length(),
Review Comment:
nit: can we add this as an import?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]