public interface AtomicFileOutputStreamCallback extends UnderFileSystem
AtomicFileOutputStreamCallback
is the callback interface used when using a
AtomicFileOutputStream
.UnderFileSystem.Factory, UnderFileSystem.SpaceType, UnderFileSystem.UfsMode
Modifier and Type | Method and Description |
---|---|
OutputStream |
createDirect(String path,
CreateOptions options)
Creates a file in the under file system with the specified
CreateOptions . |
connectFromMaster, connectFromWorker, create, create, deleteDirectory, deleteDirectory, deleteFile, exists, getBlockSizeByte, getDirectoryStatus, getFileLocations, getFileLocations, getFileStatus, getFingerprint, getOperationMode, getPhysicalStores, getSpace, getStatus, getUnderFSType, isDirectory, isFile, isObjectStorage, isSeekable, listStatus, listStatus, mkdirs, mkdirs, open, open, renameDirectory, renameFile, resolveUri, setMode, setOwner, supportsFlush
OutputStream createDirect(String path, CreateOptions options) throws IOException
CreateOptions
. This stream
writes directly to the underlying storage without any atomicity guarantees.path
- the file nameoptions
- the options for createOutputStream
objectIOException
Copyright © 2023. All Rights Reserved.