OmniSciDB  fe05a0c208
 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 2252 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 2267 of file ttypes.py.

2268  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,):
2269  self.read_only = read_only
2270  self.version = version
2271  self.rendering_enabled = rendering_enabled
2272  self.start_time = start_time
2273  self.edition = edition
2274  self.host_name = host_name
2275  self.poly_rendering_enabled = poly_rendering_enabled
2276  self.role = role

Member Function Documentation

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

Definition at line 2379 of file ttypes.py.

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

Definition at line 2382 of file ttypes.py.

2383  def __ne__(self, other):
2384  return not (self == other)
2385 
def omnisci.thrift.ttypes.TServerStatus.__repr__ (   self)

Definition at line 2374 of file ttypes.py.

2375  def __repr__(self):
2376  L = ['%s=%r' % (key, value)
2377  for key, value in self.__dict__.items()]
2378  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 2277 of file ttypes.py.

References omnisci.thrift.ttypes.TServerStatus.edition, com.omnisci.jdbc.Options.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.

2278  def read(self, iprot):
2279  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2280  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2281  return
2282  iprot.readStructBegin()
2283  while True:
2284  (fname, ftype, fid) = iprot.readFieldBegin()
2285  if ftype == TType.STOP:
2286  break
2287  if fid == 1:
2288  if ftype == TType.BOOL:
2289  self.read_only = iprot.readBool()
2290  else:
2291  iprot.skip(ftype)
2292  elif fid == 2:
2293  if ftype == TType.STRING:
2294  self.version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2295  else:
2296  iprot.skip(ftype)
2297  elif fid == 3:
2298  if ftype == TType.BOOL:
2299  self.rendering_enabled = iprot.readBool()
2300  else:
2301  iprot.skip(ftype)
2302  elif fid == 4:
2303  if ftype == TType.I64:
2304  self.start_time = iprot.readI64()
2305  else:
2306  iprot.skip(ftype)
2307  elif fid == 5:
2308  if ftype == TType.STRING:
2309  self.edition = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2310  else:
2311  iprot.skip(ftype)
2312  elif fid == 6:
2313  if ftype == TType.STRING:
2314  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2315  else:
2316  iprot.skip(ftype)
2317  elif fid == 7:
2318  if ftype == TType.BOOL:
2319  self.poly_rendering_enabled = iprot.readBool()
2320  else:
2321  iprot.skip(ftype)
2322  elif fid == 8:
2323  if ftype == TType.I32:
2324  self.role = iprot.readI32()
2325  else:
2326  iprot.skip(ftype)
2327  else:
2328  iprot.skip(ftype)
2329  iprot.readFieldEnd()
2330  iprot.readStructEnd()
def omnisci.thrift.ttypes.TServerStatus.validate (   self)

Definition at line 2371 of file ttypes.py.

2372  def validate(self):
2373  return
def omnisci.thrift.ttypes.TServerStatus.write (   self,
  oprot 
)

Definition at line 2331 of file ttypes.py.

References omnisci.thrift.ttypes.TServerStatus.edition, com.omnisci.jdbc.Options.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.

2332  def write(self, oprot):
2333  if oprot._fast_encode is not None and self.thrift_spec is not None:
2334  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2335  return
2336  oprot.writeStructBegin('TServerStatus')
2337  if self.read_only is not None:
2338  oprot.writeFieldBegin('read_only', TType.BOOL, 1)
2339  oprot.writeBool(self.read_only)
2340  oprot.writeFieldEnd()
2341  if self.version is not None:
2342  oprot.writeFieldBegin('version', TType.STRING, 2)
2343  oprot.writeString(self.version.encode('utf-8') if sys.version_info[0] == 2 else self.version)
2344  oprot.writeFieldEnd()
2345  if self.rendering_enabled is not None:
2346  oprot.writeFieldBegin('rendering_enabled', TType.BOOL, 3)
2347  oprot.writeBool(self.rendering_enabled)
2348  oprot.writeFieldEnd()
2349  if self.start_time is not None:
2350  oprot.writeFieldBegin('start_time', TType.I64, 4)
2351  oprot.writeI64(self.start_time)
2352  oprot.writeFieldEnd()
2353  if self.edition is not None:
2354  oprot.writeFieldBegin('edition', TType.STRING, 5)
2355  oprot.writeString(self.edition.encode('utf-8') if sys.version_info[0] == 2 else self.edition)
2356  oprot.writeFieldEnd()
2357  if self.host_name is not None:
2358  oprot.writeFieldBegin('host_name', TType.STRING, 6)
2359  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
2360  oprot.writeFieldEnd()
2361  if self.poly_rendering_enabled is not None:
2362  oprot.writeFieldBegin('poly_rendering_enabled', TType.BOOL, 7)
2363  oprot.writeBool(self.poly_rendering_enabled)
2364  oprot.writeFieldEnd()
2365  if self.role is not None:
2366  oprot.writeFieldBegin('role', TType.I32, 8)
2367  oprot.writeI32(self.role)
2368  oprot.writeFieldEnd()
2369  oprot.writeFieldStop()
2370  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TServerStatus.__dict__
private

Definition at line 2380 of file ttypes.py.

omnisci.thrift.ttypes.TServerStatus.edition

Definition at line 2272 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 2273 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 2274 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 2268 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 2270 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 2275 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 2271 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 2269 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: