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 TypeMethodDescriptionlonglonglonggetType()voidthreadSafeInvoke(Engine engine) Invokes the post commit operation whose implementation must be thread safe.
-
Constructor Details
-
LogCompactionHook
-
-
Method Details
-
threadSafeInvoke
Description copied from interface:PostCommitHookInvokes the post commit operation whose implementation must be thread safe.- Specified by:
threadSafeInvokein interfacePostCommitHook- Throws:
IOException
-
getType
- Specified by:
getTypein interfacePostCommitHook
-
getDataPath
-
getLogPath
-
getStartVersion
-
getCommitVersion
-
getMinFileRetentionTimestampMillis
-