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() |
String |
getFilePath() |
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() |
String |
readVarIntString(long position) |
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()
throws IOException
size 在接口中 TsFileInputIOExceptionpublic 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()
read 在接口中 TsFileInputpublic int read(byte[] b,
int off,
int len)
read 在接口中 TsFileInputpublic FileChannel wrapAsFileChannel()
wrapAsFileChannel 在接口中 TsFileInputpublic InputStream wrapAsInputStream()
wrapAsInputStream 在接口中 TsFileInputpublic void close()
throws IOException
close 在接口中 TsFileInputIOExceptionpublic int readInt()
readInt 在接口中 TsFileInputpublic String readVarIntString(long position) throws IOException
readVarIntString 在接口中 TsFileInputIOExceptionpublic String getFilePath()
getFilePath 在接口中 TsFileInputCopyright © 2022 The Apache Software Foundation. All rights reserved.