C# 클래스 NetHadoop.FSClient

파일 보기 프로젝트 열기: gudao/NetHadoop 1 사용 예제들

공개 메소드들

메소드 설명
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