OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.Heavy.connect_args Class Reference
+ Inheritance diagram for heavydb.thrift.Heavy.connect_args:
+ Collaboration diagram for heavydb.thrift.Heavy.connect_args:

Public Member Functions

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

Public Attributes

 user
 
 passwd
 
 dbname
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - user
 - passwd
 - dbname

Definition at line 7662 of file Heavy.py.

Constructor & Destructor Documentation

def heavydb.thrift.Heavy.connect_args.__init__ (   self,
  user = None,
  passwd = None,
  dbname = None 
)

Definition at line 7672 of file Heavy.py.

7673  def __init__(self, user=None, passwd=None, dbname=None,):
7674  self.user = user
7675  self.passwd = passwd
7676  self.dbname = dbname

Member Function Documentation

def heavydb.thrift.Heavy.connect_args.__eq__ (   self,
  other 
)

Definition at line 7734 of file Heavy.py.

7735  def __eq__(self, other):
7736  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.Heavy.connect_args.__ne__ (   self,
  other 
)

Definition at line 7737 of file Heavy.py.

7738  def __ne__(self, other):
7739  return not (self == other)
7740 all_structs.append(connect_args)
connect_args.thrift_spec = (
def heavydb.thrift.Heavy.connect_args.__repr__ (   self)

Definition at line 7729 of file Heavy.py.

7730  def __repr__(self):
7731  L = ['%s=%r' % (key, value)
7732  for key, value in self.__dict__.items()]
7733  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.Heavy.connect_args.read (   self,
  iprot 
)

Definition at line 7677 of file Heavy.py.

References heavydb.thrift.Heavy.connect_args.dbname, Catalog_Namespace::UserAlterations.passwd, heavydb.thrift.Heavy.connect_args.passwd, ai.heavy.jdbc.HeavyAIGeomTest.user, ai.heavy.jdbc.HeavyAIColumnTypeTest.user, ai.heavy.jdbc.HeavyAIPrepareTest.user, ai.heavy.jdbc.HeavyAIConnectionTest.user, ai.heavy.jdbc.HeavyAIArrayTest.user, ai.heavy.jdbc.HeavyAIStatementTest.user, com.mapd.calcite.parser.HeavyDBUser.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.Builder.user, com.mapd.parser.extension.ddl.SqlDropUserMapping.user, DashboardDescriptor.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.user, ai.heavy.jdbc.Options.user, and heavydb.thrift.Heavy.connect_args.user.

7678  def read(self, iprot):
7679  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7680  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7681  return
7682  iprot.readStructBegin()
7683  while True:
7684  (fname, ftype, fid) = iprot.readFieldBegin()
7685  if ftype == TType.STOP:
7686  break
7687  if fid == 1:
7688  if ftype == TType.STRING:
7689  self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7690  else:
7691  iprot.skip(ftype)
7692  elif fid == 2:
7693  if ftype == TType.STRING:
7694  self.passwd = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7695  else:
7696  iprot.skip(ftype)
7697  elif fid == 3:
7698  if ftype == TType.STRING:
7699  self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7700  else:
7701  iprot.skip(ftype)
7702  else:
7703  iprot.skip(ftype)
7704  iprot.readFieldEnd()
7705  iprot.readStructEnd()
def heavydb.thrift.Heavy.connect_args.validate (   self)

Definition at line 7726 of file Heavy.py.

7727  def validate(self):
7728  return
def heavydb.thrift.Heavy.connect_args.write (   self,
  oprot 
)

Definition at line 7706 of file Heavy.py.

References heavydb.thrift.Heavy.connect_args.dbname, Catalog_Namespace::UserAlterations.passwd, heavydb.thrift.Heavy.connect_args.passwd, ai.heavy.jdbc.HeavyAIGeomTest.user, ai.heavy.jdbc.HeavyAIColumnTypeTest.user, ai.heavy.jdbc.HeavyAIPrepareTest.user, ai.heavy.jdbc.HeavyAIConnectionTest.user, ai.heavy.jdbc.HeavyAIArrayTest.user, ai.heavy.jdbc.HeavyAIStatementTest.user, com.mapd.calcite.parser.HeavyDBUser.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.Builder.user, com.mapd.parser.extension.ddl.SqlDropUserMapping.user, DashboardDescriptor.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.user, ai.heavy.jdbc.Options.user, and heavydb.thrift.Heavy.connect_args.user.

7707  def write(self, oprot):
7708  if oprot._fast_encode is not None and self.thrift_spec is not None:
7709  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7710  return
7711  oprot.writeStructBegin('connect_args')
7712  if self.user is not None:
7713  oprot.writeFieldBegin('user', TType.STRING, 1)
7714  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
7715  oprot.writeFieldEnd()
7716  if self.passwd is not None:
7717  oprot.writeFieldBegin('passwd', TType.STRING, 2)
7718  oprot.writeString(self.passwd.encode('utf-8') if sys.version_info[0] == 2 else self.passwd)
7719  oprot.writeFieldEnd()
7720  if self.dbname is not None:
7721  oprot.writeFieldBegin('dbname', TType.STRING, 3)
7722  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
7723  oprot.writeFieldEnd()
7724  oprot.writeFieldStop()
7725  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.Heavy.connect_args.__dict__
private

Definition at line 7735 of file Heavy.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.Heavy.connect_args.dbname

Definition at line 7675 of file Heavy.py.

Referenced by heavydb.thrift.Heavy.connect_args.read(), heavydb.thrift.Heavy.krb5_connect_args.read(), heavydb.thrift.Heavy.switch_database_args.read(), heavydb.thrift.Heavy.connect_args.write(), heavydb.thrift.Heavy.krb5_connect_args.write(), and heavydb.thrift.Heavy.switch_database_args.write().

heavydb.thrift.Heavy.connect_args.passwd

Definition at line 7674 of file Heavy.py.

Referenced by heavydb.thrift.Heavy.connect_args.read(), and heavydb.thrift.Heavy.connect_args.write().

heavydb.thrift.Heavy.connect_args.user

Definition at line 7673 of file Heavy.py.

Referenced by heavydb.thrift.ttypes.TSessionInfo.read(), heavydb.thrift.Heavy.connect_args.read(), heavydb.thrift.ttypes.TSessionInfo.write(), and heavydb.thrift.Heavy.connect_args.write().


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