OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_declbracket.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 4 of file TableFunctionsFactory_declbracket.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 22 of file TableFunctionsFactory_declbracket.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, com.mapd.parser.server.ExtensionFunction.annotations, 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, 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.

22 
23  def __repr__(self):
24  return 'Declaration(%r, ann=%r)' % (self.type, self.annotations)
def TableFunctionsFactory_declbracket.Declaration.__str__ (   self)

Definition at line 25 of file TableFunctionsFactory_declbracket.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, com.mapd.parser.server.ExtensionFunction.annotations, join(), 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, 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.

25 
26  def __str__(self):
27  if not self.annotations:
28  return str(self.type)
29  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 TableFunctionsFactory_declbracket.Declaration.apply_column (   self)

Definition at line 33 of file TableFunctionsFactory_declbracket.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, and com.mapd.parser.server.ExtensionFunction.annotations.

33 
34  def apply_column(self):
35  return self.__class__(self.type.apply_column(), self.annotations)
def TableFunctionsFactory_declbracket.Declaration.apply_namespace (   self,
  ns = 'ExtArgumentType' 
)

Definition at line 36 of file TableFunctionsFactory_declbracket.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, and com.mapd.parser.server.ExtensionFunction.annotations.

36 
37  def apply_namespace(self, ns='ExtArgumentType'):
38  return self.__class__(self.type.apply_namespace(ns), self.annotations)
def TableFunctionsFactory_declbracket.Declaration.args (   self)

Definition at line 16 of file TableFunctionsFactory_declbracket.py.

16 
17  def args(self):
18  return self.type.args
def TableFunctionsFactory_declbracket.Declaration.format_cpp_type (   self,
  idx,
  use_generic_arg_name = False,
  is_input = True 
)

Definition at line 42 of file TableFunctionsFactory_declbracket.py.

References TableFunctionsFactory_declbracket.Declaration.annotations, heavydb.extension_functions.ttypes.TUserDefinedFunction.annotations, heavydb.extension_functions.ttypes.TUserDefinedTableFunction.annotations, and com.mapd.parser.server.ExtensionFunction.annotations.

42 
43  def format_cpp_type(self, idx, use_generic_arg_name=False, is_input=True):
44  real_arg_name = dict(self.annotations).get('name', None)
45  return self.type.format_cpp_type(idx,
46  use_generic_arg_name=use_generic_arg_name,
47  real_arg_name=real_arg_name,
48  is_input=is_input)
def TableFunctionsFactory_declbracket.Declaration.format_sizer (   self)

Definition at line 19 of file TableFunctionsFactory_declbracket.py.

19 
20  def format_sizer(self):
21  return self.type.format_sizer()
def TableFunctionsFactory_declbracket.Declaration.get_cpp_type (   self)

Definition at line 39 of file TableFunctionsFactory_declbracket.py.

Referenced by TableFunctionsFactory_declbracket.Bracket.format_cpp_type().

39 
40  def get_cpp_type(self):
41  return self.type.get_cpp_type()

+ Here is the caller graph for this function:

def TableFunctionsFactory_declbracket.Declaration.name (   self)

Definition at line 12 of file TableFunctionsFactory_declbracket.py.

12 
13  def name(self):
14  return self.type.name
def TableFunctionsFactory_declbracket.Declaration.tostring (   self)

Definition at line 30 of file TableFunctionsFactory_declbracket.py.

30 
31  def tostring(self):
32  return self.type.tostring()

Member Data Documentation

TableFunctionsFactory_declbracket.Declaration.annotations

Definition at line 9 of file TableFunctionsFactory_declbracket.py.

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

TableFunctionsFactory_declbracket.Declaration.type

Definition at line 8 of file TableFunctionsFactory_declbracket.py.

Referenced by TableFunctionsFactory_node.PrimitiveNode.__eq__(), TableFunctionsFactory_declbracket.Declaration.__getattr__(), TableFunctionsFactory_node.ArgNode.__iter__(), TableFunctionsFactory_declbracket.Declaration.__repr__(), TableFunctionsFactory_declbracket.Declaration.__str__(), 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: