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

Public Member Functions

void addOption (final String attribute, final String value)
 

Protected Attributes

Map< String, String > options
 

Private Member Functions

String sanitizeOptionValue (final String value)
 

Detailed Description

Definition at line 6 of file SqlOptionsBuilder.java.

Member Function Documentation

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

Definition at line 9 of file SqlOptionsBuilder.java.

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

9  {
10  if (options == null) {
11  options = new HashMap<>();
12  }
13 
14  options.put(attribute, sanitizeOptionValue(value));
15  }

+ Here is the call graph for this function:

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

Definition at line 17 of file SqlOptionsBuilder.java.

Referenced by com.mapd.parser.extension.ddl.SqlOptionsBuilder.addOption().

17  {
18  String sanitizedValue = value;
19  if (value.startsWith("'") && value.endsWith("'")) {
20  sanitizedValue = value.substring(1, value.length() - 1);
21  }
22  return sanitizedValue;
23  }

+ Here is the caller graph for this function:

Member Data Documentation

Map<String, String> com.mapd.parser.extension.ddl.SqlOptionsBuilder.options
protected

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