Indicates whether an R object contains a valid HDFS file identifier.
This example shows that dfs
contains a valid HDFS identifier, which was returned by hdfs.attach
:
R> dfs <- hdfs.attach('ontime_R') R> is.hdfs.id(dfs) [1] TRUE R> print(dfs) [1] "/user/oracle/xq/ontime_R" attr(,"dfs.id") [1] TRUE
The next example shows that a valid file name passed as a string is not recognized as a valid file identifier:
R> is.hdfs.id('/user/oracle/xq/ontime_R')
[1] FALSE