Package org.apache.gravitino.dto.rel
Class SQLRepresentationDTO
java.lang.Object
org.apache.gravitino.dto.rel.RepresentationDTO
org.apache.gravitino.dto.rel.SQLRepresentationDTO
- All Implemented Interfaces:
Representation
A DTO mirroring
SQLRepresentation. Represents a SQL-based view
definition for a particular dialect.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.gravitino.rel.Representation
TYPE_SQL -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLRepresentationDTO.Builderbuilder()Creates a newSQLRepresentationDTO.Builder.dialect()Returns the SQL dialect of this representation.booleaninthashCode()sql()Returns the SQL text of this representation.toString()type()Returns the representation type.voidvalidate()Validates the fields of this representation.Methods inherited from class org.apache.gravitino.dto.rel.RepresentationDTO
fromRepresentation
-
Method Details
-
builder
Creates a newSQLRepresentationDTO.Builder.- Returns:
- A new builder instance.
-
type
Description copied from interface:RepresentationReturns the representation type. The only supported value today isRepresentation.TYPE_SQL.- Returns:
- The representation type identifier.
-
dialect
Returns the SQL dialect of this representation.- Returns:
- The dialect identifier.
-
sql
Returns the SQL text of this representation.- Returns:
- The SQL text.
-
validate
Description copied from class:RepresentationDTOValidates the fields of this representation.- Specified by:
validatein classRepresentationDTO- Throws:
IllegalArgumentException- If the representation is invalid.
-
equals
-
hashCode
public int hashCode() -
toString
-