dweiss commented on pull request #2094:
URL: https://github.com/apache/lucene-solr/pull/2094#issuecomment-734221687


   As is frequently the case I don't have all the answers until I take a look 
at this... My feeling is that this "endianness" should apply at the lowest 
common denominator where complex-types are read (readint, readlong, etc.). If 
this is datainput/dataoutput then indeed they need this information when 
they're created (and it propagates up to where they're created). This is in a 
way similar to how bytebuffers are designed... only I'd be tempted to make this 
information constant for a datainput/dataoutput (so that source.order(newOrder) 
would create a delegate, not change the source's order).
   
   To determine the byte order of a file you either need an implicit knowledge 
(known codec version) or explicit knowledge (probing for some magic sequence). 
Whether this is always possible in Lucene - I can't tell without actually 
trying.


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to