java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.Abortable, org.apache.hadoop.fs.CanSetDropBehind, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncable@Public
@Evolving
public class HdfsDataOutputStream
extends org.apache.hadoop.fs.FSDataOutputStream
FSDataOutputStream.| Modifier and Type | Class | Description |
|---|---|---|
static class |
HdfsDataOutputStream.SyncFlag |
| Constructor | 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(DFSOutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats) |
|
HdfsDataOutputStream(DFSOutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats,
long startPosition) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCurrentBlockReplication() |
Get the actual number of replicas of the current block.
|
void |
hsync(java.util.EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags) |
Sync buffered data to DataNodes (flush to disk devices).
|
abort, close, getFidServers, getIOStatistics, getPos, getWrappedStream, hasCapability, hflush, hsync, seek, setDropBehind, sync, toStringflush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic HdfsDataOutputStream(DFSOutputStream out, org.apache.hadoop.fs.FileSystem.Statistics stats, long startPosition) throws java.io.IOException
java.io.IOExceptionpublic HdfsDataOutputStream(DFSOutputStream out, org.apache.hadoop.fs.FileSystem.Statistics stats) throws java.io.IOException
java.io.IOExceptionpublic HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats,
long startPosition)
throws java.io.IOException
java.io.IOExceptionpublic HdfsDataOutputStream(org.apache.hadoop.crypto.CryptoOutputStream out,
org.apache.hadoop.fs.FileSystem.Statistics stats)
throws java.io.IOException
java.io.IOExceptionpublic int getCurrentBlockReplication()
throws java.io.IOException
java.io.IOExceptionpublic void hsync(java.util.EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags) throws java.io.IOException
syncFlags - Indicate the detailed semantic and actions of the hsync.java.io.IOExceptionFSDataOutputStream.hsync()Copyright © 2008–2025 Apache Software Foundation. All rights reserved.