iverase commented on a change in pull request #72:
URL: https://github.com/apache/lucene/pull/72#discussion_r614079868



##########
File path: 
lucene/core/src/java/org/apache/lucene/codecs/lucene90/compressing/Lucene90CompressingTermVectorsReader.java
##########
@@ -295,6 +300,38 @@ public TermVectorsReader clone() {
     return new Lucene90CompressingTermVectorsReader(this);
   }
 
+  private static RandomAccessInput slice(IndexInput in) throws IOException {
+    final int length = in.readVInt();
+    final byte[] bytes = new byte[length];
+    in.readBytes(bytes, 0, length);
+    final ByteArrayDataInput input = new ByteArrayDataInput(bytes);

Review comment:
       Lets wrap it and use a ByteBuffersDataInput instead.




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



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

Reply via email to