OmniSciDB  a987f07e93
 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 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.PrimitiveNode.is_array_text_encoding_dict(), generate_TableFunctionsFactory_init.TypeNode.is_column(), 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(), 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: