MCPcopy Create free account
hub / github.com/apache/thrift / readContainerSet

Method readContainerSet

lib/py/src/protocol/TProtocol.py:287–294  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

285 return results
286
287 def readContainerSet(self, spec):
288 ttype, tspec, is_immutable = spec
289 (set_type, set_len) = self.readSetBegin()
290 # TODO: compare types we just decoded with thrift_spec
291 elems = islice(self._read_by_ttype(ttype, spec, tspec), set_len)
292 results = (frozenset if is_immutable else set)(elems)
293 self.readSetEnd()
294 return results
295
296 def readContainerStruct(self, spec):
297 (obj_class, obj_spec) = spec

Callers

nothing calls this directly

Calls 3

readSetBeginMethod · 0.95
_read_by_ttypeMethod · 0.95
readSetEndMethod · 0.95

Tested by

no test coverage detected