OmniSciDB  a5dc49c757
 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

SqlNodeList privileges
 
String type
 
String target
 
SqlNodeList grantees
 

Static Private Attributes

static final SqlOperator OPERATOR
 

Detailed Description

Definition at line 21 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 48 of file SqlRevokePrivilege.java.

48  {
49  return null;
50  }
String com.mapd.parser.extension.ddl.SqlRevokePrivilege.toString ( )
inline

Definition at line 53 of file SqlRevokePrivilege.java.

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

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

Member Data Documentation

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 22 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 28 of file SqlRevokePrivilege.java.

Referenced by TableFunctionsFactory_node.PrimitiveNode.__eq__(), TableFunctionsFactory_declbracket.Declaration.__getattr__(), TableFunctionsFactory_node.ArgNode.__iter__(), TableFunctionsFactory_declbracket.Declaration.__repr__(), TableFunctionsFactory_declbracket.Declaration.__str__(), TableFunctionsFactory_parser.Token.__str__(), TableFunctionsFactory_node.TypeNode.is_array_text_encoding_dict(), TableFunctionsFactory_node.TypeNode.is_column(), TableFunctionsFactory_node.TypeNode.is_column_list(), TableFunctionsFactory_node.TypeNode.is_cursor(), TableFunctionsFactory_node.TypeNode.is_output_buffer_sizer(), TableFunctionsFactory_node.TypeNode.is_string_scalar(), TableFunctionsFactory_node.TypeNode.is_text_encoding_dict(), heavydb.completion_hints.ttypes.TCompletionHint.read(), heavydb.common.ttypes.TTypeInfo.read(), heavydb.serialized_result_set.ttypes.TTargetInfo.read(), heavydb.serialized_result_set.ttypes.TCountDistinctSet.read(), heavydb.thrift.ttypes.TColumnRange.read(), heavydb.thrift.ttypes.TRenderDatum.read(), heavydb.thrift.Heavy.get_db_object_privs_args.read(), com.mapd.parser.extension.ddl.SqlRevokePrivilege.SqlRevokePrivilege(), heavydb.completion_hints.ttypes.TCompletionHint.write(), heavydb.common.ttypes.TTypeInfo.write(), heavydb.serialized_result_set.ttypes.TTargetInfo.write(), heavydb.serialized_result_set.ttypes.TCountDistinctSet.write(), heavydb.thrift.ttypes.TColumnRange.write(), heavydb.thrift.ttypes.TRenderDatum.write(), and heavydb.thrift.Heavy.get_db_object_privs_args.write().


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