Package org.apache.gravitino.rel
Class SQLRepresentation
java.lang.Object
org.apache.gravitino.rel.SQLRepresentation
- All Implemented Interfaces:
Representation
A SQL-based
Representation of a view. Each SQLRepresentation carries the SQL text
together with the dialect it is expressed in.
Default catalog and schema used to resolve unqualified identifiers referenced by the SQL are
defined at the View level and shared across all representations of the view.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.gravitino.rel.Representation
TYPE_SQL -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLRepresentation.Builderbuilder()Creates a new builder forSQLRepresentation.dialect()Returns the SQL dialect of this representation, e.g.booleaninthashCode()sql()Returns the SQL text of this representation.toString()type()Returns the representation type.
-
Method Details
-
builder
Creates a new builder forSQLRepresentation.- Returns:
- A new
SQLRepresentation.Builderinstance.
-
type
Description copied from interface:RepresentationReturns the representation type. The only supported value today isRepresentation.TYPE_SQL.- Specified by:
typein interfaceRepresentation- Returns:
- The representation type identifier.
-
dialect
Returns the SQL dialect of this representation, e.g."trino"or"spark". SeeDialectsfor well-known values.- Returns:
- The dialect identifier.
-
sql
Returns the SQL text of this representation.- Returns:
- The SQL text.
-
equals
-
hashCode
public int hashCode() -
toString
-