OmniSciDB  c1a53651b2
 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 6180 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 6193 of file ttypes.py.

6194  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None, objectId=None,):
6195  self.objectName = objectName
6196  self.objectType = objectType
6197  self.privs = privs
6198  self.grantee = grantee
6199  self.privilegeObjectType = privilegeObjectType
6200  self.objectId = objectId

Member Function Documentation

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

Definition at line 6293 of file ttypes.py.

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

Definition at line 6296 of file ttypes.py.

6297  def __ne__(self, other):
6298  return not (self == other)
6299 
def heavydb.thrift.ttypes.TDBObject.__repr__ (   self)

Definition at line 6288 of file ttypes.py.

6289  def __repr__(self):
6290  L = ['%s=%r' % (key, value)
6291  for key, value in self.__dict__.items()]
6292  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 6201 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.

6202  def read(self, iprot):
6203  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6204  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6205  return
6206  iprot.readStructBegin()
6207  while True:
6208  (fname, ftype, fid) = iprot.readFieldBegin()
6209  if ftype == TType.STOP:
6210  break
6211  if fid == 1:
6212  if ftype == TType.STRING:
6213  self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6214  else:
6215  iprot.skip(ftype)
6216  elif fid == 2:
6217  if ftype == TType.I32:
6218  self.objectType = iprot.readI32()
6219  else:
6220  iprot.skip(ftype)
6221  elif fid == 3:
6222  if ftype == TType.LIST:
6223  self.privs = []
6224  (_etype265, _size262) = iprot.readListBegin()
6225  for _i266 in range(_size262):
6226  _elem267 = iprot.readBool()
6227  self.privs.append(_elem267)
6228  iprot.readListEnd()
6229  else:
6230  iprot.skip(ftype)
6231  elif fid == 4:
6232  if ftype == TType.STRING:
6233  self.grantee = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6234  else:
6235  iprot.skip(ftype)
6236  elif fid == 5:
6237  if ftype == TType.I32:
6238  self.privilegeObjectType = iprot.readI32()
6239  else:
6240  iprot.skip(ftype)
6241  elif fid == 6:
6242  if ftype == TType.I32:
6243  self.objectId = iprot.readI32()
6244  else:
6245  iprot.skip(ftype)
6246  else:
6247  iprot.skip(ftype)
6248  iprot.readFieldEnd()
6249  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDBObject.validate (   self)

Definition at line 6285 of file ttypes.py.

6286  def validate(self):
6287  return
def heavydb.thrift.ttypes.TDBObject.write (   self,
  oprot 
)

Definition at line 6250 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.

6251  def write(self, oprot):
6252  if oprot._fast_encode is not None and self.thrift_spec is not None:
6253  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6254  return
6255  oprot.writeStructBegin('TDBObject')
6256  if self.objectName is not None:
6257  oprot.writeFieldBegin('objectName', TType.STRING, 1)
6258  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
6259  oprot.writeFieldEnd()
6260  if self.objectType is not None:
6261  oprot.writeFieldBegin('objectType', TType.I32, 2)
6262  oprot.writeI32(self.objectType)
6263  oprot.writeFieldEnd()
6264  if self.privs is not None:
6265  oprot.writeFieldBegin('privs', TType.LIST, 3)
6266  oprot.writeListBegin(TType.BOOL, len(self.privs))
6267  for iter268 in self.privs:
6268  oprot.writeBool(iter268)
6269  oprot.writeListEnd()
6270  oprot.writeFieldEnd()
6271  if self.grantee is not None:
6272  oprot.writeFieldBegin('grantee', TType.STRING, 4)
6273  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
6274  oprot.writeFieldEnd()
6275  if self.privilegeObjectType is not None:
6276  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
6277  oprot.writeI32(self.privilegeObjectType)
6278  oprot.writeFieldEnd()
6279  if self.objectId is not None:
6280  oprot.writeFieldBegin('objectId', TType.I32, 6)
6281  oprot.writeI32(self.objectId)
6282  oprot.writeFieldEnd()
6283  oprot.writeFieldStop()
6284  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBObject.__dict__
private

Definition at line 6294 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TDBObject.grantee

Definition at line 6197 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 6199 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 6194 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 6195 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 6198 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 6196 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: