OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_parser.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
 
int BOOLEAN = 16
 

Static Private Attributes

 __repr__ = __str__
 

Detailed Description

Definition at line 21 of file TableFunctionsFactory_parser.py.

Constructor & Destructor Documentation

def TableFunctionsFactory_parser.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 39 of file TableFunctionsFactory_parser.py.

39 
40  def __init__(self, type, lexeme):
41  """
42  Parameters
43  ----------
44  type : int
45  One of the tokens in the list above
46  lexeme : str
47  Corresponding string in the text
48  """
49  self.type = type
50  self.lexeme = lexeme

Member Function Documentation

def TableFunctionsFactory_parser.Token.__str__ (   self)

Definition at line 73 of file TableFunctionsFactory_parser.py.

References TableFunctionsFactory_parser.Token.lexeme, 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, TableFunctionsFactory_parser.Token.type, heavydb.completion_hints.ttypes.TCompletionHint.type, ColumnLazyFetchInfo.type, TableFunctionsFactory_node.ArgNode.type, TableFunctionsFactory_node.TypeNode.type, JoinCondition.type, TableFunctionsFactory_node.PrimitiveNode.type, TableFunctionsFactory_node.ComposedNode.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.

73 
74  def __str__(self):
75  return 'Token(%s, "%s")' % (Token.tok_name(self.type), self.lexeme)
def TableFunctionsFactory_parser.Token.tok_name (   cls,
  token 
)

Definition at line 52 of file TableFunctionsFactory_parser.py.

52 
53  def tok_name(cls, token):
54  names = {
55  Token.LESS: "LESS",
56  Token.GREATER: "GREATER",
57  Token.COMMA: "COMMA",
58  Token.EQUAL: "EQUAL",
59  Token.RARROW: "RARROW",
60  Token.STRING: "STRING",
61  Token.NUMBER: "NUMBER",
62  Token.VBAR: "VBAR",
63  Token.BANG: "BANG",
64  Token.LPAR: "LPAR",
65  Token.RPAR: "RPAR",
66  Token.LSQB: "LSQB",
67  Token.RSQB: "RSQB",
68  Token.IDENTIFIER: "IDENTIFIER",
69  Token.COLON: "COLON",
70  Token.BOOLEAN: "BOOLEAN"
71  }
72  return names.get(token)

Member Data Documentation

TableFunctionsFactory_parser.Token.__repr__ = __str__
staticprivate

Definition at line 76 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.BANG = 9
static

Definition at line 30 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.BOOLEAN = 16
static

Definition at line 37 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.COLON = 15
static

Definition at line 36 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.COMMA = 3
static

Definition at line 24 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.EQUAL = 4
static

Definition at line 25 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.GREATER = 2
static

Definition at line 23 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.IDENTIFIER = 14
static

Definition at line 35 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.LESS = 1
static

Definition at line 22 of file TableFunctionsFactory_parser.py.

TableFunctionsFactory_parser.Token.lexeme

Definition at line 49 of file TableFunctionsFactory_parser.py.

Referenced by TableFunctionsFactory_parser.Token.__str__().

int TableFunctionsFactory_parser.Token.LPAR = 10
static

Definition at line 31 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.LSQB = 12
static

Definition at line 33 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.NUMBER = 7
static

Definition at line 28 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.RARROW = 5
static

Definition at line 26 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.RPAR = 11
static

Definition at line 32 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.RSQB = 13
static

Definition at line 34 of file TableFunctionsFactory_parser.py.

int TableFunctionsFactory_parser.Token.STRING = 6
static

Definition at line 27 of file TableFunctionsFactory_parser.py.

TableFunctionsFactory_parser.Token.type

Definition at line 48 of file TableFunctionsFactory_parser.py.

Referenced by TableFunctionsFactory_parser.Token.__str__().

int TableFunctionsFactory_parser.Token.VBAR = 8
static

Definition at line 29 of file TableFunctionsFactory_parser.py.


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