public class TOceanbaseTenantOption extends TParseTreeNode
CREATE TENANT /
ALTER TENANT option list.
Represents one of the forms documented in the OceanBase 4.x admin guide:
RESOURCE_POOL_LIST = ('p1', 'p2')PRIMARY_ZONE = 'zone1'LOCALITY = 'F@zone1, F@zone2'CHARSET = 'utf8mb4'COMMENT = '...'LOGONLY_REPLICA_NUM = 2 / REPLICA_NUM = 3SET ob_query_timeout = 100000000
(the setVariable form)The option name is stored as a plain string
(uppercase canonical form) rather than an enum so the node can carry
future options without a core-library recompile. Values are stored as
a list of TObjectName tokens — identifiers, string literals,
and numeric literals all surface here. Callers can use
getFirstValue() for single-valued options or iterate
getValues() for list-valued ones.
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken| Constructor and Description |
|---|
TOceanbaseTenantOption() |
| 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
|
void |
addValue(TObjectName value) |
TObjectName |
getFirstValue() |
String |
getName() |
ArrayList<TObjectName> |
getValues() |
boolean |
isSetVariable() |
void |
setName(String name) |
void |
setSetVariable(boolean setVariable) |
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, init, init, 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, toString, toString2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic TOceanbaseTenantOption()
public ArrayList<TObjectName> getValues()
public void addValue(TObjectName value)
public TObjectName getFirstValue()
public boolean isSetVariable()
true when this option was introduced by the
SET name = value form (a session variable assignment
threaded into the tenant create/alter), false when it
was a plain name = value tenant option.public void setSetVariable(boolean setVariable)
public 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