OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.SqlRevokePrivilege Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.SqlRevokePrivilege:
+ Collaboration diagram for com.mapd.parser.extension.ddl.SqlRevokePrivilege:

Public Member Functions

 SqlRevokePrivilege (SqlParserPos pos, SqlNodeList privileges, String type, String target, SqlNodeList grantees)
 
List< SqlNode > getOperandList ()
 
String toString ()
 

Private Attributes

String command
 
SqlNodeList privileges
 
String type
 
String target
 
SqlNodeList grantees
 

Static Private Attributes

static final SqlOperator OPERATOR
 

Detailed Description

Definition at line 25 of file SqlRevokePrivilege.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.SqlRevokePrivilege.SqlRevokePrivilege ( SqlParserPos  pos,
SqlNodeList  privileges,
String  type,
String  target,
SqlNodeList  grantees 
)
inline

Member Function Documentation

List<SqlNode> com.mapd.parser.extension.ddl.SqlRevokePrivilege.getOperandList ( )
inline

Definition at line 54 of file SqlRevokePrivilege.java.

54  {
55  return null;
56  }
String com.mapd.parser.extension.ddl.SqlRevokePrivilege.toString ( )
inline

Definition at line 59 of file SqlRevokePrivilege.java.

References com.mapd.parser.extension.ddl.SqlRevokePrivilege.grantees, com.mapd.parser.extension.ddl.SqlRevokePrivilege.privileges, and run_benchmark_import.type.

59  {
60  EscapedStringJsonBuilder jsonBuilder = new EscapedStringJsonBuilder();
61  Map<String, Object> map = jsonBuilder.map();
62 
63  if (this.privileges != null) {
64  List<Object> privilege_list = jsonBuilder.list();
65  for (SqlNode privilege : this.privileges) {
66  privilege_list.add(privilege.toString());
67  }
68  map.put("privileges", privilege_list);
69  }
70 
71  map.put("type", this.type);
72  map.put("target", this.target);
73 
74  if (this.grantees != null) {
75  List<Object> grantee_list = jsonBuilder.list();
76  for (SqlNode grantee : this.grantees) {
77  grantee_list.add(grantee.toString());
78  }
79  map.put("grantees", grantee_list);
80  }
81 
82  map.put("command", "REVOKE_PRIVILEGE");
83  Map<String, Object> payload = jsonBuilder.map();
84  payload.put("payload", map);
85  return jsonBuilder.toJsonString(payload);
86  }

Member Data Documentation

String com.mapd.parser.extension.ddl.SqlRevokePrivilege.command
private

Definition at line 29 of file SqlRevokePrivilege.java.

SqlNodeList com.mapd.parser.extension.ddl.SqlRevokePrivilege.grantees
private
final SqlOperator com.mapd.parser.extension.ddl.SqlRevokePrivilege.OPERATOR
staticprivate
Initial value:
=
new SqlSpecialOperator("REVOKE_PRIVILEGE", SqlKind.OTHER_DDL)

Definition at line 26 of file SqlRevokePrivilege.java.

Referenced by com.mapd.parser.extension.ddl.SqlRevokePrivilege.SqlRevokePrivilege().

SqlNodeList com.mapd.parser.extension.ddl.SqlRevokePrivilege.privileges
private
String com.mapd.parser.extension.ddl.SqlRevokePrivilege.target
private
String com.mapd.parser.extension.ddl.SqlRevokePrivilege.type
private

Definition at line 33 of file SqlRevokePrivilege.java.

Referenced by generate_TableFunctionsFactory_init.Declaration.__getattr__(), generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Declaration.__repr__(), generate_TableFunctionsFactory_init.Declaration.__str__(), generate_TableFunctionsFactory_init.Token.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ComposedNode.__str__(), generate_TableFunctionsFactory_init.TypeNode.is_column_list(), generate_TableFunctionsFactory_init.TypeNode.is_cursor(), generate_TableFunctionsFactory_init.TypeNode.is_output_buffer_sizer(), generate_TableFunctionsFactory_init.PrimitiveNode.is_text_encoding_dict(), omnisci.completion_hints.ttypes.TCompletionHint.read(), omnisci.common.ttypes.TTypeInfo.read(), omnisci.serialized_result_set.ttypes.TTargetInfo.read(), omnisci.serialized_result_set.ttypes.TCountDistinctSet.read(), omnisci.thrift.ttypes.TColumnRange.read(), omnisci.thrift.ttypes.TRenderDatum.read(), omnisci.thrift.OmniSci.get_db_object_privs_args.read(), com.mapd.parser.extension.ddl.SqlRevokePrivilege.SqlRevokePrivilege(), omnisci.completion_hints.ttypes.TCompletionHint.write(), omnisci.common.ttypes.TTypeInfo.write(), omnisci.serialized_result_set.ttypes.TTargetInfo.write(), omnisci.serialized_result_set.ttypes.TCountDistinctSet.write(), omnisci.thrift.ttypes.TColumnRange.write(), omnisci.thrift.ttypes.TRenderDatum.write(), and omnisci.thrift.OmniSci.get_db_object_privs_args.write().


The documentation for this class was generated from the following file: