[
https://issues.apache.org/jira/browse/AVRO-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759793#action_12759793
]
Doug Cutting commented on AVRO-80:
----------------------------------
Do folks feel we should switch the default from String to Utf8? This has a
performance implications, since Strings are immutable, while a Utf8 can and is
re-used. Also, when strings are created they must decode UTF-8, while Utf8
only decodes on demand.
Alternately, we could include implementations of ReflectData, DatumReader and
DatumWriter that represent strings with java.lang.String so that folks can use
whichever they prefer. Is that too confusing?
> 'reflect' implementation requires Avro classes to define types
> --------------------------------------------------------------
>
> Key: AVRO-80
> URL: https://issues.apache.org/jira/browse/AVRO-80
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Sharad Agarwal
>
> Since 'reflect' implementation is expected to work with existing code, it
> should work with java types. For example it should work with java String
> instead of org.apache.avro.util.Utf8.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.