Skip to content

Commit

Permalink
spool: Add some @FunctionalInterface annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz committed Oct 29, 2024
1 parent 2645dd6 commit 257a83a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public SimpleChildBuilder<MailboxSendNode> sendMailbox(
* {@link #exchange(int, SimpleChildBuilder)}, {@link #join(SimpleChildBuilder, SimpleChildBuilder)},
* {@link #tableScan(String)} and others to chain instances of this class.
*/
@FunctionalInterface
public interface ChildBuilder<P extends PlanNode> {
P build(int stageId, @Nullable DataSchema dataSchema, @Nullable PlanNode.NodeHint hints);

Expand Down Expand Up @@ -222,6 +223,7 @@ default SimpleChildBuilder<P> withHints(String key, Map<String, String> values)
* and data schema are not usually needed to be modified from the parent node.
* @param <P>
*/
@FunctionalInterface
public interface SimpleChildBuilder<P extends PlanNode> extends ChildBuilder<P> {
default P build(int stageId) {
return build(stageId, null, null);
Expand Down

0 comments on commit 257a83a

Please sign in to comment.