ProtocolMetadataAdapter¶
ProtocolMetadataAdapter is an abstraction of adapters for DeltaParquetFileFormatBase to work alongside the two Spark Connector implementations:
ProtocolMetadataAdapter hides the implementation details of Protocol and Metadata classes between the Delta Spark connectors.
Contract¶
assertTableReadable¶
Used when:
DeltaParquetFileFormatBaseis created
columnMappingMode¶
Used when:
DeltaParquetFileFormatBaseis created
createRowTrackingMetadataFields¶
createRowTrackingMetadataFields(
nullableRowTrackingConstantFields: Boolean,
nullableRowTrackingGeneratedFields: Boolean): Iterable[StructField]
Metadata columns for Row Tracking
Used when:
DeltaParquetFileFormatBaseis requested for the metadataSchemaFields
getReferenceSchema¶
Used when:
DeltaParquetFileFormatBaseis created
isDeletionVectorReadable¶
Whether Deletion Vectors are readable on this table
Used when:
DeltaParquetFileFormatBaseis requested for the metadataSchemaFields
isIcebergCompatAnyEnabled¶
Whether any version of IcebergCompat is enabled on this table
Used when:
DeltaParquetFileFormatBaseis requested to prepareWrite
isIcebergCompatGeqEnabled¶
Whether IcebergCompat is enabled at or above the specified version
Used when:
DeltaParquetFileFormatBaseis requested for the prepareWrite
isRowIdEnabled¶
Whether Row Tracking is enabled on this table
Used when:
DeltaParquetFileFormatBaseis requested for the metadataSchemaFields