You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/08/12 16:47:13 UTC

[jira] [Commented] (LUCENE-5864) Split BytesRef into BytesRef and BytesRefBuilder

    [ https://issues.apache.org/jira/browse/LUCENE-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094115#comment-14094115 ] 

ASF subversion and git services commented on LUCENE-5864:
---------------------------------------------------------

Commit 1617493 from [~jpountz] in branch 'dev/trunk'
[ https://svn.apache.org/r1617493 ]

LUCENE-5864: Split BytesRef into BytesRef and BytesRefBuilder.

> Split BytesRef into BytesRef and BytesRefBuilder
> ------------------------------------------------
>
>                 Key: LUCENE-5864
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5864
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>             Fix For: 4.10
>
>         Attachments: LUCENE-5864.patch, LUCENE-5864.patch, LUCENE-5864.patch
>
>
> Follow-up of LUCENE-5836.
> The fact that BytesRef (and CharsRef, IntsRef, LongsRef) can be used as either pointers to a section of a byte[] or as buffers raises issues. The idea would be to keep BytesRef but remove all the buffer methods like copyBytes, grow, etc. and add a new class BytesRefBuilder that wraps a byte[] and a length (but no offset), has grow/copyBytes/copyChars methods and the ability to build BytesRef instances.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org