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

Static Public Member Functions

static void add (HeavyDBOptionsMap map, String key, SqlNode value)
 

Detailed Description

Definition at line 10 of file HeavyDBOptionsMap.java.

Member Function Documentation

static void com.mapd.parser.extension.ddl.heavydb.HeavyDBOptionsMap.add ( HeavyDBOptionsMap  map,
String  key,
SqlNode  value 
)
inlinestatic

Definition at line 11 of file HeavyDBOptionsMap.java.

11  {
12  if (value instanceof SqlLiteral) {
13  SqlLiteral literalValue = (SqlLiteral) value;
14  if (SqlTypeName.STRING_TYPES.contains(literalValue.getTypeName())) {
15  map.put(key, ((SqlLiteral) value).getValueAs(String.class));
16  } else {
17  map.put(key, ((SqlLiteral) value).getValue());
18  }
19  } else {
20  throw new CalciteException("Unsupported with value type for value : `"
21  + value.toString() + "` (option : `" + key + "`)",
22  null);
23  }
24  }

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