@Namespace(value="arrow::fs") @NoOffset @Properties(inherit=arrow.class) public class FileSystem extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
FileSystem(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
CopyFile(BytePointer src,
BytePointer dest) |
Status |
CopyFile(String src,
String dest)
Copy a file.
|
Status |
CreateDir(BytePointer path) |
Status |
CreateDir(BytePointer path,
boolean recursive) |
Status |
CreateDir(String path) |
Status |
CreateDir(String path,
boolean recursive)
Create a directory and subdirectories.
|
Status |
DeleteDir(BytePointer path) |
Status |
DeleteDir(String path)
Delete a directory and its contents, recursively.
|
Status |
DeleteDirContents(BytePointer path) |
Status |
DeleteDirContents(String path)
Delete a directory's contents, recursively.
|
Status |
DeleteFile(BytePointer path) |
Status |
DeleteFile(String path)
Delete a file.
|
Status |
DeleteFiles(StringVector paths)
Delete many files.
|
Status |
DeleteRootDirContents()
EXPERIMENTAL: Delete the root directory's contents, recursively.
|
boolean |
Equals(FileSystem other) |
FileInfoResult |
GetFileInfo(BytePointer path) |
FileInfoVectorResult |
GetFileInfo(FileSelector select)
Same, according to a selector.
|
FileInfoResult |
GetFileInfo(String path)
Get info for the given target.
|
FileInfoVectorResult |
GetFileInfo(StringVector paths)
Same, for many targets at once.
|
FileInfoVectorFuture |
GetFileInfoAsync(StringVector paths)
EXPERIMENTAL: async version of GetFileInfo
|
Pointer |
GetFileInfoGenerator(FileSelector select)
EXPERIMENTAL: streaming async version of GetFileInfo
The returned generator is not async-reentrant, i.e.
|
IOContext |
io_context()
EXPERIMENTAL: The IOContext associated with this filesystem.
|
Status |
Move(BytePointer src,
BytePointer dest) |
Status |
Move(String src,
String dest)
Move / rename a file or directory.
|
StringResult |
NormalizePath(BytePointer path) |
StringResult |
NormalizePath(String path)
Normalize path for the given filesystem
The default implementation of this method is a no-op, but subclasses
may allow normalizing irregular path forms (such as Windows local paths).
|
OutputStreamResult |
OpenAppendStream(BytePointer path) |
OutputStreamResult |
OpenAppendStream(String path)
Open an output stream for appending.
|
RandomAccessFileResult |
OpenInputFile(BytePointer path) |
RandomAccessFileResult |
OpenInputFile(FileInfo info)
Open an input file for random access reading.
|
RandomAccessFileResult |
OpenInputFile(String path)
Open an input file for random access reading.
|
RandomAccessFileFuture |
OpenInputFileAsync(BytePointer path) |
RandomAccessFileFuture |
OpenInputFileAsync(FileInfo info)
EXPERIMENTAL: async version of OpenInputFile
|
RandomAccessFileFuture |
OpenInputFileAsync(String path)
EXPERIMENTAL: async version of OpenInputFile
|
InputStreamResult |
OpenInputStream(BytePointer path) |
InputStreamResult |
OpenInputStream(FileInfo info)
Open an input stream for sequential reading.
|
InputStreamResult |
OpenInputStream(String path)
Open an input stream for sequential reading.
|
InputStreamFuture |
OpenInputStreamAsync(BytePointer path) |
InputStreamFuture |
OpenInputStreamAsync(FileInfo info)
EXPERIMENTAL: async version of OpenInputStream
|
InputStreamFuture |
OpenInputStreamAsync(String path)
EXPERIMENTAL: async version of OpenInputStream
|
OutputStreamResult |
OpenOutputStream(BytePointer path) |
OutputStreamResult |
OpenOutputStream(String path)
Open an output stream for sequential writing.
|
String |
type_name() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic FileSystem(Pointer p)
Pointer(Pointer).@StdString public String type_name()
@Const @ByRef public IOContext io_context()
@ByVal public StringResult NormalizePath(@StdString String path)
@ByVal public StringResult NormalizePath(@StdString BytePointer path)
@Cast(value="bool") public boolean Equals(@Const @ByRef FileSystem other)
@ByVal public FileInfoResult GetFileInfo(@StdString String path)
@ByVal public FileInfoResult GetFileInfo(@StdString BytePointer path)
@ByVal public FileInfoVectorResult GetFileInfo(@Const @ByRef StringVector paths)
@ByVal public FileInfoVectorResult GetFileInfo(@Const @ByRef FileSelector select)
FileSelector::allow_not_found.@ByVal public FileInfoVectorFuture GetFileInfoAsync(@Const @ByRef StringVector paths)
@ByVal @Cast(value="arrow::fs::FileInfoGenerator*") public Pointer GetFileInfoGenerator(@Const @ByRef FileSelector select)
@ByVal public Status CreateDir(@StdString String path, @Cast(value="bool") boolean recursive)
@ByVal public Status CreateDir(@StdString String path)
@ByVal public Status CreateDir(@StdString BytePointer path, @Cast(value="bool") boolean recursive)
@ByVal public Status CreateDir(@StdString BytePointer path)
@ByVal public Status DeleteDir(@StdString String path)
@ByVal public Status DeleteDir(@StdString BytePointer path)
@ByVal public Status DeleteDirContents(@StdString String path)
@ByVal public Status DeleteDirContents(@StdString BytePointer path)
@ByVal public Status DeleteRootDirContents()
@ByVal public Status DeleteFile(@StdString String path)
@ByVal public Status DeleteFile(@StdString BytePointer path)
@ByVal public Status DeleteFiles(@Const @ByRef StringVector paths)
@ByVal public Status Move(@StdString String src, @StdString String dest)
@ByVal public Status Move(@StdString BytePointer src, @StdString BytePointer dest)
@ByVal public Status CopyFile(@StdString String src, @StdString String dest)
@ByVal public Status CopyFile(@StdString BytePointer src, @StdString BytePointer dest)
@ByVal public InputStreamResult OpenInputStream(@StdString String path)
@ByVal public InputStreamResult OpenInputStream(@StdString BytePointer path)
@ByVal public InputStreamResult OpenInputStream(@Const @ByRef FileInfo info)
@ByVal public RandomAccessFileResult OpenInputFile(@StdString String path)
@ByVal public RandomAccessFileResult OpenInputFile(@StdString BytePointer path)
@ByVal public RandomAccessFileResult OpenInputFile(@Const @ByRef FileInfo info)
@ByVal public InputStreamFuture OpenInputStreamAsync(@StdString String path)
@ByVal public InputStreamFuture OpenInputStreamAsync(@StdString BytePointer path)
@ByVal public InputStreamFuture OpenInputStreamAsync(@Const @ByRef FileInfo info)
@ByVal public RandomAccessFileFuture OpenInputFileAsync(@StdString String path)
@ByVal public RandomAccessFileFuture OpenInputFileAsync(@StdString BytePointer path)
@ByVal public RandomAccessFileFuture OpenInputFileAsync(@Const @ByRef FileInfo info)
@ByVal public OutputStreamResult OpenOutputStream(@StdString String path)
@ByVal public OutputStreamResult OpenOutputStream(@StdString BytePointer path)
@ByVal public OutputStreamResult OpenAppendStream(@StdString String path)
@ByVal public OutputStreamResult OpenAppendStream(@StdString BytePointer path)
Copyright © 2021. All rights reserved.