OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_node.TypeNode Class Reference
+ Inheritance diagram for TableFunctionsFactory_node.TypeNode:
+ Collaboration diagram for TableFunctionsFactory_node.TypeNode:

Public Member Functions

def is_array
 
def is_column_any
 
def is_column
 
def is_column_list
 
def is_cursor
 
def is_output_buffer_sizer
 
def is_text_encoding_dict
 
def is_array_text_encoding_dict
 
def is_integer_scalar
 
def is_float_scalar
 
def is_boolean_scalar
 
def is_string_scalar
 
def is_scalar
 
- Public Member Functions inherited from TableFunctionsFactory_node.Node
def accept
 
def get_parent
 
def copy
 

Public Attributes

 type
 

Detailed Description

Definition at line 135 of file TableFunctionsFactory_node.py.

Member Function Documentation

def TableFunctionsFactory_node.TypeNode.is_array (   self)

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_array_text_encoding_dict (   self)
def TableFunctionsFactory_node.TypeNode.is_boolean_scalar (   self)

Definition at line 167 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.TypeNode.is_scalar().

168  def is_boolean_scalar(self):
169  return self.type.lower() == 'bool'

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_column (   self)

Definition at line 142 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

Referenced by TableFunctionsFactory_node.TypeNode.is_column_any(), TableFunctionsFactory_node.ComposedNode.is_column_array_text_encoding_dict(), TableFunctionsFactory_node.ComposedNode.is_column_of(), and TableFunctionsFactory_node.ComposedNode.is_column_text_encoding_dict().

143  def is_column(self):
144  return self.type == "Column"

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_column_any (   self)

Definition at line 139 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Bracket.is_column(), TableFunctionsFactory_node.TypeNode.is_column(), TableFunctionsFactory_declbracket.Bracket.is_column_list(), and TableFunctionsFactory_node.TypeNode.is_column_list().

140  def is_column_any(self):
141  return self.is_column() or self.is_column_list()

+ Here is the call graph for this function:

def TableFunctionsFactory_node.TypeNode.is_column_list (   self)

Definition at line 145 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

Referenced by TableFunctionsFactory_node.TypeNode.is_column_any(), TableFunctionsFactory_node.ComposedNode.is_column_list_of(), and TableFunctionsFactory_node.ComposedNode.is_column_list_text_encoding_dict().

146  def is_column_list(self):
147  return self.type == "ColumnList"

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_cursor (   self)

Definition at line 148 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

Referenced by TableFunctionsFactory_node.ComposedNode.cursor_length().

149  def is_cursor(self):
150  return self.type == "Cursor"

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_float_scalar (   self)

Definition at line 164 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.TypeNode.is_scalar().

165  def is_float_scalar(self):
166  return self.type.lower() in ('float', 'double')

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_integer_scalar (   self)

Definition at line 161 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.TypeNode.is_scalar().

162  def is_integer_scalar(self):
163  return self.type.lower() in ('int8_t', 'int16_t', 'int32_t', 'int64_t')

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_output_buffer_sizer (   self)

Definition at line 151 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

152  def is_output_buffer_sizer(self):
153  t = self.type
154  return util.translate_map.get(t, t) in util.OutputBufferSizeTypes
def TableFunctionsFactory_node.TypeNode.is_scalar (   self)

Definition at line 174 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_node.TypeNode.is_boolean_scalar(), TableFunctionsFactory_node.TypeNode.is_float_scalar(), TableFunctionsFactory_node.TypeNode.is_integer_scalar(), and TableFunctionsFactory_node.TypeNode.is_string_scalar().

175  def is_scalar(self):
176  return self.is_integer_scalar() or self.is_float_scalar() or self.is_boolean_scalar() or self.is_string_scalar()
177 

+ Here is the call graph for this function:

def TableFunctionsFactory_node.TypeNode.is_string_scalar (   self)

Definition at line 170 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

Referenced by TableFunctionsFactory_node.TypeNode.is_scalar().

171  def is_string_scalar(self):
172  # we only support 'TextEncodingNone' string scalars atm
173  return self.type == "TextEncodingNone"

+ Here is the caller graph for this function:

def TableFunctionsFactory_node.TypeNode.is_text_encoding_dict (   self)

Definition at line 155 of file TableFunctionsFactory_node.py.

References TableFunctionsFactory_declbracket.Declaration.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, ConverterCreateParameter.type, foreign_storage::UserMapping.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, heavydb.serialized_result_set.ttypes.TTargetInfo.type, heavydb.serialized_result_set.ttypes.TCountDistinctSet.type, heavydb.thrift.ttypes.TColumnRange.type, heavydb.thrift.ttypes.TRenderDatum.type, and heavydb.thrift.Heavy.get_db_object_privs_args.type.

156  def is_text_encoding_dict(self):
157  return self.type == 'TextEncodingDict'

Member Data Documentation

TableFunctionsFactory_node.TypeNode.type

Definition at line 137 of file TableFunctionsFactory_node.py.

Referenced by TableFunctionsFactory_node.PrimitiveNode.__eq__(), TableFunctionsFactory_parser.Token.__str__(), TableFunctionsFactory_node.TypeNode.is_array_text_encoding_dict(), TableFunctionsFactory_node.TypeNode.is_column(), TableFunctionsFactory_node.TypeNode.is_column_list(), TableFunctionsFactory_node.TypeNode.is_cursor(), TableFunctionsFactory_node.TypeNode.is_output_buffer_sizer(), TableFunctionsFactory_node.TypeNode.is_string_scalar(), and TableFunctionsFactory_node.TypeNode.is_text_encoding_dict().


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