java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.apache.hadoop.fs.StreamCapabilities, org.apache.hadoop.fs.Syncable@Private
@Evolving
public final class AdlFsOutputStream
extends java.io.OutputStream
implements org.apache.hadoop.fs.Syncable, org.apache.hadoop.fs.StreamCapabilities
ADLFileOutputStream
implementation.
Flush semantics.
no-op, since some parts of hadoop ecosystem call flush(), expecting it to
have no perf impact. In hadoop filesystems, flush() itself guarantees no
durability: that is achieved by calling hflush() or hsync()| Constructor | Description |
|---|---|
AdlFsOutputStream(com.microsoft.azure.datalake.store.ADLFileOutputStream out,
org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
hasCapability(java.lang.String capability) |
|
void |
hflush() |
|
void |
hsync() |
|
void |
sync() |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
public AdlFsOutputStream(com.microsoft.azure.datalake.store.ADLFileOutputStream out,
org.apache.hadoop.conf.Configuration configuration)
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic 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 void hsync()
throws java.io.IOException
hsync in interface org.apache.hadoop.fs.Syncablejava.io.IOExceptionpublic boolean hasCapability(java.lang.String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitiesCopyright © 2008–2025 Apache Software Foundation. All rights reserved.