Package org.apache.gravitino.rel
Class SQLRepresentation.Builder
java.lang.Object
org.apache.gravitino.rel.SQLRepresentation.Builder
- Enclosing class:
- SQLRepresentation
A builder for
SQLRepresentation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSQLRepresentation.withDialect(String dialect) Sets the SQL dialect.Sets the SQL text.
-
Method Details
-
withDialect
Sets the SQL dialect.- Parameters:
dialect- The dialect identifier; must be non-null and non-empty.- Returns:
- This builder.
-
withSql
Sets the SQL text.- Parameters:
sql- The SQL text; must be non-null and non-empty.- Returns:
- This builder.
-
build
Builds a newSQLRepresentation.- Returns:
- The constructed
SQLRepresentation. - Throws:
IllegalArgumentException- Ifdialectorsqlis null or empty.
-