@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ViewRepresentation extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the dialect of the view, and the query that defines the view.
Constructor and Description |
---|
ViewRepresentation() |
Modifier and Type | Method and Description |
---|---|
ViewRepresentation |
clone() |
boolean |
equals(Object obj) |
String |
getDialect()
The dialect of the query engine.
|
String |
getDialectVersion()
The version of the dialect of the query engine.
|
Boolean |
getIsStale()
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective
query engines.
|
String |
getValidationConnection()
The name of the connection to be used to validate the specific representation of the view.
|
String |
getViewExpandedText()
The expanded SQL for the view.
|
String |
getViewOriginalText()
The
SELECT query provided by the customer during CREATE VIEW DDL . |
int |
hashCode() |
Boolean |
isStale()
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective
query engines.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDialect(String dialect)
The dialect of the query engine.
|
void |
setDialectVersion(String dialectVersion)
The version of the dialect of the query engine.
|
void |
setIsStale(Boolean isStale)
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective
query engines.
|
void |
setValidationConnection(String validationConnection)
The name of the connection to be used to validate the specific representation of the view.
|
void |
setViewExpandedText(String viewExpandedText)
The expanded SQL for the view.
|
void |
setViewOriginalText(String viewOriginalText)
The
SELECT query provided by the customer during CREATE VIEW DDL . |
String |
toString()
Returns a string representation of this object.
|
ViewRepresentation |
withDialect(String dialect)
The dialect of the query engine.
|
ViewRepresentation |
withDialect(ViewDialect dialect)
The dialect of the query engine.
|
ViewRepresentation |
withDialectVersion(String dialectVersion)
The version of the dialect of the query engine.
|
ViewRepresentation |
withIsStale(Boolean isStale)
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective
query engines.
|
ViewRepresentation |
withValidationConnection(String validationConnection)
The name of the connection to be used to validate the specific representation of the view.
|
ViewRepresentation |
withViewExpandedText(String viewExpandedText)
The expanded SQL for the view.
|
ViewRepresentation |
withViewOriginalText(String viewOriginalText)
The
SELECT query provided by the customer during CREATE VIEW DDL . |
public void setDialect(String dialect)
The dialect of the query engine.
dialect
- The dialect of the query engine.ViewDialect
public String getDialect()
The dialect of the query engine.
ViewDialect
public ViewRepresentation withDialect(String dialect)
The dialect of the query engine.
dialect
- The dialect of the query engine.ViewDialect
public ViewRepresentation withDialect(ViewDialect dialect)
The dialect of the query engine.
dialect
- The dialect of the query engine.ViewDialect
public void setDialectVersion(String dialectVersion)
The version of the dialect of the query engine. For example, 3.0.0.
dialectVersion
- The version of the dialect of the query engine. For example, 3.0.0.public String getDialectVersion()
The version of the dialect of the query engine. For example, 3.0.0.
public ViewRepresentation withDialectVersion(String dialectVersion)
The version of the dialect of the query engine. For example, 3.0.0.
dialectVersion
- The version of the dialect of the query engine. For example, 3.0.0.public void setViewOriginalText(String viewOriginalText)
The SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is not used
during a query on a view (ViewExpandedText
is used instead). ViewOriginalText
is used
for cases like SHOW CREATE VIEW
where users want to see the original DDL command that created the
view.
viewOriginalText
- The SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is
not used during a query on a view (ViewExpandedText
is used instead).
ViewOriginalText
is used for cases like SHOW CREATE VIEW
where users want to see
the original DDL command that created the view.public String getViewOriginalText()
The SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is not used
during a query on a view (ViewExpandedText
is used instead). ViewOriginalText
is used
for cases like SHOW CREATE VIEW
where users want to see the original DDL command that created the
view.
SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is
not used during a query on a view (ViewExpandedText
is used instead).
ViewOriginalText
is used for cases like SHOW CREATE VIEW
where users want to
see the original DDL command that created the view.public ViewRepresentation withViewOriginalText(String viewOriginalText)
The SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is not used
during a query on a view (ViewExpandedText
is used instead). ViewOriginalText
is used
for cases like SHOW CREATE VIEW
where users want to see the original DDL command that created the
view.
viewOriginalText
- The SELECT
query provided by the customer during CREATE VIEW DDL
. This SQL is
not used during a query on a view (ViewExpandedText
is used instead).
ViewOriginalText
is used for cases like SHOW CREATE VIEW
where users want to see
the original DDL command that created the view.public void setViewExpandedText(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 ViewOriginalText
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
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
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
public String getViewExpandedText()
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
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
ViewOriginalText
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
public ViewRepresentation withViewExpandedText(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 ViewOriginalText
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
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
to
ViewExpandedText
. For example:
Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1
public void setValidationConnection(String validationConnection)
The name of the connection to be used to validate the specific representation of the view.
validationConnection
- The name of the connection to be used to validate the specific representation of the view.public String getValidationConnection()
The name of the connection to be used to validate the specific representation of the view.
public ViewRepresentation withValidationConnection(String validationConnection)
The name of the connection to be used to validate the specific representation of the view.
validationConnection
- The name of the connection to be used to validate the specific representation of the view.public void setIsStale(Boolean isStale)
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
isStale
- Dialects marked as stale are no longer valid and must be updated before they can be queried in their
respective query engines.public Boolean getIsStale()
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
public ViewRepresentation withIsStale(Boolean isStale)
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
isStale
- Dialects marked as stale are no longer valid and must be updated before they can be queried in their
respective query engines.public Boolean isStale()
Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
public String toString()
toString
in class Object
Object.toString()
public ViewRepresentation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.