26.12.6 現在ロード中のグラフの取得

serverState.get("graphs_currently_loading")は、現在ロード中のグラフに関する進捗情報を返します。

1つのグラフに対応する各エントリは、次のとおりです。

{
    "name": "anonymous_graph_1",
    "session_id": "530b5f9a-75c4-4838-9cc3-44df44b035c5",
    "start_loading_timestamp": 1605468453030,
    "elapsed_loading_time_ms": 281742,
    "num_vertices_read": 10000000,
    "num_edges_read": 196500000,
    "num_edge_providers_loaded": 1,
    "num_edge_providers_remaining": 9,
    "num_vertex_providers_loaded": 1,
    "num_vertex_providers_remaining": 0,
    "loading_phase": "reading edges",
    "loading_phase_start_timestamp": 1605468453085,
    "loading_phase_elapsed_time_ms": 281687,
    "loading_phase_state": "current vertex provider index: 1, number of vertices read for prorvider: 0, current edge provider index: 1, number of edges read for prorvider: 76,500,000"
}

nameフィールドには、グラフの一時的な名前が含まれます。これは、ロードした後にグラフに割り当てられる名前と異なる場合があります。

読み取られた頂点およびエッジの数を示すフィールドは、10,000エンティティの間隔で定期的に更新されます。

フィールドloading_phaseは、グラフ・ロード中の現在のフェーズを示します。有効な値は"reading edges"または"building graph indices"です。一部のロード・フェーズでは、フィールドloading_phase_stateに、フェーズに関する追加情報を示す文字列が含まれます。ただし、すべてのロード・フェーズでこの追加情報を提供されるわけではありません。

ノート:

graphs_currently_loadingは、同種のグラフのデータ形式CSVADJ_LISTEDGE_LISTTWO_TABLESおよびPG (FLAT_FILE)と、パーティション化されたグラフの形式CSVおよびRDBMSでサポートされています。