public class InternalScanFileUtils
extends Object
Scan.getScanFiles(TableClient).| 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
Scan file rows may have an additional column "add.stats" at the end of the "add" columns
that is not represented in the schema here.
|
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. |
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 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.