Package dev.vortex.api
Class DataSource
java.lang.Object
dev.vortex.api.DataSource
A set of Vortex files opened through a
Session. Data sources are cheap to open (only the first file is read
eagerly, to determine the schema) and can be scanned multiple times.
Native resources are released automatically via VortexCleaner when the data source becomes unreachable.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.arrow.vector.types.pojo.SchemaarrowSchema(org.apache.arrow.memory.BufferAllocator allocator) Arrow schema of the data source (and of scans produced from it).static DataSourceOpen a single URI.static DataSourceOpen one or more URIs or globs.static DataSourceOpen one or more URIs or globs.rowCount()Row count along with the precision of that estimate.scan(ScanOptions options) Submit a scan.
-
Method Details
-
open
Open a single URI. -
open
Open one or more URIs or globs. When a glob is used, the first match is opened eagerly; subsequent matches are opened lazily on scan.- Parameters:
session- open sessionuri- single URI or globproperties- object-store credentials / options
-
open
Open one or more URIs or globs. When a glob is used, the first match is opened eagerly; subsequent matches are opened lazily on scan.- Parameters:
session- open sessionuris- URIs or globs to scanproperties- object-store credentials / options
-
arrowSchema
public org.apache.arrow.vector.types.pojo.Schema arrowSchema(org.apache.arrow.memory.BufferAllocator allocator) Arrow schema of the data source (and of scans produced from it). -
rowCount
Row count along with the precision of that estimate. Mirrors the RustPrecision<u64>returned byDataSource::row_count:DataSource.RowCount.Unknownwhen no estimate is available,DataSource.RowCount.Estimatefor an inexact hint,DataSource.RowCount.Exactwhen the count is authoritative. -
scan
Submit a scan.
-