public final class BasicNonByteBufferOperations extends Object implements Callable<Boolean>
FileSystem
for writing to and reading from files.
This class is different from BasicOperations
in the way writes happen.
Over there ByteBuffer
is used directly, where as here byte data is done via
input/output streams.
This example also let users play around with how to work with files a bit more. The
AlluxioStorageType
is something that can be set, as well as ability to
delete file if exists.
Constructor and Description |
---|
BasicNonByteBufferOperations(AlluxioURI filePath,
ReadType readType,
WriteType writeType,
boolean deleteIfExists,
int length,
FileSystemContext fsContext) |
public BasicNonByteBufferOperations(AlluxioURI filePath, ReadType readType, WriteType writeType, boolean deleteIfExists, int length, FileSystemContext fsContext)
filePath
- the path for the filesreadType
- the ReadType
writeType
- the WriteType
deleteIfExists
- delete files if they already existlength
- the number of filesfsContext
- the FileSystemContext
to use for client operationsCopyright © 2023. All Rights Reserved.