Class ViewRepresentation
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.ViewRepresentation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ViewRepresentation.Builder,ViewRepresentation>
@Generated("software.amazon.awssdk:codegen") public final class ViewRepresentation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ViewRepresentation.Builder,ViewRepresentation>
A structure that contains the dialect of the view, and the query that defines the view.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceViewRepresentation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ViewRepresentation.Builderbuilder()ViewDialectdialect()The dialect of the query engine.StringdialectAsString()The dialect of the query engine.StringdialectVersion()The version of the dialect of the query engine.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisStale()Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.List<SdkField<?>>sdkFields()static Class<? extends ViewRepresentation.Builder>serializableBuilderClass()ViewRepresentation.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvalidationConnection()The name of the connection to be used to validate the specific representation of the view.StringviewExpandedText()The expanded SQL for the view.StringviewOriginalText()TheSELECTquery provided by the customer duringCREATE VIEW DDL.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dialect
public final ViewDialect 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:
ViewDialect
-
dialectAsString
public final String 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:
ViewDialect
-
dialectVersion
public final String 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
public final String 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
public final String 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
public final String 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
public 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.
- Returns:
- Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
-
toBuilder
public ViewRepresentation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ViewRepresentation.Builder,ViewRepresentation>
-
builder
public static ViewRepresentation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ViewRepresentation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-