共用方式為


RxFileSystem: RevoScaleR File System object generator

Description

This is the main generator for RxFileSystem S3 classes.

Usage

    RxFileSystem( fileSystem, ...)

     ## S3 method for class `RxFileSystem':
print  ( x, ... )

Arguments

fileSystem

character string specifying class name or file system type existing RxFileSystem object. Choices include: "RxNativeFileSystem" or "native", or "RxHdfsFileSystem" or "hdfs". Optional arguments hostName and port may be specified for HDFS file systems.

x

an RxFileSystem object.

...

other arguments are passed to the underlying function.

Details

This is a wrapper to specific generator functions for the RevoScaleR file system classes. For example, the RxHdfsFileSystem class uses function RxHdfsFileSystem as a generator. Therefore either RxHdfsFileSystem() or RxFileSystem("hdfs") will create an RxHdfsFileSystem object.

Value

A type of RxFileSystem file system object. This object may be used in rxSetFileSystem, rxOptions, RxTextData, or RxXdfData to set the file system.

Author(s)

Microsoft Corporation Microsoft Technical Support

See Also

RxNativeFileSystem, RxHdfsFileSystem, rxSetFileSystem, rxOptions, RxXdfData, RxTextData.

Examples


 # Setup to run analyses to use HDFS file system
 ## Not run:

# Example 1
myHdfsFileSystem1 <- RxFileSystem(fileSystem = "hdfs")
rxSetFileSystem(fileSystem = myHdfsFileSystem1 )

# Example 2
myHdfsFileSystem2 <- RxFileSystem(fileSystem = "hdfs", hostName = "myHost", port = 8020)
rxSetFileSystem(fileSystem = myHdfsFileSystem2 )
## End(Not run)