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.Builderbuilder()final ViewDialectdialect()The dialect of the query engine.final StringThe dialect of the query engine.final StringThe version of the dialect of the query engine.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final BooleanisStale()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 StringtoString()Returns a string representation of this object.final StringThe name of the connection to be used to validate the specific representation of the view.final StringThe expanded SQL for the view.final StringTheSELECTquery 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,
dialectwill 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,
dialectwill 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
SELECTquery provided by the customer duringCREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedTextis used instead).ViewOriginalTextis used for cases likeSHOW CREATE VIEWwhere users want to see the original DDL command that created the view.- Returns:
- The
SELECTquery provided by the customer duringCREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedTextis used instead).ViewOriginalTextis used for cases likeSHOW CREATE VIEWwhere 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
ViewOriginalTexttoViewExpandedText. 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
ViewOriginalTexttoViewExpandedText. 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ViewRepresentation.Builder,ViewRepresentation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-