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

Public Member Functions

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

Public Attributes

 user
 
 database
 
 start_time
 
 is_super
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - user
 - database
 - start_time
 - is_super

Definition at line 6569 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TSessionInfo.__init__ (   self,
  user = None,
  database = None,
  start_time = None,
  is_super = None 
)

Definition at line 6580 of file ttypes.py.

6581  def __init__(self, user=None, database=None, start_time=None, is_super=None,):
6582  self.user = user
6583  self.database = database
6584  self.start_time = start_time
6585  self.is_super = is_super

Member Function Documentation

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

Definition at line 6652 of file ttypes.py.

6653  def __eq__(self, other):
6654  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TSessionInfo.__ne__ (   self,
  other 
)

Definition at line 6655 of file ttypes.py.

6656  def __ne__(self, other):
6657  return not (self == other)
6658 
def heavydb.thrift.ttypes.TSessionInfo.__repr__ (   self)

Definition at line 6647 of file ttypes.py.

6648  def __repr__(self):
6649  L = ['%s=%r' % (key, value)
6650  for key, value in self.__dict__.items()]
6651  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.TSessionInfo.read (   self,
  iprot 
)

Definition at line 6586 of file ttypes.py.

References com.mapd.tests.SystemTableConcurrencyTest.ThreadDbQueries.database, heavydb.thrift.ttypes.TSessionInfo.database, Catalog_Namespace::UserAlterations.is_super, heavydb.thrift.ttypes.TSessionInfo.is_super, heavydb.thrift.ttypes.TServerStatus.start_time, heavydb.thrift.ttypes.TSessionInfo.start_time, 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, heavydb.thrift.ttypes.TSessionInfo.user, and heavydb.thrift.Heavy.connect_args.user.

6587  def read(self, iprot):
6588  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6589  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6590  return
6591  iprot.readStructBegin()
6592  while True:
6593  (fname, ftype, fid) = iprot.readFieldBegin()
6594  if ftype == TType.STOP:
6595  break
6596  if fid == 1:
6597  if ftype == TType.STRING:
6598  self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6599  else:
6600  iprot.skip(ftype)
6601  elif fid == 2:
6602  if ftype == TType.STRING:
6603  self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6604  else:
6605  iprot.skip(ftype)
6606  elif fid == 3:
6607  if ftype == TType.I64:
6608  self.start_time = iprot.readI64()
6609  else:
6610  iprot.skip(ftype)
6611  elif fid == 4:
6612  if ftype == TType.BOOL:
6613  self.is_super = iprot.readBool()
6614  else:
6615  iprot.skip(ftype)
6616  else:
6617  iprot.skip(ftype)
6618  iprot.readFieldEnd()
6619  iprot.readStructEnd()
def heavydb.thrift.ttypes.TSessionInfo.validate (   self)

Definition at line 6644 of file ttypes.py.

6645  def validate(self):
6646  return
def heavydb.thrift.ttypes.TSessionInfo.write (   self,
  oprot 
)

Definition at line 6620 of file ttypes.py.

References com.mapd.tests.SystemTableConcurrencyTest.ThreadDbQueries.database, heavydb.thrift.ttypes.TSessionInfo.database, Catalog_Namespace::UserAlterations.is_super, heavydb.thrift.ttypes.TSessionInfo.is_super, heavydb.thrift.ttypes.TServerStatus.start_time, heavydb.thrift.ttypes.TSessionInfo.start_time, 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, heavydb.thrift.ttypes.TSessionInfo.user, and heavydb.thrift.Heavy.connect_args.user.

6621  def write(self, oprot):
6622  if oprot._fast_encode is not None and self.thrift_spec is not None:
6623  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6624  return
6625  oprot.writeStructBegin('TSessionInfo')
6626  if self.user is not None:
6627  oprot.writeFieldBegin('user', TType.STRING, 1)
6628  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
6629  oprot.writeFieldEnd()
6630  if self.database is not None:
6631  oprot.writeFieldBegin('database', TType.STRING, 2)
6632  oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database)
6633  oprot.writeFieldEnd()
6634  if self.start_time is not None:
6635  oprot.writeFieldBegin('start_time', TType.I64, 3)
6636  oprot.writeI64(self.start_time)
6637  oprot.writeFieldEnd()
6638  if self.is_super is not None:
6639  oprot.writeFieldBegin('is_super', TType.BOOL, 4)
6640  oprot.writeBool(self.is_super)
6641  oprot.writeFieldEnd()
6642  oprot.writeFieldStop()
6643  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TSessionInfo.__dict__
private

Definition at line 6653 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TSessionInfo.database

Definition at line 6582 of file ttypes.py.

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

heavydb.thrift.ttypes.TSessionInfo.is_super

Definition at line 6584 of file ttypes.py.

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

heavydb.thrift.ttypes.TSessionInfo.start_time

Definition at line 6583 of file ttypes.py.

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

heavydb.thrift.ttypes.TSessionInfo.user

Definition at line 6581 of file ttypes.py.

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


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