uschindler commented on issue #16951:
URL: https://github.com/apache/lucene/issues/16951#issuecomment-6509136525

   Another addition I'd like to do is: Casting an `IndexInput` directly to 
`RandomAccessInput` is not supported, although it may implement that interface. 
The only supported way to get one is by calling `randomAccessSlice()` which 
always returns a **new** slice, independent from the original input. Casting 
the original input may modify the state of the `IndexInput` when doing random 
accesses and needs to be avoided.


-- 
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]

Reply via email to