OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TServerStatus Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TServerStatus:
+ Collaboration diagram for omnisci.thrift.ttypes.TServerStatus:

Public Member Functions

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

Public Attributes

 read_only
 
 version
 
 rendering_enabled
 
 start_time
 
 edition
 
 host_name
 
 poly_rendering_enabled
 
 role
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - read_only
 - version
 - rendering_enabled
 - start_time
 - edition
 - host_name
 - poly_rendering_enabled
 - role

Definition at line 2372 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TServerStatus.__init__ (   self,
  read_only = None,
  version = None,
  rendering_enabled = None,
  start_time = None,
  edition = None,
  host_name = None,
  poly_rendering_enabled = None,
  role = None 
)

Definition at line 2387 of file ttypes.py.

2388  def __init__(self, read_only=None, version=None, rendering_enabled=None, start_time=None, edition=None, host_name=None, poly_rendering_enabled=None, role=None,):
2389  self.read_only = read_only
2390  self.version = version
2391  self.rendering_enabled = rendering_enabled
2392  self.start_time = start_time
2393  self.edition = edition
2394  self.host_name = host_name
2395  self.poly_rendering_enabled = poly_rendering_enabled
2396  self.role = role

Member Function Documentation

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

Definition at line 2499 of file ttypes.py.

2500  def __eq__(self, other):
2501  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TServerStatus.__ne__ (   self,
  other 
)

Definition at line 2502 of file ttypes.py.

2503  def __ne__(self, other):
2504  return not (self == other)
2505 
def omnisci.thrift.ttypes.TServerStatus.__repr__ (   self)

Definition at line 2494 of file ttypes.py.

2495  def __repr__(self):
2496  L = ['%s=%r' % (key, value)
2497  for key, value in self.__dict__.items()]
2498  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.TServerStatus.read (   self,
  iprot 
)

Definition at line 2397 of file ttypes.py.

References omnisci.thrift.ttypes.TServerStatus.edition, com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.TServerStatus.poly_rendering_enabled, omnisci.thrift.ttypes.TServerStatus.read_only, omnisci.thrift.ttypes.TServerStatus.rendering_enabled, Parser::CreateRoleStmt.role, Parser::DropRoleStmt.role, Parser::ShowPrivilegesStmt.role, omnisci.thrift.ttypes.TServerStatus.role, omnisci.thrift.ttypes.TServerStatus.start_time, com.mapd.calcite.parser.MapDTable.version, and omnisci.thrift.ttypes.TServerStatus.version.

2398  def read(self, iprot):
2399  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2400  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2401  return
2402  iprot.readStructBegin()
2403  while True:
2404  (fname, ftype, fid) = iprot.readFieldBegin()
2405  if ftype == TType.STOP:
2406  break
2407  if fid == 1:
2408  if ftype == TType.BOOL:
2409  self.read_only = iprot.readBool()
2410  else:
2411  iprot.skip(ftype)
2412  elif fid == 2:
2413  if ftype == TType.STRING:
2414  self.version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2415  else:
2416  iprot.skip(ftype)
2417  elif fid == 3:
2418  if ftype == TType.BOOL:
2419  self.rendering_enabled = iprot.readBool()
2420  else:
2421  iprot.skip(ftype)
2422  elif fid == 4:
2423  if ftype == TType.I64:
2424  self.start_time = iprot.readI64()
2425  else:
2426  iprot.skip(ftype)
2427  elif fid == 5:
2428  if ftype == TType.STRING:
2429  self.edition = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2430  else:
2431  iprot.skip(ftype)
2432  elif fid == 6:
2433  if ftype == TType.STRING:
2434  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2435  else:
2436  iprot.skip(ftype)
2437  elif fid == 7:
2438  if ftype == TType.BOOL:
2439  self.poly_rendering_enabled = iprot.readBool()
2440  else:
2441  iprot.skip(ftype)
2442  elif fid == 8:
2443  if ftype == TType.I32:
2444  self.role = iprot.readI32()
2445  else:
2446  iprot.skip(ftype)
2447  else:
2448  iprot.skip(ftype)
2449  iprot.readFieldEnd()
2450  iprot.readStructEnd()
def omnisci.thrift.ttypes.TServerStatus.validate (   self)

Definition at line 2491 of file ttypes.py.

2492  def validate(self):
2493  return
def omnisci.thrift.ttypes.TServerStatus.write (   self,
  oprot 
)

Definition at line 2451 of file ttypes.py.

References omnisci.thrift.ttypes.TServerStatus.edition, com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.TServerStatus.poly_rendering_enabled, omnisci.thrift.ttypes.TServerStatus.read_only, omnisci.thrift.ttypes.TServerStatus.rendering_enabled, Parser::CreateRoleStmt.role, Parser::DropRoleStmt.role, Parser::ShowPrivilegesStmt.role, omnisci.thrift.ttypes.TServerStatus.role, omnisci.thrift.ttypes.TServerStatus.start_time, com.mapd.calcite.parser.MapDTable.version, and omnisci.thrift.ttypes.TServerStatus.version.

2452  def write(self, oprot):
2453  if oprot._fast_encode is not None and self.thrift_spec is not None:
2454  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2455  return
2456  oprot.writeStructBegin('TServerStatus')
2457  if self.read_only is not None:
2458  oprot.writeFieldBegin('read_only', TType.BOOL, 1)
2459  oprot.writeBool(self.read_only)
2460  oprot.writeFieldEnd()
2461  if self.version is not None:
2462  oprot.writeFieldBegin('version', TType.STRING, 2)
2463  oprot.writeString(self.version.encode('utf-8') if sys.version_info[0] == 2 else self.version)
2464  oprot.writeFieldEnd()
2465  if self.rendering_enabled is not None:
2466  oprot.writeFieldBegin('rendering_enabled', TType.BOOL, 3)
2467  oprot.writeBool(self.rendering_enabled)
2468  oprot.writeFieldEnd()
2469  if self.start_time is not None:
2470  oprot.writeFieldBegin('start_time', TType.I64, 4)
2471  oprot.writeI64(self.start_time)
2472  oprot.writeFieldEnd()
2473  if self.edition is not None:
2474  oprot.writeFieldBegin('edition', TType.STRING, 5)
2475  oprot.writeString(self.edition.encode('utf-8') if sys.version_info[0] == 2 else self.edition)
2476  oprot.writeFieldEnd()
2477  if self.host_name is not None:
2478  oprot.writeFieldBegin('host_name', TType.STRING, 6)
2479  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
2480  oprot.writeFieldEnd()
2481  if self.poly_rendering_enabled is not None:
2482  oprot.writeFieldBegin('poly_rendering_enabled', TType.BOOL, 7)
2483  oprot.writeBool(self.poly_rendering_enabled)
2484  oprot.writeFieldEnd()
2485  if self.role is not None:
2486  oprot.writeFieldBegin('role', TType.I32, 8)
2487  oprot.writeI32(self.role)
2488  oprot.writeFieldEnd()
2489  oprot.writeFieldStop()
2490  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TServerStatus.__dict__
private

Definition at line 2500 of file ttypes.py.

omnisci.thrift.ttypes.TServerStatus.edition

Definition at line 2392 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.host_name

Definition at line 2393 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TServerStatus.read(), omnisci.thrift.ttypes.THardwareInfo.read(), omnisci.thrift.ttypes.TNodeMemoryInfo.read(), omnisci.thrift.ttypes.TServerStatus.write(), omnisci.thrift.ttypes.THardwareInfo.write(), and omnisci.thrift.ttypes.TNodeMemoryInfo.write().

omnisci.thrift.ttypes.TServerStatus.poly_rendering_enabled

Definition at line 2394 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.read_only

Definition at line 2388 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.rendering_enabled

Definition at line 2390 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.role

Definition at line 2395 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.start_time

Definition at line 2391 of file ttypes.py.

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

omnisci.thrift.ttypes.TServerStatus.version

Definition at line 2389 of file ttypes.py.

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


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