@Namespace(value="arrow::dataset") @NoOffset @Properties(inherit=arrow_dataset.class) public class ScannerBuilder extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ScannerBuilder(Dataset dataset) |
ScannerBuilder(Dataset dataset,
ScanOptions scan_options) |
ScannerBuilder(Pointer p)
Pointer cast constructor.
|
ScannerBuilder(Schema schema,
Fragment fragment,
ScanOptions scan_options) |
Modifier and Type | Method and Description |
---|---|
Status |
BatchSize(long batch_size)
\brief Set the maximum number of rows per RecordBatch.
|
Status |
Filter(Expression filter)
\brief Set the filter expression to return only rows matching the filter.
|
ScannerResult |
Finish()
\brief Return the constructed now-immutable Scanner object
|
Status |
FragmentReadahead(int fragment_readahead)
\brief Limit how many fragments the scanner will read at once
Note: This is only enforced in "async" mode
|
Status |
FragmentScanOptions(FragmentScanOptions fragment_scan_options)
\brief Set fragment-specific scan options.
|
static ScannerBuilder |
FromRecordBatchReader(RecordBatchReader reader)
\brief Make a scanner from a record batch reader.
|
Status |
Pool(MemoryPool pool)
\brief Set the pool from which materialized and scanned arrays will be allocated.
|
Status |
Project(Expression exprs,
StringVector names)
\brief Set expressions which will be evaluated to produce the materialized
columns.
|
Status |
Project(StringVector columns)
\brief Set the subset of columns to materialize.
|
Schema |
projected_schema() |
Schema |
schema() |
Status |
UseAsync() |
Status |
UseAsync(boolean use_async)
\brief Indicate if the Scanner should run in experimental "async" mode
This mode should have considerably better performance on high-latency or parallel
filesystems but is still experimental
|
Status |
UseThreads() |
Status |
UseThreads(boolean use_threads)
\brief Indicate if the Scanner should make use of the available
ThreadPool found in ScanOptions;
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ScannerBuilder(Pointer p)
Pointer(Pointer)
.public ScannerBuilder(@SharedPtr @ByVal Dataset dataset)
public ScannerBuilder(@SharedPtr @ByVal Dataset dataset, @SharedPtr ScanOptions scan_options)
public ScannerBuilder(@SharedPtr @ByVal Schema schema, @SharedPtr @ByVal Fragment fragment, @SharedPtr ScanOptions scan_options)
@SharedPtr @ByVal public static ScannerBuilder FromRecordBatchReader(@SharedPtr RecordBatchReader reader)
@ByVal public Status Project(@ByVal StringVector columns)
columns
- [in] list of columns to project. Order and duplicates will
be preserved.@ByVal public Status Project(@StdVector Expression exprs, @ByVal StringVector names)
exprs
- [in] expressions to evaluate to produce columns.names
- [in] list of names for the resulting columns.@ByVal public Status Filter(@Const @ByRef Expression filter)
filter
- [in] expression to filter rows with.@ByVal public Status UseThreads(@Cast(value="bool") boolean use_threads)
@ByVal public Status FragmentReadahead(int fragment_readahead)
@ByVal public Status UseAsync(@Cast(value="bool") boolean use_async)
@ByVal public Status BatchSize(@Cast(value="int64_t") long batch_size)
batch_size
- [in] the maximum number of rows.@ByVal public Status Pool(MemoryPool pool)
@ByVal public Status FragmentScanOptions(@SharedPtr FragmentScanOptions fragment_scan_options)
@ByVal public ScannerResult Finish()
@Const @SharedPtr @ByRef public Schema schema()
@Const @SharedPtr @ByRef public Schema projected_schema()
Copyright © 2022. All rights reserved.