MCPcopy Create free account
hub / github.com/alibaba/GraphScope / _get_node_attr_cache

Method _get_node_attr_cache

python/graphscope/nx/classes/cache.py:352–360  ·  view source on GitHub ↗
(self, gid)

Source from the content-addressed store, hash-verified

350 return gid, node_size, node_array
351
352 def _get_node_attr_cache(self, gid):
353 op = dag_utils.report_graph(
354 self._graph, types_pb2.NODE_ATTR_CACHE_BY_GID, gid=gid
355 )
356 archive = op.eval()
357 gid = archive.get_uint64()
358 fp = io.BytesIO(archive.get_bytes())
359 node_attr_cache = msgpack.load(fp, use_list=False)
360 return gid, node_attr_cache
361
362 def _get_succ_cache(self, gid):
363 op = dag_utils.report_graph(self._graph, types_pb2.SUCC_BY_GID, gid=gid)

Callers

nothing calls this directly

Calls 4

get_uint64Method · 0.80
evalMethod · 0.45
get_bytesMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected