Definition at line 20 of file SqlGrantRole.java.
com.mapd.parser.extension.ddl.SqlGrantRole.SqlGrantRole |
( |
SqlParserPos |
pos, |
|
|
SqlNodeList |
roles, |
|
|
SqlNodeList |
grantees |
|
) |
| |
|
inline |
List<SqlNode> com.mapd.parser.extension.ddl.SqlGrantRole.getOperandList |
( |
| ) |
|
|
inline |
String com.mapd.parser.extension.ddl.SqlGrantRole.toString |
( |
| ) |
|
|
inline |
Definition at line 42 of file SqlGrantRole.java.
References com.mapd.parser.extension.ddl.SqlGrantRole.grantees, and com.mapd.parser.extension.ddl.SqlGrantRole.roles.
43 EscapedStringJsonBuilder jsonBuilder =
new EscapedStringJsonBuilder();
44 Map<String, Object> map = jsonBuilder.map();
46 if (this.
roles != null) {
47 List<Object> roles_list = jsonBuilder.list();
48 for (SqlNode role : this.
roles) {
49 roles_list.add(role.toString());
51 map.put(
"roles", roles_list);
55 List<Object> grantee_list = jsonBuilder.list();
56 for (SqlNode grantee : this.
grantees) {
57 grantee_list.add(grantee.toString());
59 map.put(
"grantees", grantee_list);
62 map.put(
"command",
"GRANT_ROLE");
63 Map<String, Object> payload = jsonBuilder.map();
64 payload.put(
"payload", map);
65 return jsonBuilder.toJsonString(payload);
SqlNodeList com.mapd.parser.extension.ddl.SqlGrantRole.grantees |
|
private |
final SqlOperator com.mapd.parser.extension.ddl.SqlGrantRole.OPERATOR |
|
staticprivate |
SqlNodeList com.mapd.parser.extension.ddl.SqlGrantRole.roles |
|
private |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/calcite/src/main/java/com/mapd/parser/extension/ddl/SqlGrantRole.java