Class ViewRepresentation
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ViewRepresentation.Builder,
ViewRepresentation>
A structure that contains the dialect of the view, and the query that defines the view.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewRepresentation.Builder
builder()
final ViewDialect
dialect()
The dialect of the query engine.final String
The dialect of the query engine.final String
The version of the dialect of the query engine.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Boolean
isStale()
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.static Class
<? extends ViewRepresentation.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The name of the connection to be used to validate the specific representation of the view.final String
The expanded SQL for the view.final String
TheSELECT
query provided by the customer duringCREATE VIEW DDL
.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dialect
The dialect of the query engine.
If the service returns an enum value that is not available in the current SDK version,
dialect
will returnViewDialect.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdialectAsString()
.- Returns:
- The dialect of the query engine.
- See Also:
-
dialectAsString
The dialect of the query engine.
If the service returns an enum value that is not available in the current SDK version,
dialect
will returnViewDialect.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdialectAsString()
.- Returns:
- The dialect of the query engine.
- See Also:
-
dialectVersion
The version of the dialect of the query engine. For example, 3.0.0.
- Returns:
- The version of the dialect of the query engine. For example, 3.0.0.
-
viewOriginalText
The
SELECT
query provided by the customer duringCREATE VIEW DDL
. This SQL is not used during a query on a view (ViewExpandedText
is used instead).ViewOriginalText
is used for cases likeSHOW CREATE VIEW
where users want to see the original DDL command that created the view.- Returns:
- The
SELECT
query provided by the customer duringCREATE VIEW DDL
. This SQL is not used during a query on a view (ViewExpandedText
is used instead).ViewOriginalText
is used for cases likeSHOW CREATE VIEW
where users want to see the original DDL command that created the view.
-
viewExpandedText
The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform
ViewOriginalText
toViewExpandedText
. For example:-
Fully qualified identifiers:
SELECT * from table1 -> SELECT * from db1.table1
- Returns:
- The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines
may perform operations during view creation to transform
ViewOriginalText
toViewExpandedText
. For example:-
Fully qualified identifiers:
SELECT * from table1 -> SELECT * from db1.table1
-
-
-
validationConnection
The name of the connection to be used to validate the specific representation of the view.
- Returns:
- The name of the connection to be used to validate the specific representation of the view.
-
isStale
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
- Returns:
- Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ViewRepresentation.Builder,
ViewRepresentation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-