OmniSciDB  6686921089
 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 __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 120 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 127 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, ConverterCreateParameter.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, foreign_storage::UserMapping.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, omnisci.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.type, omnisci.common.ttypes.TTypeInfo.type, Function::NamedArg.type, omnisci.serialized_result_set.ttypes.TTargetInfo.type, omnisci.serialized_result_set.ttypes.TCountDistinctSet.type, omnisci.thrift.ttypes.TColumnRange.type, omnisci.thrift.ttypes.TRenderDatum.type, and omnisci.thrift.OmniSci.get_db_object_privs_args.type.

128  def __repr__(self):
129  return 'Declaration(%r, %r)' % (self.type, self.annotations)
def generate_TableFunctionsFactory_init.Declaration.__str__ (   self)

Definition at line 130 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Declaration.annotations, omnisci.extension_functions.ttypes.TUserDefinedTableFunction.annotations, join(), com.mapd.parser.extension.ddl.omnisql.OmniSqlEncoding.type, com.mapd.parser.extension.ddl.omnisql.OmniSqlDataType.type, com.omnisci.jdbc.OmniSciArray.type, com.mapd.utility.db_vendors.Db_vendor_types.GisType.type, com.omnisci.jdbc.OmniSciColumnTypeTest.Answer.type, com.mapd.parser.extension.ddl.SqlValidateSystem.type, ConverterCreateParameter.type, com.mapd.parser.extension.ddl.SqlGrantPrivilege.type, com.mapd.parser.extension.ddl.SqlRevokePrivilege.type, foreign_storage::UserMapping.type, omnisci.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, JoinCondition.type, generate_TableFunctionsFactory_init.Declaration.type, omnisci.common.ttypes.TTypeInfo.type, Function::NamedArg.type, omnisci.serialized_result_set.ttypes.TTargetInfo.type, omnisci.serialized_result_set.ttypes.TCountDistinctSet.type, omnisci.thrift.ttypes.TColumnRange.type, omnisci.thrift.ttypes.TRenderDatum.type, and omnisci.thrift.OmniSci.get_db_object_privs_args.type.

131  def __str__(self):
132  if not self.annotations:
133  return str(self.type)
134  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 138 of file generate_TableFunctionsFactory_init.py.

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

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

Definition at line 141 of file generate_TableFunctionsFactory_init.py.

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

142  def apply_namespace(self, ns='ExtArgumentType'):
143  return self.__class__(self.type.apply_namespace(ns), self.annotations)
def generate_TableFunctionsFactory_init.Declaration.format_cpp_type (   self,
  idx 
)

Definition at line 147 of file generate_TableFunctionsFactory_init.py.

148  def format_cpp_type(self, idx):
149  return self.type.format_cpp_type(idx)
def generate_TableFunctionsFactory_init.Declaration.get_cpp_type (   self)

Definition at line 144 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Bracket.format_cpp_type().

145  def get_cpp_type(self):
146  return self.type.get_cpp_type()

+ Here is the caller graph for this function:

def generate_TableFunctionsFactory_init.Declaration.tostring (   self)

Definition at line 135 of file generate_TableFunctionsFactory_init.py.

136  def tostring(self):
137  return self.type.tostring()

Member Data Documentation

generate_TableFunctionsFactory_init.Declaration.annotations

Definition at line 125 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(), and generate_TableFunctionsFactory_init.ArgNode.get_annotation().

generate_TableFunctionsFactory_init.Declaration.type

Definition at line 124 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: