public class InternalScanFileUtils
extends Object
Scan.getScanFiles(Engine).| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_FILE_ORDINAL |
static Column |
ADD_FILE_PARTITION_COL_REF
Column expression referring to the `partitionValues` in scan `add` file. |
static int |
ADD_FILE_STATS_ORDINAL |
static StructType |
SCAN_FILE_SCHEMA
Schema of the returned scan files.
|
static StructType |
SCAN_FILE_SCHEMA_WITH_STATS
Schema of the returned scan files when
ScanImpl.getScanFiles(Engine, boolean) is called
with includeStats=true. |
static StructField |
TABLE_ROOT_STRUCT_FIELD |
| Modifier and Type | Method and Description |
|---|---|
static Row |
generateScanFileRow(FileStatus fileStatus)
Create a scan file row conforming to the schema
SCAN_FILE_SCHEMA for given file
status. |
static FileStatus |
getAddFileStatus(Row scanFileInfo)
|
static DeletionVectorDescriptor |
getDeletionVectorDescriptorFromRow(Row scanFile)
Create a
DeletionVectorDescriptor from add entry in the given scan file row. |
static java.util.Map<String,String> |
getPartitionValues(Row scanFileInfo)
Get the partition columns and values belonging to the
AddFile from given scan file row. |
static Column |
getPartitionValuesParsedRefInAddFile(String partitionColName)
Get a references column for given partition column name in partitionValues_parsed column in
scan file row.
|
public static final Column ADD_FILE_PARTITION_COL_REF
Column expression referring to the `partitionValues` in scan `add` file.public static StructField TABLE_ROOT_STRUCT_FIELD
public static final StructType SCAN_FILE_SCHEMA
public static final StructType SCAN_FILE_SCHEMA_WITH_STATS
ScanImpl.getScanFiles(Engine, boolean) is called
with includeStats=true.public static final int ADD_FILE_ORDINAL
public static final int ADD_FILE_STATS_ORDINAL
public static FileStatus getAddFileStatus(Row scanFileInfo)
FileStatus of AddFile from given scan file Row. The FileStatus contains file metadata about the file.scanFileInfo - Row representing one scan file.FileStatus object created from the given scan file row.public static java.util.Map<String,String> getPartitionValues(Row scanFileInfo)
AddFile from given scan file row.scanFileInfo - Row representing one scan file.public static Row generateScanFileRow(FileStatus fileStatus)
SCAN_FILE_SCHEMA for given file
status. This is used when creating the ScanFile row for reading commit or checkpoint files.fileStatus - public static DeletionVectorDescriptor getDeletionVectorDescriptorFromRow(Row scanFile)
DeletionVectorDescriptor from add entry in the given scan file row.scanFile - Row representing one scan file.public static Column getPartitionValuesParsedRefInAddFile(String partitionColName)
partitionColName - Partition column nameColumn reference