java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.CanSetDropBehind, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncable@Private public class DFSStripedOutputStream extends DFSOutputStream implements org.apache.hadoop.fs.StreamCapabilities
blockSize, byteArrayManager, bytesPerChecksum, cachingStrategy, chunksPerPacket, closed, currentPacket, dfsClient, fileId, initialFileSize, lastFlushOffset, packetSize, shouldSyncBlock, src, streamer| Modifier and Type | Method | Description |
|---|---|---|
protected void |
closeImpl() |
|
protected void |
closeThreads(boolean force) |
|
boolean |
hasCapability(java.lang.String capability) |
|
void |
hflush() |
Flushes out to all replicas of the block.
|
void |
hsync() |
|
void |
hsync(java.util.EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags) |
The expected semantics is all data have flushed out to all replicas
and all replicas have done posix fsync equivalent - ie the OS has
flushed it to the disk device (but the disk may have it in its cache).
|
protected void |
start() |
|
protected void |
writeChunk(byte[] bytes,
int offset,
int len,
byte[] checksum,
int ckoff,
int cklen) |
adjustChunkBoundary, checkClosed, close, completeFile, computePacketChunkSize, createPacket, createWriteTraceScope, flushInternal, flushInternalWithoutWaitingAck, getAddBlockFlags, getCurrentBlockReplication, getFileEncryptionInfo, getFileId, getInitialLen, getNamespace, getNumCurrentReplicas, getPipeline, getStreamer, getUniqKey, recoverLease, setArtificialSlowdown, setChunksPerPacket, setDropBehind, sync, toString, writeChunkprotected void writeChunk(byte[] bytes,
int offset,
int len,
byte[] checksum,
int ckoff,
int cklen)
throws java.io.IOException
writeChunk in class DFSOutputStreamjava.io.IOExceptionpublic boolean hasCapability(java.lang.String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitieshasCapability in class DFSOutputStreampublic void hflush()
DFSOutputStreamhflush in interface org.apache.hadoop.fs.Syncablehflush in class DFSOutputStreampublic void hsync()
hsync in interface org.apache.hadoop.fs.Syncablehsync in class DFSOutputStreampublic void hsync(java.util.EnumSet<HdfsDataOutputStream.SyncFlag> syncFlags)
DFSOutputStreamCreateFlag.SYNC_BLOCK.hsync in class DFSOutputStreamsyncFlags - Indicate the semantic of the sync. Currently used to specify
whether or not to update the block length in NameNode.protected void start()
start in class DFSOutputStreamprotected void closeThreads(boolean force)
throws java.io.IOException
closeThreads in class DFSOutputStreamjava.io.IOExceptionprotected void closeImpl()
throws java.io.IOException
closeImpl in class DFSOutputStreamjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.