Skip to content

Commit

Permalink
Add support to return stageName in stageConfigurer
Browse files Browse the repository at this point in the history
  • Loading branch information
itsankit-google committed Sep 16, 2024
1 parent 3c6b832 commit 0b97ce6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public interface StageConfigurer {
@Nullable
Schema getInputSchema();

/**
* Returns the name of the stage.
*
* @return the name of the stage
*/
String getStageName();

/**
* set the output schema for this stage, or null if its unknown
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ public void setErrorSchema(@Nullable Schema errorSchema) {
errorSchemaSet = true;
}

@Override
public String getStageName() {
return stageName;
}

@Override
public FailureCollector getFailureCollector() {
if (collector == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public void setErrorSchema(@Nullable Schema errorSchema) {
// no-op
}

@Override
public String getStageName() {
return null;
}

public FailureCollector getFailureCollector() {
return collector;
}
Expand Down

0 comments on commit 0b97ce6

Please sign in to comment.