public class HDFSOutput extends Object implements TsFileOutput
| 构造器和说明 |
|---|
HDFSOutput(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration configuration,
boolean overwrite) |
HDFSOutput(String filePath,
boolean overwrite) |
HDFSOutput(String filePath,
org.apache.hadoop.conf.Configuration configuration,
boolean overwrite) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flush() |
long |
getPosition() |
void |
truncate(long size) |
OutputStream |
wrapAsStream() |
void |
write(byte b) |
void |
write(byte[] b) |
void |
write(ByteBuffer b) |
public HDFSOutput(String filePath, boolean overwrite) throws IOException
IOExceptionpublic HDFSOutput(String filePath, org.apache.hadoop.conf.Configuration configuration, boolean overwrite) throws IOException
IOExceptionpublic HDFSOutput(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration configuration,
boolean overwrite)
throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
write 在接口中 TsFileOutputIOExceptionpublic void write(byte b)
throws IOException
write 在接口中 TsFileOutputIOExceptionpublic void write(ByteBuffer b)
write 在接口中 TsFileOutputpublic long getPosition()
throws IOException
getPosition 在接口中 TsFileOutputIOExceptionpublic void close()
throws IOException
close 在接口中 TsFileOutputIOExceptionpublic OutputStream wrapAsStream()
wrapAsStream 在接口中 TsFileOutputpublic void flush()
throws IOException
flush 在接口中 TsFileOutputIOExceptionpublic void truncate(long size)
throws IOException
truncate 在接口中 TsFileOutputIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.