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 TypeMethodDescriptionstatic StringgetColumnMappingMode(Row scanState) Get the column mapping mode from the scan stateRowreturned byScan.getScanState(Engine).static StructTypegetLogicalSchema(Engine engine, 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(Engine engine, Row scanState) Utility method to get the physical data read schema from the scan stateRowreturned byScan.getScanState(Engine).static StructTypegetPhysicalSchema(Engine engine, Row scanState) Utility method to get the physical schema from the scan stateRowreturned byScan.getScanState(Engine).static StringgetTableRoot(Row scanState) Get the table root from scan stateRowreturned byScan.getScanState(Engine)static ScanStateRowof(Metadata metadata, Protocol protocol, String readSchemaLogicalJson, String readSchemaPhysicalJson, String readPhysicalDataSchemaJson, String tablePath)
-
Constructor Details
-
ScanStateRow
-
-
Method Details
-
of
-
getLogicalSchema
Utility method to get the logical schema from the scan stateRowreturned byScan.getScanState(Engine). -
getPhysicalSchema
Utility method to get the physical schema from the scan stateRowreturned byScan.getScanState(Engine). -
getPhysicalDataReadSchema
Utility method to get the physical data read schema from the scan stateRowreturned byScan.getScanState(Engine). This schema is used to request data from the scan files for the query. -
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.
-