OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.Token Class Reference

Public Member Functions

def __init__
 
def tok_name
 
def __str__
 

Public Attributes

 type
 
 lexeme
 

Static Public Attributes

int LESS = 1
 
int GREATER = 2
 
int COMMA = 3
 
int EQUAL = 4
 
int RARROW = 5
 
int STRING = 6
 
int NUMBER = 7
 
int VBAR = 8
 
int BANG = 9
 
int LPAR = 10
 
int RPAR = 11
 
int LSQB = 12
 
int RSQB = 13
 
int IDENTIFIER = 14
 
int COLON = 15
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 400 of file generate_TableFunctionsFactory_init.py.

Constructor & Destructor Documentation

def generate_TableFunctionsFactory_init.Token.__init__ (   self,
  type,
  lexeme 
)
Parameters
----------
type : int
  One of the tokens in the list above
lexeme : str
  Corresponding string in the text

Definition at line 417 of file generate_TableFunctionsFactory_init.py.

418  def __init__(self, type, lexeme):
419  """
420  Parameters
421  ----------
422  type : int
423  One of the tokens in the list above
424  lexeme : str
425  Corresponding string in the text
426  """
427  self.type = type
428  self.lexeme = lexeme

Member Function Documentation

def generate_TableFunctionsFactory_init.Token.__str__ (   self)

Definition at line 450 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Token.lexeme, 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, generate_TableFunctionsFactory_init.Declaration.type, JoinCondition.type, heavydb.common.ttypes.TTypeInfo.type, Function::NamedArg.type, generate_TableFunctionsFactory_init.Token.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.

451  def __str__(self):
452  return 'Token(%s, "%s")' % (Token.tok_name(self.type), self.lexeme)
def generate_TableFunctionsFactory_init.Token.tok_name (   cls,
  token 
)

Definition at line 430 of file generate_TableFunctionsFactory_init.py.

431  def tok_name(cls, token):
432  names = {
433  Token.LESS: "LESS",
434  Token.GREATER: "GREATER",
435  Token.COMMA: "COMMA",
436  Token.EQUAL: "EQUAL",
437  Token.RARROW: "RARROW",
438  Token.STRING: "STRING",
439  Token.NUMBER: "NUMBER",
440  Token.VBAR: "VBAR",
441  Token.BANG: "BANG",
442  Token.LPAR: "LPAR",
443  Token.RPAR: "RPAR",
444  Token.LSQB: "LSQB",
445  Token.RSQB: "RSQB",
446  Token.IDENTIFIER: "IDENTIFIER",
447  Token.COLON: "COLON",
448  }
449  return names.get(token)

Member Data Documentation

generate_TableFunctionsFactory_init.Token.__repr__ = __str__
staticprivate

Definition at line 453 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.BANG = 9
static

Definition at line 409 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COLON = 15
static

Definition at line 415 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.COMMA = 3
static

Definition at line 403 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.EQUAL = 4
static

Definition at line 404 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.GREATER = 2
static

Definition at line 402 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.IDENTIFIER = 14
static

Definition at line 414 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LESS = 1
static

Definition at line 401 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.lexeme

Definition at line 427 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.Token.__str__().

int generate_TableFunctionsFactory_init.Token.LPAR = 10
static

Definition at line 410 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.LSQB = 12
static

Definition at line 412 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.NUMBER = 7
static

Definition at line 407 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RARROW = 5
static

Definition at line 405 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RPAR = 11
static

Definition at line 411 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.RSQB = 13
static

Definition at line 413 of file generate_TableFunctionsFactory_init.py.

int generate_TableFunctionsFactory_init.Token.STRING = 6
static

Definition at line 406 of file generate_TableFunctionsFactory_init.py.

generate_TableFunctionsFactory_init.Token.type

Definition at line 426 of file generate_TableFunctionsFactory_init.py.

Referenced by generate_TableFunctionsFactory_init.ArgNode.__iter__(), generate_TableFunctionsFactory_init.Token.__str__(), generate_TableFunctionsFactory_init.ArgNode.__str__(), generate_TableFunctionsFactory_init.ComposedNode.__str__(), generate_TableFunctionsFactory_init.PrimitiveNode.is_array_text_encoding_dict(), generate_TableFunctionsFactory_init.TypeNode.is_column(), 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().

int generate_TableFunctionsFactory_init.Token.VBAR = 8
static

Definition at line 408 of file generate_TableFunctionsFactory_init.py.


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