OmniSciDB  0fdbebe030
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.parser.extension.ddl.SqlCreateServer.Builder Class Reference
+ Collaboration diagram for com.mapd.parser.extension.ddl.SqlCreateServer.Builder:

Public Member Functions

void setIfNotExists (final boolean ifNotExists)
 
void setServerName (final String serverName)
 
void setDataWrapper (final String dataWrapper)
 
void addOption (final String attribute, final String value)
 
void setPos (final SqlParserPos pos)
 
SqlCreateServer build ()
 

Private Member Functions

String sanitizeOptionValue (final String value)
 

Private Attributes

boolean ifNotExists
 
String serverName
 
String dataWrapper
 
Map< String, String > options
 
SqlParserPos pos
 

Detailed Description

Definition at line 23 of file SqlCreateServer.java.

Member Function Documentation

void com.mapd.parser.extension.ddl.SqlCreateServer.Builder.addOption ( final String  attribute,
final String  value 
)
inline

Definition at line 42 of file SqlCreateServer.java.

References com.mapd.parser.extension.ddl.SqlCreateServer.Builder.options, and com.mapd.parser.extension.ddl.SqlCreateServer.Builder.sanitizeOptionValue().

42  {
43  if (options == null) {
44  options = new HashMap<>();
45  }
46 
47  options.put(attribute, sanitizeOptionValue(value));
48  }

+ Here is the call graph for this function:

SqlCreateServer com.mapd.parser.extension.ddl.SqlCreateServer.Builder.build ( )
inline

Definition at line 54 of file SqlCreateServer.java.

References com.mapd.parser.extension.ddl.SqlCreateServer.Builder.dataWrapper, com.mapd.parser.extension.ddl.SqlCreateServer.Builder.ifNotExists, com.mapd.parser.extension.ddl.SqlCreateServer.Builder.options, com.mapd.parser.extension.ddl.SqlCreateServer.Builder.pos, com.mapd.parser.extension.ddl.SqlCreateServer.Builder.serverName, and com.mapd.parser.extension.ddl.SqlCreateServer.SqlCreateServer().

+ Here is the call graph for this function:

String com.mapd.parser.extension.ddl.SqlCreateServer.Builder.sanitizeOptionValue ( final String  value)
inlineprivate

Definition at line 58 of file SqlCreateServer.java.

Referenced by com.mapd.parser.extension.ddl.SqlCreateServer.Builder.addOption().

58  {
59  String sanitizedValue = value;
60  if (value.startsWith("'") && value.endsWith("'")) {
61  sanitizedValue = value.substring(1, value.length() - 1);
62  }
63  return sanitizedValue;
64  }

+ Here is the caller graph for this function:

void com.mapd.parser.extension.ddl.SqlCreateServer.Builder.setDataWrapper ( final String  dataWrapper)
inline
void com.mapd.parser.extension.ddl.SqlCreateServer.Builder.setIfNotExists ( final boolean  ifNotExists)
inline
void com.mapd.parser.extension.ddl.SqlCreateServer.Builder.setPos ( final SqlParserPos  pos)
inline
void com.mapd.parser.extension.ddl.SqlCreateServer.Builder.setServerName ( final String  serverName)
inline

Member Data Documentation

String com.mapd.parser.extension.ddl.SqlCreateServer.Builder.dataWrapper
private
boolean com.mapd.parser.extension.ddl.SqlCreateServer.Builder.ifNotExists
private
Map<String, String> com.mapd.parser.extension.ddl.SqlCreateServer.Builder.options
private
SqlParserPos com.mapd.parser.extension.ddl.SqlCreateServer.Builder.pos
private
String com.mapd.parser.extension.ddl.SqlCreateServer.Builder.serverName
private

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