OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.parser.extension.ddl.omnisci.OmniSciOptionsMap Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.omnisci.OmniSciOptionsMap:
+ Collaboration diagram for com.mapd.parser.extension.ddl.omnisci.OmniSciOptionsMap:

Static Public Member Functions

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

Detailed Description

Definition at line 10 of file OmniSciOptionsMap.java.

Member Function Documentation

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

Definition at line 11 of file OmniSciOptionsMap.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: