java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncablepublic class BlockBlobAppendStream
extends java.io.OutputStream
implements org.apache.hadoop.fs.Syncable, org.apache.hadoop.fs.StreamCapabilities
| Constructor | Description |
|---|---|
BlockBlobAppendStream(org.apache.hadoop.fs.azure.StorageInterface.CloudBlockBlobWrapper blob,
java.lang.String aKey,
int bufferSize,
boolean compactionEnabled,
com.microsoft.azure.storage.OperationContext opContext) |
BlockBlobAppendStream constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Force all data in the output stream to be written to Azure storage.
|
void |
flush() |
Flushes this output stream and forces any buffered output bytes to be
written out.
|
boolean |
hasCapability(java.lang.String capability) |
The Synchronization capabilities of this stream depend upon the compaction
policy.
|
void |
hflush() |
Force all data in the output stream to be written to Azure storage.
|
void |
hsync() |
Force all data in the output stream to be written to Azure storage.
|
void |
sync() |
Deprecated.
|
void |
write(byte[] data,
int offset,
int length) |
Writes length bytes from the specified byte array starting at offset to
this output stream.
|
void |
write(int byteVal) |
Writes the specified byte to this output stream.
|
public BlockBlobAppendStream(org.apache.hadoop.fs.azure.StorageInterface.CloudBlockBlobWrapper blob,
java.lang.String aKey,
int bufferSize,
boolean compactionEnabled,
com.microsoft.azure.storage.OperationContext opContext)
throws java.io.IOException
blob - Azure Block BlobaKey - blob's namebufferSize - the maximum size of a blob block.compactionEnabled - is the compaction process enabled for this blobopContext - Azure Store operation context for the blobjava.io.IOException - if an I/O error occurs. In particular, an IOException may be
thrown if the output stream cannot be used for append operationspublic void write(int byteVal)
throws java.io.IOException
write in class java.io.OutputStreambyteVal - the byteValue to write.java.io.IOException - if an I/O error occurs. In particular, an IOException may be
thrown if the output stream has been closed.public void write(byte[] data,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamdata - the byte array to write.offset - the start offset in the data.length - the number of bytes to write.java.io.IOException - if an I/O error occurs. In particular, an IOException may be
thrown if the output stream has been closed.public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void hsync()
throws java.io.IOException
hsync in interface org.apache.hadoop.fs.Syncablejava.io.IOException@Deprecated
public void sync()
throws java.io.IOException
sync in interface org.apache.hadoop.fs.Syncablejava.io.IOExceptionpublic void hflush()
throws java.io.IOException
hflush in interface org.apache.hadoop.fs.Syncablejava.io.IOExceptionpublic boolean hasCapability(java.lang.String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitiescapability - string to query the stream support for.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.