C# Класс NetHadoop.FSClient

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Connect ( Thrift.Transport.TBufferedTransport &tsport ) : ThriftHadoopFileSystem.Client
Create ( ThriftHadoopFileSystem client, string localPath, string path ) : bool
Delete ( string path, bool recursive ) : bool

删除文件或文件夹

FSClient ( ) : System
FSClient ( string host, int port ) : System
GetFileStatus ( string path ) : FileStatus
GetFlolderList ( string path ) : List
MakeDir ( string path ) : bool
MoveFile ( string sourcePath, string dectPath ) : List
MutDownLoad ( BackgroundWorker worker, string localRootPath, List fileList, int fileType ) : void
MutUpload ( BackgroundWorker worker, List localPath, string remoteRootPath, string localRootPath ) : void
Open ( ThriftHadoopFileSystem client, string path, string savePath, long fileLength ) : bool
ReName ( string oldPath, string newPath ) : bool

Описание методов

Connect() публичный Метод

public Connect ( Thrift.Transport.TBufferedTransport &tsport ) : ThriftHadoopFileSystem.Client
tsport Thrift.Transport.TBufferedTransport
Результат ThriftHadoopFileSystem.Client

Create() публичный Метод

public Create ( ThriftHadoopFileSystem client, string localPath, string path ) : bool
client ThriftHadoopFileSystem
localPath string
path string
Результат bool

Delete() публичный Метод

删除文件或文件夹
public Delete ( string path, bool recursive ) : bool
path string
recursive bool 是否删除子文件夹
Результат bool

FSClient() публичный Метод

public FSClient ( ) : System
Результат System

FSClient() публичный Метод

public FSClient ( string host, int port ) : System
host string
port int
Результат System

GetFileStatus() публичный Метод

public GetFileStatus ( string path ) : FileStatus
path string
Результат FileStatus

GetFlolderList() публичный Метод

public GetFlolderList ( string path ) : List
path string
Результат List

MakeDir() публичный Метод

public MakeDir ( string path ) : bool
path string
Результат bool

MoveFile() публичный Метод

public MoveFile ( string sourcePath, string dectPath ) : List
sourcePath string
dectPath string
Результат List

MutDownLoad() публичный Метод

public MutDownLoad ( BackgroundWorker worker, string localRootPath, List fileList, int fileType ) : void
worker System.ComponentModel.BackgroundWorker
localRootPath string
fileList List
fileType int
Результат void

MutUpload() публичный Метод

public MutUpload ( BackgroundWorker worker, List localPath, string remoteRootPath, string localRootPath ) : void
worker System.ComponentModel.BackgroundWorker
localPath List
remoteRootPath string
localRootPath string
Результат void

Open() публичный Метод

public Open ( ThriftHadoopFileSystem client, string path, string savePath, long fileLength ) : bool
client ThriftHadoopFileSystem
path string
savePath string
fileLength long
Результат bool

ReName() публичный Метод

public ReName ( string oldPath, string newPath ) : bool
oldPath string
newPath string
Результат bool