OmniSciDB  cde582ebc3
 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 6158 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 6171 of file ttypes.py.

6172  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None, objectId=None,):
6173  self.objectName = objectName
6174  self.objectType = objectType
6175  self.privs = privs
6176  self.grantee = grantee
6177  self.privilegeObjectType = privilegeObjectType
6178  self.objectId = objectId

Member Function Documentation

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

Definition at line 6271 of file ttypes.py.

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

Definition at line 6274 of file ttypes.py.

6275  def __ne__(self, other):
6276  return not (self == other)
6277 
def heavydb.thrift.ttypes.TDBObject.__repr__ (   self)

Definition at line 6266 of file ttypes.py.

6267  def __repr__(self):
6268  L = ['%s=%r' % (key, value)
6269  for key, value in self.__dict__.items()]
6270  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 6179 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.

6180  def read(self, iprot):
6181  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6182  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6183  return
6184  iprot.readStructBegin()
6185  while True:
6186  (fname, ftype, fid) = iprot.readFieldBegin()
6187  if ftype == TType.STOP:
6188  break
6189  if fid == 1:
6190  if ftype == TType.STRING:
6191  self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6192  else:
6193  iprot.skip(ftype)
6194  elif fid == 2:
6195  if ftype == TType.I32:
6196  self.objectType = iprot.readI32()
6197  else:
6198  iprot.skip(ftype)
6199  elif fid == 3:
6200  if ftype == TType.LIST:
6201  self.privs = []
6202  (_etype265, _size262) = iprot.readListBegin()
6203  for _i266 in range(_size262):
6204  _elem267 = iprot.readBool()
6205  self.privs.append(_elem267)
6206  iprot.readListEnd()
6207  else:
6208  iprot.skip(ftype)
6209  elif fid == 4:
6210  if ftype == TType.STRING:
6211  self.grantee = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6212  else:
6213  iprot.skip(ftype)
6214  elif fid == 5:
6215  if ftype == TType.I32:
6216  self.privilegeObjectType = iprot.readI32()
6217  else:
6218  iprot.skip(ftype)
6219  elif fid == 6:
6220  if ftype == TType.I32:
6221  self.objectId = iprot.readI32()
6222  else:
6223  iprot.skip(ftype)
6224  else:
6225  iprot.skip(ftype)
6226  iprot.readFieldEnd()
6227  iprot.readStructEnd()
def heavydb.thrift.ttypes.TDBObject.validate (   self)

Definition at line 6263 of file ttypes.py.

6264  def validate(self):
6265  return
def heavydb.thrift.ttypes.TDBObject.write (   self,
  oprot 
)

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

6229  def write(self, oprot):
6230  if oprot._fast_encode is not None and self.thrift_spec is not None:
6231  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6232  return
6233  oprot.writeStructBegin('TDBObject')
6234  if self.objectName is not None:
6235  oprot.writeFieldBegin('objectName', TType.STRING, 1)
6236  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
6237  oprot.writeFieldEnd()
6238  if self.objectType is not None:
6239  oprot.writeFieldBegin('objectType', TType.I32, 2)
6240  oprot.writeI32(self.objectType)
6241  oprot.writeFieldEnd()
6242  if self.privs is not None:
6243  oprot.writeFieldBegin('privs', TType.LIST, 3)
6244  oprot.writeListBegin(TType.BOOL, len(self.privs))
6245  for iter268 in self.privs:
6246  oprot.writeBool(iter268)
6247  oprot.writeListEnd()
6248  oprot.writeFieldEnd()
6249  if self.grantee is not None:
6250  oprot.writeFieldBegin('grantee', TType.STRING, 4)
6251  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
6252  oprot.writeFieldEnd()
6253  if self.privilegeObjectType is not None:
6254  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
6255  oprot.writeI32(self.privilegeObjectType)
6256  oprot.writeFieldEnd()
6257  if self.objectId is not None:
6258  oprot.writeFieldBegin('objectId', TType.I32, 6)
6259  oprot.writeI32(self.objectId)
6260  oprot.writeFieldEnd()
6261  oprot.writeFieldStop()
6262  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBObject.__dict__
private

Definition at line 6272 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TDBObject.grantee

Definition at line 6175 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 6177 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 6172 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 6173 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 6176 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 6174 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: