lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (LUCENE-2777) Revise PagedBytes#fillUsingLengthPrefix* methods names
Date Fri, 26 Nov 2010 14:09:13 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon Willnauer reassigned LUCENE-2777:
---------------------------------------

    Assignee: Simon Willnauer

> Revise PagedBytes#fillUsingLengthPrefix* methods names
> ------------------------------------------------------
>
>                 Key: LUCENE-2777
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2777
>             Project: Lucene - Java
>          Issue Type: Task
>    Affects Versions: CSF branch, 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>
> PagedBytes has 3 different variants of fillUsingLengthPrefix. We need better names for
that since CSFBranch already added a 4th one.
> here are some suggestions:
> {code}
> /** Reads length as 1 or 2 byte vInt prefix, starting @ start */
>     public BytesRef fillLengthAndOffset(BytesRef b, long start) 
> //    was: public BytesRef fillUsingLengthPrefix(BytesRef b, long start) 
>  /** @lucene.internal  Reads length as 1 or 2 byte vInt prefix, starting @ start.  Returns
the block number of the term. */
>     public int getBlockAndFill(BytesRef b, long start) 
> //    was: public BytesRef fillUsingLengthPrefix2(BytesRef b, long start) 
> /** @lucene.internal  Reads length as 1 or 2 byte vInt prefix, starting @ start. 
>      * Returns the start offset of the next part, suitable as start parameter on next
call
>      * to sequentially read all BytesRefs. */
>     public long getNextOffsetAndFill(BytesRef b, long start) 
> //    was: public BytesRef fillUsingLengthPrefix3(BytesRef b, long start) 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message