OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDBObject Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDBObject:
+ Collaboration diagram for heavydb.thrift.ttypes.TDBObject:

Public Member Functions

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

Public Attributes

 objectName
 
 objectType
 
 privs
 
 grantee
 
 privilegeObjectType
 
 objectId
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - objectName
 - objectType
 - privs
 - grantee
 - privilegeObjectType
 - objectId

Definition at line 6345 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDBObject.__init__ (   self,
  objectName = None,
  objectType = None,
  privs = None,
  grantee = None,
  privilegeObjectType = None,
  objectId = None 
)

Definition at line 6358 of file ttypes.py.

6359  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None, objectId=None,):
6360  self.objectName = objectName
6361  self.objectType = objectType
6362  self.privs = privs
6363  self.grantee = grantee
6364  self.privilegeObjectType = privilegeObjectType
6365  self.objectId = objectId

Member Function Documentation

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

Definition at line 6458 of file ttypes.py.

6459  def __eq__(self, other):
6460  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDBObject.__ne__ (   self,
  other 
)

Definition at line 6461 of file ttypes.py.

6462  def __ne__(self, other):
6463  return not (self == other)
6464 
def heavydb.thrift.ttypes.TDBObject.__repr__ (   self)

Definition at line 6453 of file ttypes.py.

6454  def __repr__(self):
6455  L = ['%s=%r' % (key, value)
6456  for key, value in self.__dict__.items()]
6457  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.TDBObject.read (   self,
  iprot 
)

Definition at line 6366 of file ttypes.py.

References heavydb.thrift.ttypes.TDBObject.grantee, ObjectRoleDescriptor.objectId, DBObjectKey.objectId, heavydb.thrift.ttypes.TDBObject.objectId, ObjectRoleDescriptor.objectName, heavydb.thrift.ttypes.TDBObject.objectName, heavydb.thrift.Heavy.get_db_object_privs_args.objectName, ObjectRoleDescriptor.objectType, heavydb.thrift.ttypes.TDBObject.objectType, heavydb.thrift.Heavy.has_object_privilege_args.objectType, heavydb.thrift.ttypes.TDBObject.privilegeObjectType, ObjectRoleDescriptor.privs, and heavydb.thrift.ttypes.TDBObject.privs.

6367  def read(self, iprot):
6368  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6369  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6370  return
6371  iprot.readStructBegin()
6372  while True:
6373  (fname, ftype, fid) = iprot.readFieldBegin()
6374  if ftype == TType.STOP:
6375  break
6376  if fid == 1:
6377  if ftype == TType.STRING:
6378  self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6379  else:
6380  iprot.skip(ftype)
6381  elif fid == 2:
6382  if ftype == TType.I32:
6383  self.objectType = iprot.readI32()
6384  else:
6385  iprot.skip(ftype)
6386  elif fid == 3:
6387  if ftype == TType.LIST:
6388  self.privs = []
6389  (_etype272, _size269) = iprot.readListBegin()
6390  for _i273 in range(_size269):
6391  _elem274 = iprot.readBool()
6392  self.privs.append(_elem274)
6393  iprot.readListEnd()
6394  else:
6395  iprot.skip(ftype)
6396  elif fid == 4:
6397  if ftype == TType.STRING:
6398  self.grantee = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6399  else:
6400  iprot.skip(ftype)
6401  elif fid == 5:
6402  if ftype == TType.I32:
6403  self.privilegeObjectType = iprot.readI32()
6404  else:
6405  iprot.skip(ftype)
6406  elif fid == 6:
6407  if ftype == TType.I32:
6408  self.objectId = iprot.readI32()
6409  else:
6410  iprot.skip(ftype)
6411  else:
6412  iprot.skip(ftype)
6413  iprot.readFieldEnd()
6414  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDBObject.validate (   self)

Definition at line 6450 of file ttypes.py.

6451  def validate(self):
6452  return
def heavydb.thrift.ttypes.TDBObject.write (   self,
  oprot 
)

Definition at line 6415 of file ttypes.py.

References heavydb.thrift.ttypes.TDBObject.grantee, ObjectRoleDescriptor.objectId, DBObjectKey.objectId, heavydb.thrift.ttypes.TDBObject.objectId, ObjectRoleDescriptor.objectName, heavydb.thrift.ttypes.TDBObject.objectName, heavydb.thrift.Heavy.get_db_object_privs_args.objectName, ObjectRoleDescriptor.objectType, heavydb.thrift.ttypes.TDBObject.objectType, heavydb.thrift.Heavy.has_object_privilege_args.objectType, heavydb.thrift.ttypes.TDBObject.privilegeObjectType, ObjectRoleDescriptor.privs, and heavydb.thrift.ttypes.TDBObject.privs.

6416  def write(self, oprot):
6417  if oprot._fast_encode is not None and self.thrift_spec is not None:
6418  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6419  return
6420  oprot.writeStructBegin('TDBObject')
6421  if self.objectName is not None:
6422  oprot.writeFieldBegin('objectName', TType.STRING, 1)
6423  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
6424  oprot.writeFieldEnd()
6425  if self.objectType is not None:
6426  oprot.writeFieldBegin('objectType', TType.I32, 2)
6427  oprot.writeI32(self.objectType)
6428  oprot.writeFieldEnd()
6429  if self.privs is not None:
6430  oprot.writeFieldBegin('privs', TType.LIST, 3)
6431  oprot.writeListBegin(TType.BOOL, len(self.privs))
6432  for iter275 in self.privs:
6433  oprot.writeBool(iter275)
6434  oprot.writeListEnd()
6435  oprot.writeFieldEnd()
6436  if self.grantee is not None:
6437  oprot.writeFieldBegin('grantee', TType.STRING, 4)
6438  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
6439  oprot.writeFieldEnd()
6440  if self.privilegeObjectType is not None:
6441  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
6442  oprot.writeI32(self.privilegeObjectType)
6443  oprot.writeFieldEnd()
6444  if self.objectId is not None:
6445  oprot.writeFieldBegin('objectId', TType.I32, 6)
6446  oprot.writeI32(self.objectId)
6447  oprot.writeFieldEnd()
6448  oprot.writeFieldStop()
6449  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBObject.__dict__
private

Definition at line 6459 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TDBObject.grantee

Definition at line 6362 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().

heavydb.thrift.ttypes.TDBObject.objectId

Definition at line 6364 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().

heavydb.thrift.ttypes.TDBObject.objectName

Definition at line 6359 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().

heavydb.thrift.ttypes.TDBObject.objectType

Definition at line 6360 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().

heavydb.thrift.ttypes.TDBObject.privilegeObjectType

Definition at line 6363 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().

heavydb.thrift.ttypes.TDBObject.privs

Definition at line 6361 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBObject.read(), and heavydb.thrift.ttypes.TDBObject.write().


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