public class LanceScanner extends Object implements org.apache.arrow.dataset.scanner.Scanner
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this scanner and releases any system resources associated with it.
|
long |
countRows()
Scan and return the number of matching rows (fulfill the given scan options).
|
static LanceScanner |
create(Dataset dataset,
ScanOptions options,
org.apache.arrow.memory.BufferAllocator allocator)
Create a Scanner.
|
Iterable<? extends org.apache.arrow.dataset.scanner.ScanTask> |
scan() |
org.apache.arrow.vector.ipc.ArrowReader |
scanBatches() |
org.apache.arrow.vector.types.pojo.Schema |
schema() |
public static LanceScanner create(Dataset dataset, ScanOptions options, org.apache.arrow.memory.BufferAllocator allocator)
dataset - the dataset to scanoptions - scan optionsallocator - allocatorpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic org.apache.arrow.vector.ipc.ArrowReader scanBatches()
scanBatches in interface org.apache.arrow.dataset.scanner.Scannerpublic Iterable<? extends org.apache.arrow.dataset.scanner.ScanTask> scan()
scan in interface org.apache.arrow.dataset.scanner.Scannerpublic org.apache.arrow.vector.types.pojo.Schema schema()
schema in interface org.apache.arrow.dataset.scanner.Scannerpublic long countRows()
Copyright © 2025. All rights reserved.