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) |
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(ByteBuffer b) throws IOException
write 在接口中 TsFileOutputIOExceptionpublic long getPosition()
throws IOException
getPosition 在接口中 TsFileOutputIOExceptionpublic void close()
throws IOException
close 在接口中 TsFileOutputIOExceptionpublic OutputStream wrapAsStream() throws IOException
wrapAsStream 在接口中 TsFileOutputIOExceptionpublic void flush()
throws IOException
flush 在接口中 TsFileOutputIOExceptionpublic void truncate(long position)
throws IOException
truncate 在接口中 TsFileOutputIOExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.