avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiruvalluvan M. G. (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1182) DataFileReader missing seek, sync methods
Date Fri, 01 Feb 2013 04:39:13 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568470#comment-13568470

Thiruvalluvan M. G. commented on AVRO-1182:

Thanks Daniel.

The patch looks great. A few minor issues:
* It appears that your editor inserts hard-tabs. We use 4 spaces instead of tabs so that the
code looks the same in all editors and in patches.
* A few styling issues. E.g space after '{' or before '}' in single-line functions or space
before and after binary operators. (If it is hard to fix, don't bother. I'll have it fixed
before we check in).
* Since you are using int64_t for sizeBytes() and blockOffsetBytes() in may be prudent to
use the same (instead of size_t) for seekBlockBytes() as well, especially since it refers
to the offset from the beginning of the file.
* The documentation for remainingBytes() in stream.hh is somewhat ambiguous. Since the zero-copy
streams don't have a file pointer, it has a range of bytes in the exposed buffer, you want
to specify if remainingBytes() is the number of bytes remaining from the beginning or end
of the exposed buffer. I prefer it to refer from the end of the exposed buffer.
* sync_match can be made a bit faster if we replace indexes with pointers.

> DataFileReader missing seek, sync methods
> -----------------------------------------
>                 Key: AVRO-1182
>                 URL: https://issues.apache.org/jira/browse/AVRO-1182
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>    Affects Versions: 1.7.3
>            Reporter: Daniel Russel
>         Attachments: add_seek
> The DataFileReader is missing the seek and sync methods that are found in the java version
making it hard to navigate a file except in a linear fashion.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message