You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "iverase (via GitHub)" <gi...@apache.org> on 2023/09/21 15:16:03 UTC
[GitHub] [lucene] iverase commented on a diff in pull request #12581: Allow reading / writing binary stored fields as DataInput
iverase commented on code in PR #12581:
URL: https://github.com/apache/lucene/pull/12581#discussion_r1333235616
##########
lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java:
##########
@@ -182,6 +190,11 @@ public MergeVisitor(MergeState mergeState, int readerIndex) {
}
}
+ @Override
+ public void binaryField(FieldInfo fieldInfo, DataInput value, int length) throws IOException {
+ writeField(remap(fieldInfo), value, length);
+ }
+
@Override
public void binaryField(FieldInfo fieldInfo, byte[] value) throws IOException {
// TODO: can we avoid new BR here?
Review Comment:
Nope, it should not be called, maybe we should assert that it doesn't get called?
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org