OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDBInfo Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDBInfo:
+ Collaboration diagram for heavydb.thrift.ttypes.TDBInfo:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 db_name
 
 db_owner
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - db_name
 - db_owner

Definition at line 1634 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDBInfo.__init__ (   self,
  db_name = None,
  db_owner = None 
)

Definition at line 1643 of file ttypes.py.

1644  def __init__(self, db_name=None, db_owner=None,):
1645  self.db_name = db_name
1646  self.db_owner = db_owner

Member Function Documentation

def heavydb.thrift.ttypes.TDBInfo.__eq__ (   self,
  other 
)

Definition at line 1695 of file ttypes.py.

1696  def __eq__(self, other):
1697  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDBInfo.__ne__ (   self,
  other 
)

Definition at line 1698 of file ttypes.py.

1699  def __ne__(self, other):
1700  return not (self == other)
1701 
def heavydb.thrift.ttypes.TDBInfo.__repr__ (   self)

Definition at line 1690 of file ttypes.py.

1691  def __repr__(self):
1692  L = ['%s=%r' % (key, value)
1693  for key, value in self.__dict__.items()]
1694  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def heavydb.thrift.ttypes.TDBInfo.read (   self,
  iprot 
)

Definition at line 1647 of file ttypes.py.

References AlterTableAlterColumnCommandRecoveryMgr::RecoveryParamFilepathInfo.db_name, create_table.SyntheticTable.db_name, ai.heavy.jdbc.Options.db_name, heavydb.thrift.ttypes.TDBInfo.db_name, and heavydb.thrift.ttypes.TDBInfo.db_owner.

1648  def read(self, iprot):
1649  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1650  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1651  return
1652  iprot.readStructBegin()
1653  while True:
1654  (fname, ftype, fid) = iprot.readFieldBegin()
1655  if ftype == TType.STOP:
1656  break
1657  if fid == 1:
1658  if ftype == TType.STRING:
1659  self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1660  else:
1661  iprot.skip(ftype)
1662  elif fid == 2:
1663  if ftype == TType.STRING:
1664  self.db_owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1665  else:
1666  iprot.skip(ftype)
1667  else:
1668  iprot.skip(ftype)
1669  iprot.readFieldEnd()
1670  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDBInfo.validate (   self)

Definition at line 1687 of file ttypes.py.

1688  def validate(self):
1689  return
def heavydb.thrift.ttypes.TDBInfo.write (   self,
  oprot 
)

Definition at line 1671 of file ttypes.py.

References AlterTableAlterColumnCommandRecoveryMgr::RecoveryParamFilepathInfo.db_name, create_table.SyntheticTable.db_name, ai.heavy.jdbc.Options.db_name, heavydb.thrift.ttypes.TDBInfo.db_name, and heavydb.thrift.ttypes.TDBInfo.db_owner.

1672  def write(self, oprot):
1673  if oprot._fast_encode is not None and self.thrift_spec is not None:
1674  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1675  return
1676  oprot.writeStructBegin('TDBInfo')
1677  if self.db_name is not None:
1678  oprot.writeFieldBegin('db_name', TType.STRING, 1)
1679  oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
1680  oprot.writeFieldEnd()
1681  if self.db_owner is not None:
1682  oprot.writeFieldBegin('db_owner', TType.STRING, 2)
1683  oprot.writeString(self.db_owner.encode('utf-8') if sys.version_info[0] == 2 else self.db_owner)
1684  oprot.writeFieldEnd()
1685  oprot.writeFieldStop()
1686  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBInfo.__dict__
private

Definition at line 1696 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDBInfo.db_name

Definition at line 1644 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBInfo.read(), heavydb.thrift.ttypes.TQueryInfo.read(), heavydb.thrift.ttypes.TDBInfo.write(), and heavydb.thrift.ttypes.TQueryInfo.write().

heavydb.thrift.ttypes.TDBInfo.db_owner

Definition at line 1645 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBInfo.read(), and heavydb.thrift.ttypes.TDBInfo.write().


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