public class TRedshiftTableAttributes extends TParseTreeNode
| Modifier and Type | Class and Description |
|---|---|
static class |
TRedshiftTableAttributes.EDistStyle
Possible distribution styles for Redshift materialized views
|
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken| Constructor and Description |
|---|
TRedshiftTableAttributes()
Default constructor
|
TRedshiftTableAttributes(TRedshiftTableAttributes.EDistStyle distStyle)
Constructor with distribution style
|
TRedshiftTableAttributes(TRedshiftTableAttributes.EDistStyle distStyle,
TObjectName distKey)
Constructor with distribution style and key
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TParseTreeVisitor v)
Accept a visitor
|
void |
acceptChildren(TParseTreeVisitor v)
Accept a visitor to iterate this class and sub-nodes of this class
|
ETableAttributeType |
getAttributeType()
Get the attribute type
|
TObjectName |
getDistKey()
Get the distribution key
|
TRedshiftTableAttributes.EDistStyle |
getDistStyle()
Get the distribution style
|
TObjectNameList |
getSortKeyColumns()
Get the sort key columns
|
void |
init(Object arg1)
Initialize a query tree node.
|
void |
init(Object arg1,
Object arg2) |
void |
setAttributeType(ETableAttributeType attributeType)
Set the attribute type
|
TRedshiftTableAttributes |
setDistKey(TObjectName distKey)
Set the distribution key
|
TRedshiftTableAttributes |
setDistStyle(TRedshiftTableAttributes.EDistStyle distStyle)
Set the distribution style
|
String |
toSql()
Generate the SQL fragment for table_attributes
|
String |
toString()
The returned text is formed by concatenating the source tokens contained in this node one by one.
|
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic TRedshiftTableAttributes()
public TRedshiftTableAttributes(TRedshiftTableAttributes.EDistStyle distStyle)
distStyle - The distribution style to usepublic TRedshiftTableAttributes(TRedshiftTableAttributes.EDistStyle distStyle, TObjectName distKey)
distStyle - The distribution style to usedistKey - The distribution key columnpublic void init(Object arg1)
TParseTreeNodeinit in class TParseTreeNodearg1 - first argumentpublic void init(Object arg1, Object arg2)
init in class TParseTreeNodepublic ETableAttributeType getAttributeType()
public void setAttributeType(ETableAttributeType attributeType)
attributeType - The type of table attributepublic TRedshiftTableAttributes.EDistStyle getDistStyle()
public TRedshiftTableAttributes setDistStyle(TRedshiftTableAttributes.EDistStyle distStyle)
distStyle - The distribution stylepublic TObjectName getDistKey()
public TRedshiftTableAttributes setDistKey(TObjectName distKey)
distKey - The column identifier to use as distribution keypublic TObjectNameList getSortKeyColumns()
public String toSql()
public String toString()
TParseTreeNodetoString in class TParseTreeNodepublic void accept(TParseTreeVisitor v)
TParseTreeNodeaccept in interface Visitableaccept in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitorpublic void acceptChildren(TParseTreeVisitor v)
TParseTreeNodeacceptChildren in interface VisitableacceptChildren in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitor