(self, graph: Graph, app_assets: JavaApp)
| 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>""" |
nothing calls this directly
no test coverage detected