Definition at line 19 of file SqlRevokeRole.java.
com.mapd.parser.extension.ddl.SqlRevokeRole.SqlRevokeRole |
( |
SqlParserPos |
pos, |
|
|
SqlNodeList |
roles, |
|
|
SqlNodeList |
grantees |
|
) |
| |
|
inline |
List<SqlNode> com.mapd.parser.extension.ddl.SqlRevokeRole.getOperandList |
( |
| ) |
|
|
inline |
String com.mapd.parser.extension.ddl.SqlRevokeRole.toString |
( |
| ) |
|
|
inline |
Definition at line 41 of file SqlRevokeRole.java.
References com.mapd.parser.extension.ddl.SqlRevokeRole.grantees, and com.mapd.parser.extension.ddl.SqlRevokeRole.roles.
42 EscapedStringJsonBuilder jsonBuilder =
new EscapedStringJsonBuilder();
43 Map<String, Object> map = jsonBuilder.map();
45 if (this.
roles != null) {
46 List<Object> roles_list = jsonBuilder.list();
47 for (SqlNode role : this.
roles) {
48 roles_list.add(role.toString());
50 map.put(
"roles", roles_list);
54 List<Object> grantee_list = jsonBuilder.list();
55 for (SqlNode grantee : this.
grantees) {
56 grantee_list.add(grantee.toString());
58 map.put(
"grantees", grantee_list);
61 map.put(
"command",
"REVOKE_ROLE");
62 Map<String, Object> payload = jsonBuilder.map();
63 payload.put(
"payload", map);
64 return jsonBuilder.toJsonString(payload);
SqlNodeList com.mapd.parser.extension.ddl.SqlRevokeRole.grantees |
|
private |
final SqlOperator com.mapd.parser.extension.ddl.SqlRevokeRole.OPERATOR |
|
staticprivate |
SqlNodeList com.mapd.parser.extension.ddl.SqlRevokeRole.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/SqlRevokeRole.java