Package io.delta.kernel.internal.actions
Class RemoveFile
Object
io.delta.kernel.internal.actions.RowBackedAction
io.delta.kernel.internal.actions.RemoveFile
Metadata about
remove action in the Delta Log.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructTypeFull schema of theremoveaction in the Delta Log. -
Constructor Summary
ConstructorsConstructorDescriptionRemoveFile(Row row) Constructs anRemoveFileaction from the given 'RemoveFile'Row. -
Method Summary
Methods inherited from class io.delta.kernel.internal.actions.RowBackedAction
toRow
-
Field Details
-
FULL_SCHEMA
Full schema of theremoveaction in the Delta Log.
-
-
Constructor Details
-
RemoveFile
Constructs anRemoveFileaction from the given 'RemoveFile'Row.
-
-
Method Details
-
getPath
-
getDeletionTimestamp
-
getDataChange
public boolean getDataChange() -
getExtendedFileMetadata
-
getPartitionValues
-
getSize
-
getStatsJson
-
getNumRecords
-
getStats
Returns the file statistics parsed from the stats JSON string using the provided schema. This method deserializes the statistics JSON with full type information, ensuring that min/max values and null counts are correctly typed according to the physical schema.- Parameters:
physicalSchema- the physical schema of the table, used to correctly parse and type the statistics values (min/max values and null counts)- Returns:
- an
Optionalcontaining the deserializedDataFileStatisticsif the stats field is present and non-null, orOptional.empty()otherwise - Throws:
KernelException- if the stats JSON is malformed or if values don't match the expected types from the schema- See Also:
-
getTags
-
getDeletionVector
-
getBaseRowId
-
getDefaultRowCommitVersion
-
toString
-