OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.dtypes.DataType Class Reference

Public Member Functions

def __init__
 
def __eq__
 
def __ne__
 
def __hash__
 

Private Attributes

 _matches
 

Detailed Description

Definition at line 11 of file dtypes.py.

Constructor & Destructor Documentation

def heavydb.dtypes.DataType.__init__ (   self,
  matches 
)

Definition at line 12 of file dtypes.py.

12 
13  def __init__(self, matches):
14  self._matches = set(matches)

Member Function Documentation

def heavydb.dtypes.DataType.__eq__ (   self,
  other 
)

Definition at line 15 of file dtypes.py.

References heavydb.dtypes.DataType._matches.

15 
16  def __eq__(self, other):
17  return other in self._matches
def heavydb.dtypes.DataType.__hash__ (   self)

Definition at line 21 of file dtypes.py.

References heavydb.dtypes.DataType._matches.

21 
22  def __hash__(self):
23  return hash(tuple(self._matches))
24 
def heavydb.dtypes.DataType.__ne__ (   self,
  other 
)

Definition at line 18 of file dtypes.py.

18 
19  def __ne__(self, other):
20  return not (self == other)

Member Data Documentation

heavydb.dtypes.DataType._matches
private

Definition at line 13 of file dtypes.py.

Referenced by heavydb.dtypes.DataType.__eq__(), and heavydb.dtypes.DataType.__hash__().


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