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-393) byte[] constructor for Utf8 desired
Date Thu, 04 Feb 2010 01:12:27 GMT

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

Thiruvalluvan M. G. commented on AVRO-393:
------------------------------------------

While at it, it will be useful to add another constructor that takes a sub-array:

Utf8(byte[] bytes, int start, int len);

> byte[] constructor for Utf8 desired
> -----------------------------------
>
>                 Key: AVRO-393
>                 URL: https://issues.apache.org/jira/browse/AVRO-393
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Jeff Hodges
>            Assignee: Jeff Hodges
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: byte_utf8.patch
>
>
> We've come across a few use cases where we know that a given byte array is properly Utf8
encoded, but Utf8 has no constructor to take it. Instead, we have to turn it into a String
first just to have it swapped back. This is sucky.

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


Mime
View raw message