Package io.delta.kernel.internal
Class TableConfig<T>
Object
io.delta.kernel.internal.TableConfig<T>
Represents the table properties. Also provides methods to access the property values
from the table metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TableConfig<Integer>How often to checkpoint the delta log? For every N (this config) commits to the log, we will suggest write out a checkpoint file that can speed up the Delta table state reconstruction.static final TableConfig<Long>The shortest duration we have to keep logically deleted data files around before deleting them physically. -
Method Summary
Modifier and TypeMethodDescriptionfromMetadata(Metadata metadata) Returns the value of the table property from the given metadata.
-
Field Details
-
TOMBSTONE_RETENTION
The shortest duration we have to keep logically deleted data files around before deleting them physically. Note: this value should be large enough:- It should be larger than the longest possible duration of a job if you decide to run "VACUUM" when there are concurrent readers or writers accessing the table.
- If you are running a streaming query reading from the table, you should make sure the query doesn't stop longer than this value. Otherwise, the query may not be able to restart as it still needs to read old files.
-
CHECKPOINT_INTERVAL
How often to checkpoint the delta log? For every N (this config) commits to the log, we will suggest write out a checkpoint file that can speed up the Delta table state reconstruction.
-
-
Method Details
-
fromMetadata
Returns the value of the table property from the given metadata.- Parameters:
metadata- the table metadata- Returns:
- the value of the table property
-