[
https://issues.apache.org/jira/browse/LUCENE-8805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16845112#comment-16845112
]
ASF subversion and git services commented on LUCENE-8805:
---------------------------------------------------------
Commit 5a694ea26ff862ecc874ca798135073d300c2234 in lucene-solr's branch
refs/heads/master from Namgyu Kim
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=5a694ea ]
LUCENE-8805: Parameter changes for stringField() in StoredFieldVisitor
Signed-off-by: Namgyu Kim <[email protected]>
Signed-off-by: Adrien Grand <[email protected]>
> Parameter changes for stringField() in StoredFieldVisitor
> ---------------------------------------------------------
>
> Key: LUCENE-8805
> URL: https://issues.apache.org/jira/browse/LUCENE-8805
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Namgyu Kim
> Priority: Major
> Attachments: LUCENE-8805.patch, LUCENE-8805.patch, LUCENE-8805.patch
>
>
> I wrote this patch after seeing the comments left by [~mikemccand] when
> SortingStoredFieldsConsumer class was first created.
> {code:java}
> @Override
> public void binaryField(FieldInfo fieldInfo, byte[] value) throws IOException
> {
> ...
> // TODO: can we avoid new BR here?
> ...
> }
> @Override
> public void stringField(FieldInfo fieldInfo, byte[] value) throws IOException
> {
> ...
> // TODO: can we avoid new String here?
> ...
> }
> {code}
> I changed two things.
> -1) change binaryField() parameters from byte[] to BytesRef.-
> 2) change stringField() parameters from byte[] to String.
> I also changed the related contents while doing the work.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]