Package org.apache.sysds.runtime.io
Class DeltaKernelUtils.ScanHandle
java.lang.Object
org.apache.sysds.runtime.io.DeltaKernelUtils.ScanHandle
- Enclosing class:
- DeltaKernelUtils
Opened latest snapshot of a Delta table: the logical schema plus everything
needed to (re)read its data files, including the list of per-data-file scan
rows. Delta Kernel scan-file rows are self-contained (the kernel's
distributed design serializes them to workers), so they can be retained and
read independently / in parallel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean[]Per-file flag indicating a deletion vector is present (so the live row count differs fromDeltaKernelUtils.numRecords(io.delta.kernel.data.Row)), aligned withscanFiles.final long[]Per-file record counts taken from the DeltanumRecordsstatistic, aligned withscanFiles;-1where the statistic is absent.final io.delta.kernel.types.StructTypefinal List<io.delta.kernel.data.Row>final io.delta.kernel.data.Rowfinal io.delta.kernel.types.StructType -
Method Summary
-
Field Details
-
schema
public final io.delta.kernel.types.StructType schema -
scanState
public final io.delta.kernel.data.Row scanState -
physicalReadSchema
public final io.delta.kernel.types.StructType physicalReadSchema -
scanFiles
-
numRecords
public final long[] numRecordsPer-file record counts taken from the DeltanumRecordsstatistic, aligned withscanFiles;-1where the statistic is absent. -
hasDeletionVector
public final boolean[] hasDeletionVectorPer-file flag indicating a deletion vector is present (so the live row count differs fromDeltaKernelUtils.numRecords(io.delta.kernel.data.Row)), aligned withscanFiles.
-
-
Method Details
-
hasExactRowCounts
public boolean hasExactRowCounts()- Returns:
- true iff every data file carries a
numRecordsstatistic and none has a deletion vector, i.e. exact per-file row offsets can be derived from metadata without reading the data.
-