FAQ
Binglin Chang created HADOOP-8985:
-------------------------------------

Summary: Add namespace declarations in .proto files for other languages
Key: HADOOP-8985
URL: https://issues.apache.org/jira/browse/HADOOP-8985
Project: Hadoop Common
Issue Type: Improvement
Reporter: Binglin Chang
Priority: Minor


Currently .proto files use java_package to specify java packages in proto files, but namespace are not specified for other languages such as C++, this causes name collision in C++. we can add namespace declarations to avoid this.

In Java, the package specifier is used as the Java package, unless you explicitly provide a option java_package in your .proto file. So the original java package will not be affected.

About namespace name, how about "hadoop.common"(hadoop::common in C++) for all common sub-project proto files, and "hadoop.hdfs"(hadoop::hdfs in C++) for all hdfs sub-project proto files?


--
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedOct 26, '12 at 5:55a
activeOct 26, '12 at 5:55a
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Binglin Chang (JIRA): 1 post

People

Translate

site design / logo © 2021 Grokbase