@InterfaceAudience.Private @InterfaceStability.Evolving public final class AdlFsOutputStream extends 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 and Description |
|---|
AdlFsOutputStream(com.microsoft.azure.datalake.store.ADLFileOutputStream out,
org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasCapability(String capability) |
void |
hflush() |
void |
hsync() |
void |
sync() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic AdlFsOutputStream(com.microsoft.azure.datalake.store.ADLFileOutputStream out,
org.apache.hadoop.conf.Configuration configuration)
throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void sync()
throws IOException
IOExceptionpublic void hflush()
throws IOException
hflush in interface org.apache.hadoop.fs.SyncableIOExceptionpublic void hsync()
throws IOException
hsync in interface org.apache.hadoop.fs.SyncableIOExceptionpublic boolean hasCapability(String capability)
hasCapability in interface org.apache.hadoop.fs.StreamCapabilitiesCopyright © 2008–2024 Apache Software Foundation. All rights reserved.