Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrb19 committed Apr 12, 2023
1 parent eeddf19 commit 73fc9de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ public String statementKind()
return "SELECT";
}

/**
* No target datasource for SELECT/non-DML statements.
*/
@Nullable
@Override
public SqlNode targetDataSource()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@ public interface SqlStatementHandler
void prepare();
PrepareResult prepareResult();
PlannerResult plan() throws ValidationException;

/**
* @return the statement kind for a SQL statement. For example, SELECT, INSERT, or REPLACE.
*/
String statementKind();

/**
*
* @return the SQL node representing the target table in a SQL statement. Returns
* null for SELECT/non-DML statements.
*/
@Nullable SqlNode targetDataSource();

/**
Expand Down

0 comments on commit 73fc9de

Please sign in to comment.