OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.Declaration Class Reference

Public Member Functions

def __init__
 
def name
 
def args
 
def format_sizer
 
def __repr__
 
def __str__
 
def tostring
 
def apply_column
 
def apply_namespace
 
def get_cpp_type
 
def format_cpp_type
 
def __getattr__
 

Public Attributes

 type
 
 annotations
 

Detailed Description

Holds a `TYPE | ANNOTATIONS`-like structure.

Definition at line 124 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

def generate_TableFunctionsFactory_init.Declaration.__init__ (   self,
  type,
  annotations = [] 
)

Member Function Documentation

def generate_TableFunctionsFactory_init.Declaration.__getattr__ (   self,
  name 
)
def generate_TableFunctionsFactory_init.Declaration.__repr__ (   self)

Definition at line 142 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.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, generate_TableFunctionsFactory_init.Declaration.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.

143  def __repr__(self):
144  return 'Declaration(%r, ann=%r)' % (self.type, self.annotations)
def generate_TableFunctionsFactory_init.Declaration.__str__ (   self)

Definition at line 145 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, join(), com.mapd.parser.extension.ddl.heavysql.HeavySqlEncoding.type, com.mapd.parser.extension.ddl.heavysql.HeavySqlDataType.type, ai.heavy.jdbc.HeavyAIArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, ai.heavy.jdbc.HeavyAIColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.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, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.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.

146  def __str__(self):
147  if not self.annotations:
148  return str(self.type)
149  return '%s | %s' % (self.type, ' | '.join(map(str, self.annotations)))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def generate_TableFunctionsFactory_init.Declaration.apply_column (   self)

Definition at line 153 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations.

154  def apply_column(self):
155  return self.__class__(self.type.apply_column(), self.annotations)
def generate_TableFunctionsFactory_init.Declaration.apply_namespace (   self,
  ns = 'ExtArgumentType' 
)

Definition at line 156 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations.

157  def apply_namespace(self, ns='ExtArgumentType'):
158  return self.__class__(self.type.apply_namespace(ns), self.annotations)
def generate_TableFunctionsFactory_init.Declaration.args (   self)

Definition at line 136 of file generate_TableFunctionsFactory_init.py.

137  def args(self):
138  return self.type.args
def generate_TableFunctionsFactory_init.Declaration.format_cpp_type (   self,
  idx,
  use_generic_arg_name = False,
  is_input = True 
)

Definition at line 162 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, and heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations.

163  def format_cpp_type(self, idx, use_generic_arg_name=False, is_input=True):
164  real_arg_name = dict(self.annotations).get('name', None)
165  return self.type.format_cpp_type(idx,
166  use_generic_arg_name=use_generic_arg_name,
167  real_arg_name=real_arg_name,
168  is_input=is_input)
def generate_TableFunctionsFactory_init.Declaration.format_sizer (   self)

Definition at line 139 of file generate_TableFunctionsFactory_init.py.

140  def format_sizer(self):
141  return self.type.format_sizer()
def generate_TableFunctionsFactory_init.Declaration.get_cpp_type (   self)

Definition at line 159 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Bracket.format_cpp_type().

160  def get_cpp_type(self):
161  return self.type.get_cpp_type()

+ Here is the caller graph for this function:

def generate_TableFunctionsFactory_init.Declaration.name (   self)

Definition at line 132 of file generate_TableFunctionsFactory_init.py.

133  def name(self):
134  return self.type.name
def generate_TableFunctionsFactory_init.Declaration.tostring (   self)

Definition at line 150 of file generate_TableFunctionsFactory_init.py.

151  def tostring(self):
152  return self.type.tostring()

Member Data Documentation

generate_TableFunctionsFactory_init.Declaration.annotations

Definition at line 129 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.UdtfNode.__iter__(), generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Declaration.__repr__(), generate_TableFunctionsFactory_init.Declaration.__str__(), generate_TableFunctionsFactory_init.UdtfNode.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.Declaration.apply_column(), generate_TableFunctionsFactory_init.Declaration.apply_namespace(), generate_TableFunctionsFactory_init.Declaration.format_cpp_type(), and generate_TableFunctionsFactory_init.ArgNode.get_annotation().

generate_TableFunctionsFactory_init.Declaration.type

Definition at line 128 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Declaration.__getattr__(), generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Declaration.__repr__(), generate_TableFunctionsFactory_init.Declaration.__str__(), generate_TableFunctionsFactory_init.Token.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ComposedNode.__str__(), generate_TableFunctionsFactory_init.TypeNode.is_column_list(), generate_TableFunctionsFactory_init.TypeNode.is_cursor(), generate_TableFunctionsFactory_init.TypeNode.is_output_buffer_sizer(), and generate_TableFunctionsFactory_init.PrimitiveNode.is_text_encoding_dict().


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