Package io.delta.kernel.internal.data
Class ScanStateRow
Object
io.delta.kernel.internal.data.GenericRow
io.delta.kernel.internal.data.ScanStateRow
- All Implemented Interfaces:
Row
Encapsulate the scan state (common info for all scan files) as a
Row-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnMappingMode(Row scanState) Get the column mapping mode from the scan stateRowreturned byScan.getScanState(Engine).getConfiguration(Row scanState) Utility method to get the configuration map from the scan stateRowreturned byScan.getScanState(Engine).static StructTypegetLogicalSchema(Row scanState) Utility method to get the logical schema from the scan stateRowreturned byScan.getScanState(Engine).getPartitionColumns(Row scanState) Get the list of partition column names from the scan stateRowreturned byScan.getScanState(Engine).static StructTypegetPhysicalDataReadSchema(Row scanState) Utility method to get the physical schema from the scan stateRowreturned byScan.getScanState(Engine).static PathgetTableRoot(Row scanState) Get the table root from scan stateRowreturned byScan.getScanState(Engine)static ScanStateRowof(Metadata metadata, Protocol protocol, String logicalSchemaJson, String physicalSchemaJson, String tablePath)
-
Constructor Details
-
ScanStateRow
-
-
Method Details
-
of
-
getConfiguration
Utility method to get the configuration map from the scan stateRowreturned byScan.getScanState(Engine).- Parameters:
scanState- Scan stateRow- Returns:
- Map of configuration key-value pairs.
-
getLogicalSchema
Utility method to get the logical schema from the scan stateRowreturned byScan.getScanState(Engine).- Parameters:
scanState- Scan stateRow- Returns:
- Logical schema to read from the data files.
-
getPhysicalDataReadSchema
Utility method to get the physical schema from the scan stateRowreturned byScan.getScanState(Engine). This schema is used to request data from the scan files for the query.- Parameters:
scanState- Scan stateRow- Returns:
- Physical schema to read from the data files.
-
getPartitionColumns
Get the list of partition column names from the scan stateRowreturned byScan.getScanState(Engine).- Parameters:
scanState- Scan stateRow- Returns:
- List of partition column names according to the scan state.
-
getColumnMappingMode
Get the column mapping mode from the scan stateRowreturned byScan.getScanState(Engine). -
getTableRoot
Get the table root from scan stateRowreturned byScan.getScanState(Engine)- Parameters:
scanState- Scan stateRow- Returns:
- Fully qualified path to the location of the table.
-