Package io.delta.kernel.internal.hook
Class LogCompactionHook
Object
io.delta.kernel.internal.hook.LogCompactionHook
- All Implemented Interfaces:
PostCommitHook
A post-commit hook that performs inline log compaction. It merges commit JSON files over a
compaction interval into a single compacted JSON file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.delta.kernel.hook.PostCommitHook
PostCommitHook.PostCommitHookType
-
Constructor Summary
ConstructorsConstructorDescriptionLogCompactionHook
(Path dataPath, Path logPath, long startVersion, long commitVersion, long minFileRetentionTimestampMillis) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
getType()
void
threadSafeInvoke
(Engine engine) Invokes the post commit operation whose implementation must be thread safe.
-
Constructor Details
-
LogCompactionHook
-
-
Method Details
-
threadSafeInvoke
Description copied from interface:PostCommitHook
Invokes the post commit operation whose implementation must be thread safe.- Specified by:
threadSafeInvoke
in interfacePostCommitHook
- Throws:
IOException
-
getType
- Specified by:
getType
in interfacePostCommitHook
-
getDataPath
-
getLogPath
-
getStartVersion
-
getCommitVersion
-
getMinFileRetentionTimestampMillis
-