public class TOceanbaseResourceOption extends TParseTreeNode
CREATE RESOURCE
UNIT / CREATE RESOURCE POOL / ALTER RESOURCE ...
option list.
Represents one of the forms documented in the OceanBase 4.x admin guide:
MIN_CPU, MAX_CPU,
MEMORY_SIZE, LOG_DISK_SIZE, MAX_IOPS,
MIN_IOPS, IOPS_WEIGHT, MAX_SESSION_NUMUNIT = 'name',
UNIT_NUM = N, ZONE_LIST = ('z1', 'z2', ...)Parallels TOceanbaseTenantOption in shape but is kept as a
distinct class so tenant and resource DDL trees never mix — callers
switching on option kind can rely on the type itself rather than a
secondary field.
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken| Constructor and Description |
|---|
TOceanbaseResourceOption() |
| 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() |
void |
setName(String name) |
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 TOceanbaseResourceOption()
public ArrayList<TObjectName> getValues()
public void addValue(TObjectName value)
public TObjectName getFirstValue()
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