public class RewriteDataFilesAction
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected void |
commit(SnapshotUpdate<?> update) |
RewriteDataFilesActionResult |
execute()
Executes this action.
|
RewriteDataFilesAction |
filter(Expression expr)
Pass a row Expression to filter DataFiles to be rewritten.
|
protected java.lang.String |
metadataTableName(MetadataTableType type) |
RewriteDataFilesAction |
outputSpecId(int specId)
Pass a PartitionSpec id to specify which PartitionSpec should be used in DataFile rewrite
|
protected RewriteDataFilesAction |
self() |
ThisT |
set(java.lang.String property,
java.lang.String value) |
RewriteDataFilesAction |
splitLookback(int lookback)
Specify the number of "bins" considered when trying to pack the next file split into a task.
|
RewriteDataFilesAction |
splitOpenFileCost(long openFileCost)
Specify the minimum file size to count to pack into one "bin".
|
protected Table |
table() |
RewriteDataFilesAction |
targetSizeInBytes(long targetSize)
Specify the target rewrite data file size in bytes
|
protected RewriteDataFilesAction self()
protected Table table()
public RewriteDataFilesAction outputSpecId(int specId)
specId
- PartitionSpec id to rewritepublic RewriteDataFilesAction targetSizeInBytes(long targetSize)
targetSize
- size in bytes of rewrite data filepublic RewriteDataFilesAction splitLookback(int lookback)
This configuration can reorder the incoming file regions, to preserve order for lower/upper bounds in file metadata, user can use a lookback of 1.
lookback
- number of "bins" considered when trying to pack the next file split into a task.public RewriteDataFilesAction splitOpenFileCost(long openFileCost)
this configuration controls the number of files to compact for each task, small value would lead to a high compaction, the default value is 4MB.
openFileCost
- minimum file size to count to pack into one "bin".public RewriteDataFilesAction filter(Expression expr)
expr
- Expression to filter out DataFilespublic RewriteDataFilesActionResult execute()
Action
public ThisT set(java.lang.String property, java.lang.String value)
set
in interface SnapshotUpdateAction<ThisT,R>
protected void commit(SnapshotUpdate<?> update)
protected java.lang.String metadataTableName(MetadataTableType type)