public final class BasicNonByteBufferOperations
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.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) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
call() |
public BasicNonByteBufferOperations(AlluxioURI filePath, ReadType readType, WriteType writeType, boolean deleteIfExists, int length, FileSystemContext fsContext)
filePath - the path for the filesreadType - the ReadTypewriteType - the WriteTypedeleteIfExists - delete files if they already existlength - the number of filesfsContext - the FileSystemContext to use for client operationsCopyright © 2019. All Rights Reserved.