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

Public Member Functions

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

Public Attributes

 sessionId
 
 krbToken
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - sessionId
 - krbToken

Definition at line 1080 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TKrb5Session.__init__ (   self,
  sessionId = None,
  krbToken = None 
)

Definition at line 1089 of file ttypes.py.

1090  def __init__(self, sessionId=None, krbToken=None,):
1091  self.sessionId = sessionId
1092  self.krbToken = krbToken

Member Function Documentation

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

Definition at line 1141 of file ttypes.py.

1142  def __eq__(self, other):
1143  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TKrb5Session.__ne__ (   self,
  other 
)

Definition at line 1144 of file ttypes.py.

1145  def __ne__(self, other):
1146  return not (self == other)
1147 
def heavydb.thrift.ttypes.TKrb5Session.__repr__ (   self)

Definition at line 1136 of file ttypes.py.

1137  def __repr__(self):
1138  L = ['%s=%r' % (key, value)
1139  for key, value in self.__dict__.items()]
1140  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.TKrb5Session.read (   self,
  iprot 
)

Definition at line 1093 of file ttypes.py.

References heavydb.thrift.ttypes.TKrb5Session.krbToken, com.mapd.tests.HeavyDBTestClient.sessionId, and heavydb.thrift.ttypes.TKrb5Session.sessionId.

1094  def read(self, iprot):
1095  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1096  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1097  return
1098  iprot.readStructBegin()
1099  while True:
1100  (fname, ftype, fid) = iprot.readFieldBegin()
1101  if ftype == TType.STOP:
1102  break
1103  if fid == 1:
1104  if ftype == TType.STRING:
1105  self.sessionId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1106  else:
1107  iprot.skip(ftype)
1108  elif fid == 2:
1109  if ftype == TType.STRING:
1110  self.krbToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1111  else:
1112  iprot.skip(ftype)
1113  else:
1114  iprot.skip(ftype)
1115  iprot.readFieldEnd()
1116  iprot.readStructEnd()
def heavydb.thrift.ttypes.TKrb5Session.validate (   self)

Definition at line 1133 of file ttypes.py.

1134  def validate(self):
1135  return
def heavydb.thrift.ttypes.TKrb5Session.write (   self,
  oprot 
)

Definition at line 1117 of file ttypes.py.

References heavydb.thrift.ttypes.TKrb5Session.krbToken, com.mapd.tests.HeavyDBTestClient.sessionId, and heavydb.thrift.ttypes.TKrb5Session.sessionId.

1118  def write(self, oprot):
1119  if oprot._fast_encode is not None and self.thrift_spec is not None:
1120  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1121  return
1122  oprot.writeStructBegin('TKrb5Session')
1123  if self.sessionId is not None:
1124  oprot.writeFieldBegin('sessionId', TType.STRING, 1)
1125  oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId)
1126  oprot.writeFieldEnd()
1127  if self.krbToken is not None:
1128  oprot.writeFieldBegin('krbToken', TType.STRING, 2)
1129  oprot.writeString(self.krbToken.encode('utf-8') if sys.version_info[0] == 2 else self.krbToken)
1130  oprot.writeFieldEnd()
1131  oprot.writeFieldStop()
1132  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TKrb5Session.__dict__
private

Definition at line 1142 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TKrb5Session.krbToken

Definition at line 1091 of file ttypes.py.

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

heavydb.thrift.ttypes.TKrb5Session.sessionId

Definition at line 1090 of file ttypes.py.

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


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