@Namespace(value="arrow::dataset") @Properties(inherit=arrow_dataset.class) public class ScanOptions extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ScanOptions()
Default native constructor.
|
ScanOptions(long size)
Native array allocator.
|
ScanOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
batch_readahead()
How many batches to read ahead within a file
Set to 0 to disable batch readahead
Note: May not be supported by all formats
Note: May not be supported by all scanners
Note: Will be ignored if use_threads is set to false
|
ScanOptions |
batch_readahead(int setter) |
long |
batch_size()
Maximum row count for scanned batches.
|
ScanOptions |
batch_size(long setter) |
Schema |
dataset_schema()
Schema with which batches will be read from fragments.
|
ScanOptions |
dataset_schema(Schema setter) |
Expression |
filter()
A row filter (which will be pushed down to partitioning/reading if supported).
|
ScanOptions |
filter(Expression setter) |
int |
fragment_readahead()
How many files to read ahead
Set to 0 to disable fragment readahead
Note: May not be enforced by all scanners
Note: Will be ignored if use_threads is set to false
|
ScanOptions |
fragment_readahead(int setter) |
FragmentScanOptions |
fragment_scan_options()
Fragment-specific scan options.
|
ScanOptions |
fragment_scan_options(FragmentScanOptions setter) |
ScanOptions |
getPointer(long i) |
IOContext |
io_context()
IOContext for any IO tasks
Note: The IOContext executor will be ignored if use_threads is set to false
|
ScanOptions |
io_context(IOContext setter) |
StringVector |
MaterializedFields() |
MemoryPool |
pool()
A pool from which materialized and scanned arrays will be allocated.
|
ScanOptions |
pool(MemoryPool setter) |
ScanOptions |
position(long position) |
Schema |
projected_schema()
Schema of projected record batches.
|
ScanOptions |
projected_schema(Schema setter) |
Expression |
projection()
A projection expression (which can add/remove/rename columns).
|
ScanOptions |
projection(Expression setter) |
TaskGroup |
TaskGroup() |
boolean |
use_async()
If true then an asycnhronous implementation of the scanner will be used.
|
ScanOptions |
use_async(boolean setter) |
boolean |
use_threads()
If true the scanner will scan in parallel
Note: If true, this will use threads from both the cpu_executor and the
io_context.executor
Note: This must be true in order for any readahead to happen
|
ScanOptions |
use_threads(boolean setter) |
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 ScanOptions()
public ScanOptions(long size)
Pointer.position(long)
.public ScanOptions(Pointer p)
Pointer(Pointer)
.public ScanOptions position(long position)
public ScanOptions getPointer(long i)
getPointer
in class Pointer
@ByRef public Expression filter()
public ScanOptions filter(Expression setter)
@ByRef public Expression projection()
public ScanOptions projection(Expression setter)
@SharedPtr @ByRef public Schema dataset_schema()
public ScanOptions dataset_schema(Schema setter)
@SharedPtr @ByRef public Schema projected_schema()
public ScanOptions projected_schema(Schema setter)
public ScanOptions batch_size(long setter)
public int batch_readahead()
public ScanOptions batch_readahead(int setter)
public int fragment_readahead()
public ScanOptions fragment_readahead(int setter)
public MemoryPool pool()
public ScanOptions pool(MemoryPool setter)
@ByRef public IOContext io_context()
public ScanOptions io_context(IOContext setter)
@Cast(value="bool") public boolean use_threads()
public ScanOptions use_threads(boolean setter)
@Cast(value="bool") public boolean use_async()
public ScanOptions use_async(boolean setter)
@SharedPtr public FragmentScanOptions fragment_scan_options()
public ScanOptions fragment_scan_options(FragmentScanOptions setter)
@ByVal public StringVector MaterializedFields()
@SharedPtr public TaskGroup TaskGroup()
Copyright © 2022. All rights reserved.