Class ScanStateRow

Object
io.delta.kernel.internal.data.GenericRow
io.delta.kernel.internal.data.ScanStateRow
All Implemented Interfaces:
Row

public class ScanStateRow extends GenericRow
Encapsulate the scan state (common info for all scan files) as a Row
  • Constructor Details

  • Method Details

    • of

      public static ScanStateRow of(Metadata metadata, Protocol protocol, String readSchemaLogicalJson, String readSchemaPhysicalJson, String readPhysicalDataSchemaJson, String tablePath)
    • getLogicalSchema

      public static StructType getLogicalSchema(Engine engine, Row scanState)
      Utility method to get the logical schema from the scan state Row returned by Scan.getScanState(Engine).
      Parameters:
      engine - instance of Engine to use.
      scanState - Scan state Row
      Returns:
      Logical schema to read from the data files.
    • getPhysicalSchema

      public static StructType getPhysicalSchema(Engine engine, Row scanState)
      Utility method to get the physical schema from the scan state Row returned by Scan.getScanState(Engine).
      Parameters:
      engine - instance of Engine to use.
      scanState - Scan state Row
      Returns:
      Physical schema to read from the data files.
    • getPhysicalDataReadSchema

      public static StructType getPhysicalDataReadSchema(Engine engine, Row scanState)
      Utility method to get the physical data read schema from the scan state Row returned by Scan.getScanState(Engine). This schema is used to request data from the scan files for the query.
      Parameters:
      engine - instance of Engine to use.
      scanState - Scan state Row
      Returns:
      Physical schema to read from the data files.
    • getPartitionColumns

      public static List<String> getPartitionColumns(Row scanState)
      Get the list of partition column names from the scan state Row returned by Scan.getScanState(Engine).
      Parameters:
      scanState - Scan state Row
      Returns:
      List of partition column names according to the scan state.
    • getColumnMappingMode

      public static String getColumnMappingMode(Row scanState)
      Get the column mapping mode from the scan state Row returned by Scan.getScanState(Engine).
    • getTableRoot

      public static String getTableRoot(Row scanState)
      Get the table root from scan state Row returned by Scan.getScanState(Engine)
      Parameters:
      scanState - Scan state Row
      Returns:
      Fully qualified path to the location of the table.