nbalajee commented on issue #1077: [HUDI-335] : Improvements to DiskbasedMap
URL: https://github.com/apache/incubator-hudi/pull/1077#issuecomment-568491020
 
 
   > We already have a `BufferedFSInputStream` in the codebase. Can we see if 
this can be reused instead? We anyway just read bytes..
   > 
   > ```
   > SerializationUtils
   >           .deserialize(SpillableMapUtils.readBytesFromDisk(file, 
entry.getOffsetOfValue(), entry.getSizeOfValue()));
   > ```
   
   Thanks for your suggestion Vinod.  BufferedFSInputStream allows seek forward 
(file pointer to make forward progress) and limited seek backwards 
functionality (seek to a previously set mark on the stream).   Does not support 
seek anywhere, for random access of records (get() functionality).
    
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to