is.hdfs.id

Indicates whether an R object contains a valid HDFS file identifier.

Usage

is.hdfs.id(x)

Arguments

x

The name of an R object.

Return Value

TRUE if x is a valid HDFS identifier, or FALSE if it is not

See Also

hdfs.attach, hdfs.id

Example

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