Package alluxio.cli
Class BasicNonByteBufferOperations
- java.lang.Object
-
- alluxio.cli.BasicNonByteBufferOperations
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Boolean>
public final class BasicNonByteBufferOperations extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Boolean>Basic example of using theFileSystemfor writing to and reading from files.This class is different from
BasicOperationsin the way writes happen. Over thereByteBufferis 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
AlluxioStorageTypeis something that can be set, as well as ability to delete file if exists.
-
-
Constructor Summary
Constructors Constructor Description BasicNonByteBufferOperations(alluxio.AlluxioURI filePath, alluxio.client.ReadType readType, alluxio.client.WriteType writeType, boolean deleteIfExists, int length, alluxio.client.file.FileSystemContext fsContext, alluxio.grpc.WorkerNetAddress workerNetAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleancall()
-
-
-
Constructor Detail
-
BasicNonByteBufferOperations
public BasicNonByteBufferOperations(alluxio.AlluxioURI filePath, alluxio.client.ReadType readType, alluxio.client.WriteType writeType, boolean deleteIfExists, int length, alluxio.client.file.FileSystemContext fsContext, @Nullable alluxio.grpc.WorkerNetAddress workerNetAddress)- Parameters:
filePath- the path for the filesreadType- theReadTypewriteType- theWriteTypedeleteIfExists- delete files if they already existlength- the number of filesfsContext- theFileSystemContextto use for client operationsworkerNetAddress- if not null, the worker address the file data will be written into
-
-