lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <>
Subject [jira] Updated: (LUCENE-2126) Split up IndexInput and IndexOutput into DataInput and DataOutput
Date Wed, 24 Feb 2010 19:49:28 GMT


Michael Busch updated LUCENE-2126:

    Attachment: lucene-2126.patch

Updated patch to trunk.

I'll have to make a change to the backwards-tests too, because moving the copyBytes() method
from IndexOutput to DataOutput and changing its parameter from IndexInput to DataInput breaks
drop-in compatibility. 

> Split up IndexInput and IndexOutput into DataInput and DataOutput
> -----------------------------------------------------------------
>                 Key: LUCENE-2126
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: Flex Branch
>            Reporter: Michael Busch
>            Assignee: Michael Busch
>            Priority: Minor
>             Fix For: Flex Branch
>         Attachments: lucene-2126.patch, lucene-2126.patch
> I'd like to introduce the two new classes DataInput and DataOutput
> that contain all methods from IndexInput and IndexOutput that actually
> decode or encode data, such as readByte()/writeByte(),
> readVInt()/writeVInt().
> Methods like getFilePointer(), seek(), close(), etc., which are not
> related to data encoding, but to files as input/output source stay in
> IndexInput/IndexOutput.
> This patch also changes ByteSliceReader/ByteSliceWriter to extend
> DataInput/DataOutput. Previously ByteSliceReader implemented the
> methods that stay in IndexInput by throwing RuntimeExceptions.
> See also LUCENE-2125.
> All tests pass.

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:
For additional commands, e-mail:

View raw message