1 package com.mapd.parser.extension.ddl;
3 import com.google.gson.annotations.Expose;
5 import org.apache.calcite.sql.SqlCreate;
6 import org.apache.calcite.sql.SqlKind;
7 import org.apache.calcite.sql.SqlNode;
9 import org.apache.calcite.sql.SqlSpecialOperator;
10 import org.apache.calcite.sql.parser.SqlParserPos;
12 import java.util.List;
20 new SqlSpecialOperator(
"CREATE_USER_MAPPING", SqlKind.OTHER_DDL);
26 private SqlParserPos
pos;
63 final String dataWrapper,
64 final Map<String, String>
options) {
65 super(
OPERATOR, pos,
false, ifNotExists);
68 this.command = OPERATOR.getName();
69 this.user = dataWrapper;
default String toJsonString()
void setIfNotExists(final boolean ifNotExists)
SqlCreateUserMapping build()
List< SqlNode > getOperandList()
void setPos(final SqlParserPos pos)
static final SqlOperator OPERATOR
SqlCreateUserMapping(final SqlParserPos pos, final boolean ifNotExists, final String serverName, final String dataWrapper, final Map< String, String > options)
void setServerName(final String serverName)
Map< String, String > options
void setUser(final String user)