OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TSessionInfo Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TSessionInfo:
+ Collaboration diagram for omnisci.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 5869 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 5880 of file ttypes.py.

5881  def __init__(self, user=None, database=None, start_time=None, is_super=None,):
5882  self.user = user
5883  self.database = database
5884  self.start_time = start_time
5885  self.is_super = is_super

Member Function Documentation

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

Definition at line 5952 of file ttypes.py.

5953  def __eq__(self, other):
5954  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TSessionInfo.__ne__ (   self,
  other 
)

Definition at line 5955 of file ttypes.py.

5956  def __ne__(self, other):
5957  return not (self == other)
5958 
def omnisci.thrift.ttypes.TSessionInfo.__repr__ (   self)

Definition at line 5947 of file ttypes.py.

5948  def __repr__(self):
5949  L = ['%s=%r' % (key, value)
5950  for key, value in self.__dict__.items()]
5951  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 omnisci.thrift.ttypes.TSessionInfo.read (   self,
  iprot 
)

Definition at line 5886 of file ttypes.py.

References omnisci.thrift.ttypes.TSessionInfo.database, omnisci.thrift.ttypes.TSessionInfo.is_super, omnisci.thrift.ttypes.TServerStatus.start_time, omnisci.thrift.ttypes.TSessionInfo.start_time, com.omnisci.jdbc.OmniSciGeomTest.user, com.omnisci.jdbc.OmniSciPrepareTest.user, com.omnisci.jdbc.OmniSciColumnTypeTest.user, com.omnisci.jdbc.OmniSciConnectionTest.user, com.omnisci.jdbc.OmniSciArrayTest.user, com.omnisci.jdbc.OmniSciStatementTest.user, com.mapd.calcite.parser.MapDUser.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, com.omnisci.jdbc.Options.user, omnisci.thrift.ttypes.TSessionInfo.user, and omnisci.thrift.OmniSci.connect_args.user.

5887  def read(self, iprot):
5888  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5889  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5890  return
5891  iprot.readStructBegin()
5892  while True:
5893  (fname, ftype, fid) = iprot.readFieldBegin()
5894  if ftype == TType.STOP:
5895  break
5896  if fid == 1:
5897  if ftype == TType.STRING:
5898  self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5899  else:
5900  iprot.skip(ftype)
5901  elif fid == 2:
5902  if ftype == TType.STRING:
5903  self.database = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5904  else:
5905  iprot.skip(ftype)
5906  elif fid == 3:
5907  if ftype == TType.I64:
5908  self.start_time = iprot.readI64()
5909  else:
5910  iprot.skip(ftype)
5911  elif fid == 4:
5912  if ftype == TType.BOOL:
5913  self.is_super = iprot.readBool()
5914  else:
5915  iprot.skip(ftype)
5916  else:
5917  iprot.skip(ftype)
5918  iprot.readFieldEnd()
5919  iprot.readStructEnd()
def omnisci.thrift.ttypes.TSessionInfo.validate (   self)

Definition at line 5944 of file ttypes.py.

5945  def validate(self):
5946  return
def omnisci.thrift.ttypes.TSessionInfo.write (   self,
  oprot 
)

Definition at line 5920 of file ttypes.py.

References omnisci.thrift.ttypes.TSessionInfo.database, omnisci.thrift.ttypes.TSessionInfo.is_super, omnisci.thrift.ttypes.TServerStatus.start_time, omnisci.thrift.ttypes.TSessionInfo.start_time, com.omnisci.jdbc.OmniSciGeomTest.user, com.omnisci.jdbc.OmniSciPrepareTest.user, com.omnisci.jdbc.OmniSciColumnTypeTest.user, com.omnisci.jdbc.OmniSciConnectionTest.user, com.omnisci.jdbc.OmniSciArrayTest.user, com.omnisci.jdbc.OmniSciStatementTest.user, com.mapd.calcite.parser.MapDUser.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, com.omnisci.jdbc.Options.user, omnisci.thrift.ttypes.TSessionInfo.user, and omnisci.thrift.OmniSci.connect_args.user.

5921  def write(self, oprot):
5922  if oprot._fast_encode is not None and self.thrift_spec is not None:
5923  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5924  return
5925  oprot.writeStructBegin('TSessionInfo')
5926  if self.user is not None:
5927  oprot.writeFieldBegin('user', TType.STRING, 1)
5928  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
5929  oprot.writeFieldEnd()
5930  if self.database is not None:
5931  oprot.writeFieldBegin('database', TType.STRING, 2)
5932  oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database)
5933  oprot.writeFieldEnd()
5934  if self.start_time is not None:
5935  oprot.writeFieldBegin('start_time', TType.I64, 3)
5936  oprot.writeI64(self.start_time)
5937  oprot.writeFieldEnd()
5938  if self.is_super is not None:
5939  oprot.writeFieldBegin('is_super', TType.BOOL, 4)
5940  oprot.writeBool(self.is_super)
5941  oprot.writeFieldEnd()
5942  oprot.writeFieldStop()
5943  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TSessionInfo.__dict__
private

Definition at line 5953 of file ttypes.py.

omnisci.thrift.ttypes.TSessionInfo.database

Definition at line 5882 of file ttypes.py.

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

omnisci.thrift.ttypes.TSessionInfo.is_super

Definition at line 5884 of file ttypes.py.

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

omnisci.thrift.ttypes.TSessionInfo.start_time

Definition at line 5883 of file ttypes.py.

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

omnisci.thrift.ttypes.TSessionInfo.user

Definition at line 5881 of file ttypes.py.

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


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