@Alpha public class CommitSequence extends Object
CommitSteps that should be executed atomically.
Typical pattern for building a CommitSequence with two CommitSteps:
CommitSequence sequence = CommitSequence.newBuilder()
.withJobName(jobName)
.withDatasetUrn(datasetUrn)
.beginStep(FsRenameCommitStep.Builder.class)
.withProps(props)
.from(srcPath)
.to(dstPath)
.endStep()
.beginStep(DatasetStateCommitStep.Builder.class)
.withProps(props)
.withDatasetUrn(datasetUrn)
.withDatasetState(datasetState)
.endStep()
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CommitSequence.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the
CommitSteps in the order they are added to the commit sequence. |
static CommitSequence.Builder |
newBuilder() |
public void execute()
CommitSteps in the order they are added to the commit sequence.public static CommitSequence.Builder newBuilder()