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

Method __init__

python/graphscope/analytical/app/java_app.py:343–357  ·  view source on GitHub ↗
(self, graph: Graph, app_assets: JavaApp)

Source from the content-addressed store, hash-verified

341 """retrict app assets to javaAppAssets"""
342
343 def __init__(self, graph: Graph, app_assets: JavaApp):
344 self._graph = graph
345 self._app_assets = app_assets
346 self._session = graph.session
347 if not self._app_assets.is_compatible(self._graph):
348 raise Exception(
349 "No compactiable app and graph: {} and {}".format(
350 self._app_assets.java_app_type, self._graph.template_str
351 )
352 )
353
354 self._op = bind_app(graph, self._app_assets)
355 # add op to dag
356 self._session.dag.add_op(self._app_assets.op)
357 self._session.dag.add_op(self._op)
358
359 def _convert_arrow_frag_for_java(self, cpp_frag_str: str):
360 """Convert vineyard::ArrowFragment<OID,VID> to gs::ArrowFragmentDefault<OID>"""

Callers

nothing calls this directly

Calls 4

bind_appFunction · 0.90
add_opMethod · 0.80
is_compatibleMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected