OmniSciDB  72c90bc290
 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 6756 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 6767 of file ttypes.py.

6768  def __init__(self, user=None, database=None, start_time=None, is_super=None,):
6769  self.user = user
6770  self.database = database
6771  self.start_time = start_time
6772  self.is_super = is_super

Member Function Documentation

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

Definition at line 6839 of file ttypes.py.

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

Definition at line 6842 of file ttypes.py.

6843  def __ne__(self, other):
6844  return not (self == other)
6845 
def heavydb.thrift.ttypes.TSessionInfo.__repr__ (   self)

Definition at line 6834 of file ttypes.py.

6835  def __repr__(self):
6836  L = ['%s=%r' % (key, value)
6837  for key, value in self.__dict__.items()]
6838  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 6773 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.

6774  def read(self, iprot):
6775  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6776  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6777  return
6778  iprot.readStructBegin()
6779  while True:
6780  (fname, ftype, fid) = iprot.readFieldBegin()
6781  if ftype == TType.STOP:
6782  break
6783  if fid == 1:
6784  if ftype == TType.STRING:
6785  self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6786  else:
6787  iprot.skip(ftype)
6788  elif fid == 2:
6789  if ftype == TType.STRING:
6790  self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6791  else:
6792  iprot.skip(ftype)
6793  elif fid == 3:
6794  if ftype == TType.I64:
6795  self.start_time = iprot.readI64()
6796  else:
6797  iprot.skip(ftype)
6798  elif fid == 4:
6799  if ftype == TType.BOOL:
6800  self.is_super = iprot.readBool()
6801  else:
6802  iprot.skip(ftype)
6803  else:
6804  iprot.skip(ftype)
6805  iprot.readFieldEnd()
6806  iprot.readStructEnd()
def heavydb.thrift.ttypes.TSessionInfo.validate (   self)

Definition at line 6831 of file ttypes.py.

6832  def validate(self):
6833  return
def heavydb.thrift.ttypes.TSessionInfo.write (   self,
  oprot 
)

Definition at line 6807 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.

6808  def write(self, oprot):
6809  if oprot._fast_encode is not None and self.thrift_spec is not None:
6810  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6811  return
6812  oprot.writeStructBegin('TSessionInfo')
6813  if self.user is not None:
6814  oprot.writeFieldBegin('user', TType.STRING, 1)
6815  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
6816  oprot.writeFieldEnd()
6817  if self.database is not None:
6818  oprot.writeFieldBegin('database', TType.STRING, 2)
6819  oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database)
6820  oprot.writeFieldEnd()
6821  if self.start_time is not None:
6822  oprot.writeFieldBegin('start_time', TType.I64, 3)
6823  oprot.writeI64(self.start_time)
6824  oprot.writeFieldEnd()
6825  if self.is_super is not None:
6826  oprot.writeFieldBegin('is_super', TType.BOOL, 4)
6827  oprot.writeBool(self.is_super)
6828  oprot.writeFieldEnd()
6829  oprot.writeFieldStop()
6830  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TSessionInfo.__dict__
private

Definition at line 6840 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TSessionInfo.database

Definition at line 6769 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 6771 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 6770 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 6768 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: