public interface AtomicFileOutputStreamCallback extends UnderFileSystem
AtomicFileOutputStreamCallback
is the callback interface used when using a
AtomicFileOutputStream
.UnderFileSystem.Factory, UnderFileSystem.SpaceType
Modifier and Type | Method and Description |
---|---|
OutputStream |
createDirect(String path,
CreateOptions options)
Creates a file in the under file system with the specified
CreateOptions . |
cleanup, connectFromMaster, connectFromWorker, create, create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, deleteFile, exists, getAclPair, getActiveSyncInfo, getBlockSizeByte, getConfiguration, getDirectoryStatus, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileLocations, getFileLocations, getFileStatus, getFingerprint, getOperationMode, getPhysicalStores, getSpace, getStatus, getUnderFSType, isDirectory, isExistingDirectory, isFile, isObjectStorage, isSeekable, listStatus, listStatus, mkdirs, mkdirs, open, open, openExistingFile, openExistingFile, renameDirectory, renameFile, renameRenamableDirectory, renameRenamableFile, resolveUri, setAclEntries, setMode, setOwner, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, 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.