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

Public Member Functions

 SqlDropPolicy (final SqlParserPos pos, final List< String > columnName, final SqlIdentifier granteeName)
 
List< SqlNode > getOperandList ()
 
String toString ()
 
String toJsonString ()
 

Private Attributes

String command
 
List< String > columnName
 
SqlIdentifier granteeName
 

Static Private Attributes

static final SqlOperator OPERATOR
 

Detailed Description

Class that encapsulates all information associated with a DROP TABLE DDL command.

Definition at line 21 of file SqlDropPolicy.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.SqlDropPolicy.SqlDropPolicy ( final SqlParserPos  pos,
final List< String >  columnName,
final SqlIdentifier  granteeName 
)
inline

Definition at line 32 of file SqlDropPolicy.java.

References com.mapd.parser.extension.ddl.SqlDropPolicy.columnName, com.mapd.parser.extension.ddl.SqlDropPolicy.granteeName, and com.mapd.parser.extension.ddl.SqlDropPolicy.OPERATOR.

34  {
35  super(OPERATOR, pos, /*ifExists=*/false);
36  this.command = OPERATOR.getName();
37  this.columnName = columnName;
38  this.granteeName = granteeName;
39  }

Member Function Documentation

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

Definition at line 42 of file SqlDropPolicy.java.

42  {
43  return null;
44  }
String com.mapd.parser.extension.ddl.SqlDropPolicy.toJsonString ( )
inline

Implements com.mapd.parser.extension.ddl.JsonSerializableDdl.

Definition at line 52 of file SqlDropPolicy.java.

Referenced by com.mapd.parser.extension.ddl.SqlDropPolicy.toString().

52  {
53  JsonBuilder jsonBuilder = new EscapedStringJsonBuilder();
54  Map<String, Object> map = jsonBuilder.map();
55 
56  map.put("command", this.command);
57  map.put("columnName", this.columnName);
58  map.put("granteeName", this.granteeName.toString());
59 
60  Map<String, Object> payload = jsonBuilder.map();
61  payload.put("payload", map);
62 
63  // To Debug:
64  // System.out.println(jsonBuilder.toJsonString(payload))
65 
66  return jsonBuilder.toJsonString(payload);
67  }

+ Here is the caller graph for this function:

String com.mapd.parser.extension.ddl.SqlDropPolicy.toString ( )
inline

Definition at line 47 of file SqlDropPolicy.java.

References com.mapd.parser.extension.ddl.SqlDropPolicy.toJsonString().

47  {
48  return toJsonString();
49  }

+ Here is the call graph for this function:

Member Data Documentation

List<String> com.mapd.parser.extension.ddl.SqlDropPolicy.columnName
private
String com.mapd.parser.extension.ddl.SqlDropPolicy.command
private

Definition at line 26 of file SqlDropPolicy.java.

final SqlOperator com.mapd.parser.extension.ddl.SqlDropPolicy.OPERATOR
staticprivate
Initial value:
=
new SqlSpecialOperator("DROP_POLICY", SqlKind.OTHER_DDL)

Definition at line 22 of file SqlDropPolicy.java.

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


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