@InterfaceAudience.Public
 @InterfaceStability.Evolving
public class HdfsDataOutputStream
extends org.apache.hadoop.fs.FSDataOutputStream
FSDataOutputStream.| Modifier and Type | Class and Description | 
|---|---|
| static class  | HdfsDataOutputStream.SyncFlag | 
writtenout| Constructor and Description | 
|---|
| HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
                    org.apache.hadoop.fs.FileSystem.Statistics stats) | 
| HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
                    org.apache.hadoop.fs.FileSystem.Statistics stats,
                    long startPosition) | 
| HdfsDataOutputStream(org.apache.hadoop.hdfs.DFSOutputStream out,
                    org.apache.hadoop.fs.FileSystem.Statistics stats) | 
| HdfsDataOutputStream(org.apache.hadoop.hdfs.DFSOutputStream out,
                    org.apache.hadoop.fs.FileSystem.Statistics stats,
                    long startPosition) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCurrentBlockReplication()Get the actual number of replicas of the current block. | 
| void | hsync(EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags)Sync buffered data to DataNodes (flush to disk devices). | 
abort, close, getIOStatistics, getPos, hasCapability, hflush, hsync, setDropBehind, toStringflush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFwriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwritepublic HdfsDataOutputStream(org.apache.hadoop.hdfs.DFSOutputStream out,
                            org.apache.hadoop.fs.FileSystem.Statistics stats,
                            long startPosition)
                     throws IOException
IOExceptionpublic HdfsDataOutputStream(org.apache.hadoop.hdfs.DFSOutputStream out,
                            org.apache.hadoop.fs.FileSystem.Statistics stats)
                     throws IOException
IOExceptionpublic HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
                            org.apache.hadoop.fs.FileSystem.Statistics stats,
                            long startPosition)
                     throws IOException
IOExceptionpublic HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
                            org.apache.hadoop.fs.FileSystem.Statistics stats)
                     throws IOException
IOExceptionpublic int getCurrentBlockReplication()
                               throws IOException
IOExceptionpublic void hsync(EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags) throws IOException
syncFlags - Indicate the detailed semantic and actions of the hsync.IOExceptionFSDataOutputStream.hsync()Copyright © 2008–2023 Apache Software Foundation. All rights reserved.