查看api:http://hadoop.apache.org/docs/stable/api/

public String get(String name)
Get the value of the name property, null if no such property exists. If the key is deprecated, it returns the value of the first key which replaces the deprecated key and is not null. Values are processed for variable expansion before being returned.
Parameters:
name - the property name, will be trimmed before get value.
Returns:
the value of the name or its replacing property, or null if no such property exists.

若能获取相应的name属性,返回name值,若无法获得,返回null.

 
public String get(String name,
String defaultValue)
Get the value of the name. If the key is deprecated, it returns the value of the first key which replaces the deprecated key and is not null. If no such property exists, then defaultValue is returned.
Parameters:
name - property name, will be trimmed before get value.
defaultValue - default value.
Returns:
property value, or defaultValue if the property doesn't exist.

若能获取相应的name属性,返回name值,若无法获得,返回nulldefaultValue.

最新文章

  1. ORACLE 博客文章目录(2015-05-27更新)
  2. Codeforces Round #353 (Div. 2) ABCDE 题解 python
  3. gcc编译过程简述
  4. 搭建haproxy
  5. 键盘对应的ASCII码
  6. 时空地图TimeGIS 可编辑ArcGIS的Shape矢量文件的地理信息系统
  7. 使用ADO.NET执行SQL脚本
  8. ABAP--关于ABAP流程处理的一些命令的说明(stop,exit,return,check,reject)
  9. Java虚拟机工作原理详解 (一)
  10. Linux设置FQDN
  11. python还不能作为主要编程语言的原因:
  12. 转:二十七、Java图形化界面设计——容器(JFrame)
  13. oracle 查询前一小时、一天、一个月、一年的数据
  14. mysql跟踪提交的SQL语句
  15. SQL Server 扩展事件(Extented Events)从入门到进阶(2)——在GUI中创建基础扩展事件
  16. BAT加密最终版
  17. 【mysql注入】mysql注入点的技巧整合利用
  18. JS_高程7.函数表达式(2)递归
  19. unity3D内嵌android项目
  20. tapd

热门文章

  1. JavaScript 关于setTimeout与setInterval的小研究
  2. PHP中echo与print语句的实例教程
  3. htm&css 颜色的浮动
  4. Linux下使用Nginx做CDN服务器下的配置
  5. 2019-11-22:xss绕过笔记
  6. 词袋模型(BOW,bag of words)和词向量模型(Word Embedding)概念介绍
  7. 【集训Day3 离散化】矩形覆盖
  8. day 18 random模块 时间模块 sys模块 os模块
  9. WebGL简易教程(十四):阴影
  10. vue中的$EventBus.$emit、$on 遇到的问题