OmniSciDB  340b00dbf6
 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 5752 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 5763 of file ttypes.py.

5764  def __init__(self, user=None, database=None, start_time=None, is_super=None,):
5765  self.user = user
5766  self.database = database
5767  self.start_time = start_time
5768  self.is_super = is_super

Member Function Documentation

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

Definition at line 5835 of file ttypes.py.

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

Definition at line 5838 of file ttypes.py.

5839  def __ne__(self, other):
5840  return not (self == other)
5841 
def omnisci.thrift.ttypes.TSessionInfo.__repr__ (   self)

Definition at line 5830 of file ttypes.py.

5831  def __repr__(self):
5832  L = ['%s=%r' % (key, value)
5833  for key, value in self.__dict__.items()]
5834  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 5769 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.Connection_enums.user, omnisci.thrift.ttypes.TSessionInfo.user, and omnisci.thrift.OmniSci.connect_args.user.

5770  def read(self, iprot):
5771  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5772  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5773  return
5774  iprot.readStructBegin()
5775  while True:
5776  (fname, ftype, fid) = iprot.readFieldBegin()
5777  if ftype == TType.STOP:
5778  break
5779  if fid == 1:
5780  if ftype == TType.STRING:
5781  self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5782  else:
5783  iprot.skip(ftype)
5784  elif fid == 2:
5785  if ftype == TType.STRING:
5786  self.database = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
5787  else:
5788  iprot.skip(ftype)
5789  elif fid == 3:
5790  if ftype == TType.I64:
5791  self.start_time = iprot.readI64()
5792  else:
5793  iprot.skip(ftype)
5794  elif fid == 4:
5795  if ftype == TType.BOOL:
5796  self.is_super = iprot.readBool()
5797  else:
5798  iprot.skip(ftype)
5799  else:
5800  iprot.skip(ftype)
5801  iprot.readFieldEnd()
5802  iprot.readStructEnd()
def omnisci.thrift.ttypes.TSessionInfo.validate (   self)

Definition at line 5827 of file ttypes.py.

5828  def validate(self):
5829  return
def omnisci.thrift.ttypes.TSessionInfo.write (   self,
  oprot 
)

Definition at line 5803 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.Connection_enums.user, omnisci.thrift.ttypes.TSessionInfo.user, and omnisci.thrift.OmniSci.connect_args.user.

5804  def write(self, oprot):
5805  if oprot._fast_encode is not None and self.thrift_spec is not None:
5806  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5807  return
5808  oprot.writeStructBegin('TSessionInfo')
5809  if self.user is not None:
5810  oprot.writeFieldBegin('user', TType.STRING, 1)
5811  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
5812  oprot.writeFieldEnd()
5813  if self.database is not None:
5814  oprot.writeFieldBegin('database', TType.STRING, 2)
5815  oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database)
5816  oprot.writeFieldEnd()
5817  if self.start_time is not None:
5818  oprot.writeFieldBegin('start_time', TType.I64, 3)
5819  oprot.writeI64(self.start_time)
5820  oprot.writeFieldEnd()
5821  if self.is_super is not None:
5822  oprot.writeFieldBegin('is_super', TType.BOOL, 4)
5823  oprot.writeBool(self.is_super)
5824  oprot.writeFieldEnd()
5825  oprot.writeFieldStop()
5826  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TSessionInfo.__dict__
private

Definition at line 5836 of file ttypes.py.

omnisci.thrift.ttypes.TSessionInfo.database

Definition at line 5765 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 5767 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 5766 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 5764 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: