Package dev.vortex.spark.read
Class VortexBatchExec
java.lang.Object
dev.vortex.spark.read.VortexBatchExec
- All Implemented Interfaces:
org.apache.spark.sql.connector.read.Batch
public final class VortexBatchExec
extends Object
implements org.apache.spark.sql.connector.read.Batch
Execution source for batch scans of Vortex file tables.
-
Constructor Summary
ConstructorsConstructorDescriptionVortexBatchExec(List<String> paths, List<org.apache.spark.sql.connector.catalog.Column> columns, Map<String, String> formatOptions, org.apache.spark.sql.connector.expressions.filter.Predicate[] pushedPredicates) Creates a new VortexBatchExec for scanning the specified Vortex files. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.sql.connector.read.PartitionReaderFactoryorg.apache.spark.sql.connector.read.InputPartition[]Plans the input partitions for this batch scan.
-
Constructor Details
-
VortexBatchExec
public VortexBatchExec(List<String> paths, List<org.apache.spark.sql.connector.catalog.Column> columns, Map<String, String> formatOptions, org.apache.spark.sql.connector.expressions.filter.Predicate[] pushedPredicates) Creates a new VortexBatchExec for scanning the specified Vortex files.- Parameters:
paths- the list of file paths to scancolumns- the list of columns to read from the filespushedPredicates- predicates pushed down by Spark; converted to a single Vortex filter expression at read time
-
-
Method Details
-
planInputPartitions
public org.apache.spark.sql.connector.read.InputPartition[] planInputPartitions()Plans the input partitions for this batch scan.Directory-like entries are expanded to concrete
.vortexfiles. Each resolved file becomes its ownVortexFilePartition; the partition carries the paths the reader should open, the requested schema, and any Hive-style partition values parsed out of the path.- Specified by:
planInputPartitionsin interfaceorg.apache.spark.sql.connector.read.Batch
-
createReaderFactory
public org.apache.spark.sql.connector.read.PartitionReaderFactory createReaderFactory()- Specified by:
createReaderFactoryin interfaceorg.apache.spark.sql.connector.read.Batch
-