public class HDFSInput extends Object implements TsFileInput
| 构造器和说明 |
|---|
HDFSInput(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration configuration) |
HDFSInput(String filePath) |
HDFSInput(String filePath,
org.apache.hadoop.conf.Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
long |
position() |
TsFileInput |
position(long newPosition) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
read(ByteBuffer dst) |
int |
read(ByteBuffer dst,
long position) |
int |
readInt() |
long |
size() |
FileChannel |
wrapAsFileChannel() |
InputStream |
wrapAsInputStream() |
public HDFSInput(String filePath) throws IOException
IOExceptionpublic HDFSInput(String filePath, org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionpublic HDFSInput(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration configuration)
throws IOException
IOExceptionpublic long size()
size 在接口中 TsFileInputpublic long position()
throws IOException
position 在接口中 TsFileInputIOExceptionpublic TsFileInput position(long newPosition) throws IOException
position 在接口中 TsFileInputIOExceptionpublic int read(ByteBuffer dst) throws IOException
read 在接口中 TsFileInputIOExceptionpublic int read(ByteBuffer dst, long position) throws IOException
read 在接口中 TsFileInputIOExceptionpublic int read()
throws IOException
read 在接口中 TsFileInputIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在接口中 TsFileInputIOExceptionpublic FileChannel wrapAsFileChannel() throws IOException
wrapAsFileChannel 在接口中 TsFileInputIOExceptionpublic InputStream wrapAsInputStream() throws IOException
wrapAsInputStream 在接口中 TsFileInputIOExceptionpublic void close()
throws IOException
close 在接口中 TsFileInputIOExceptionpublic int readInt()
throws IOException
readInt 在接口中 TsFileInputIOExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.