首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Hadoop中InterfaceAudience 诠注

2013-09-05 
Hadoop中InterfaceAudience 注解?@InterfaceAudience.Public: 对所有工程和应用可用@InterfaceAudience.Li

Hadoop中InterfaceAudience 注解

?

@InterfaceAudience.Public: 对所有工程和应用可用
@InterfaceAudience.LimitedPrivate: 仅限于某些特定工程,如Comomn,HDFS等
@InterfaceAudience.Private: 仅限于Hadoop

?

/**

?* Annotation to inform users of a package, class or method's intended audience.

?*/

@InterfaceAudience.Public

@InterfaceStability.Evolving

public class InterfaceAudience {

? /**

? ?* Intended for use by any project or application.

? ?*/

? @Documented public @interface Public {};

??

? /**

? ?* Intended only for the project(s) specified in the annotation.

? ?* For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".

? ?*/

? @Documented public @interface LimitedPrivate {

? ? String[] value();

? };

??

? /**

? ?* Intended for use only within Hadoop itself.

? ?*/

? @Documented public @interface Private {};

?

? private InterfaceAudience() {} // Audience can't exist on its own

}

?

热点排行