Skip Headers
Oracle® Big Data Connectors User's Guide
Release 2 (2.1)

Part Number E36961-05
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

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