@Namespace(value="arrow::dataset") @NoOffset @Properties(inherit=arrow_dataset.class) public class FileSource extends Pointer
\brief The path and filesystem where an actual file is located or a buffer which can be read like a file
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Method and Description |
---|---|
ArrowBuffer |
buffer()
\brief Return the buffer containing the file, if any.
|
Compression.type |
compression()
\brief Return the type of raw compression on the file, if any.
|
FileSystem |
filesystem()
\brief Return the filesystem, if any.
|
static FileSource |
FromPaths(FileSystem fs,
StringVector paths) |
FileSource |
getPointer(long i) |
RandomAccessFileResult |
Open()
\brief Get a RandomAccessFile which views this file source
|
InputStreamResult |
OpenCompressed() |
InputStreamResult |
OpenCompressed(CompressionTypeOptional compression)
\brief Get an InputStream which views this file source (and decompresses if needed)
|
String |
path()
\brief Return the file path, if any.
|
FileSource |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FileSource(long size)
Pointer.position(long)
.public FileSource(@StdString String path, @SharedPtr FileSystem filesystem, Compression.type compression)
public FileSource(@StdString String path, @SharedPtr FileSystem filesystem)
public FileSource(@StdString BytePointer path, @SharedPtr FileSystem filesystem, @Cast(value="arrow::Compression::type") int compression)
public FileSource(@StdString BytePointer path, @SharedPtr FileSystem filesystem)
public FileSource(@ByVal FileInfo info, @SharedPtr FileSystem filesystem, Compression.type compression)
public FileSource(@ByVal FileInfo info, @SharedPtr FileSystem filesystem)
public FileSource(@ByVal FileInfo info, @SharedPtr FileSystem filesystem, @Cast(value="arrow::Compression::type") int compression)
public FileSource(@SharedPtr ArrowBuffer buffer, Compression.type compression)
public FileSource(@SharedPtr ArrowBuffer buffer)
public FileSource(@SharedPtr ArrowBuffer buffer, @Cast(value="arrow::Compression::type") int compression)
public FileSource(@ByVal @Cast(value="arrow::dataset::FileSource::CustomOpen*") arrow_dataset.CustomOpenWithCompression open)
public FileSource(@ByVal @Cast(value="arrow::dataset::FileSource::CustomOpenWithCompression*") Pointer open_with_compression, Compression.type compression)
public FileSource(@ByVal @Cast(value="arrow::dataset::FileSource::CustomOpenWithCompression*") Pointer open_with_compression)
public FileSource(@ByVal @Cast(value="arrow::dataset::FileSource::CustomOpenWithCompression*") Pointer open_with_compression, @Cast(value="arrow::Compression::type") int compression)
public FileSource(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile file, Compression.type compression)
public FileSource(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile file)
public FileSource(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile file, @Cast(value="arrow::Compression::type") int compression)
public FileSource()
public FileSource position(long position)
public FileSource getPointer(long i)
getPointer
in class Pointer
@StdVector public static FileSource FromPaths(@SharedPtr FileSystem fs, @ByVal StringVector paths)
public Compression.type compression()
@StdString public String path()
@SharedPtr public FileSystem filesystem()
@SharedPtr public ArrowBuffer buffer()
@ByVal public RandomAccessFileResult Open()
@ByVal public InputStreamResult OpenCompressed(@ByVal(nullValue="arrow::util::optional<arrow::Compression::type>(util::nullopt)") CompressionTypeOptional compression)
compression
- [in] If nullopt, guess the compression scheme from the
filename, else decompress with the given codec@ByVal public InputStreamResult OpenCompressed()
Copyright © 2022. All rights reserved.