Skip to content

Commit

Permalink
Deploying to gh-pages from @ 03a5067 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
caton-hpg committed Apr 26, 2024
1 parent d4315b0 commit 78bc9bb
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 74 deletions.
110 changes: 54 additions & 56 deletions master/d1/dd1/StorageClient_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,66 +152,64 @@
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">explicit</span> <a class="code" href="../../d4/d70/classnebula_1_1StorageClient.html">StorageClient</a>(<span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; metaAddrs,</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keyword">const</span> <a class="code" href="../../db/dac/structnebula_1_1MConfig.html">MConfig</a>&amp; mConfig = <a class="code" href="../../db/dac/structnebula_1_1MConfig.html">MConfig</a>{},</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">const</span> <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a>&amp; sConfig = <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a>{});</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; ~<a class="code" href="../../d4/d70/classnebula_1_1StorageClient.html">StorageClient</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keyword">const</span> std::string&amp; user = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">const</span> std::string&amp; password = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">const</span> <a class="code" href="../../db/dac/structnebula_1_1MConfig.html">MConfig</a>&amp; mConfig = <a class="code" href="../../db/dac/structnebula_1_1MConfig.html">MConfig</a>{},</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">const</span> <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a>&amp; sConfig = <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a>{});</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; std::vector&lt;PartitionID&gt; getParts(<span class="keyword">const</span> std::string&amp; spaceName);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; ~<a class="code" href="../../d4/d70/classnebula_1_1StorageClient.html">StorageClient</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="../../de/d5a/structnebula_1_1ScanEdgeIter.html">ScanEdgeIter</a> scanEdgeWithPart(std::string spaceName,</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; int32_t partID,</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; std::string edgeName,</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; std::vector&lt;std::string&gt; propNames,</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; int64_t limit = DEFAULT_LIMIT,</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; int64_t startTime = DEFAULT_START_TIME,</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; int64_t endTime = DEFAULT_END_TIME,</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; std::string filter = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">bool</span> onlyLatestVersion = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">bool</span> enableReadFromFollower = <span class="keyword">true</span>,</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">bool</span> needAuth = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">const</span> std::string&amp; username = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">const</span> std::string&amp; password = <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="../../d2/ded/structnebula_1_1ScanVertexIter.html">ScanVertexIter</a> scanVertexWithPart(</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; std::string spaceName,</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; int32_t partID,</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// tag name -&gt; prop names</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; std::unordered_map&lt;std::string, std::vector&lt;std::string&gt;&gt; tagProps,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; int64_t limit = DEFAULT_LIMIT,</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; int64_t startTime = DEFAULT_START_TIME,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; int64_t endTime = DEFAULT_END_TIME,</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; std::string filter = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">bool</span> onlyLatestVersion = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">bool</span> enableReadFromFollower = <span class="keyword">true</span>,</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">bool</span> needAuth = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">const</span> std::string&amp; username = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">const</span> std::string&amp; password = <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; std::vector&lt;PartitionID&gt; getParts(<span class="keyword">const</span> std::string&amp; spaceName);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="../../de/d5a/structnebula_1_1ScanEdgeIter.html">ScanEdgeIter</a> scanEdgeWithPart(std::string spaceName,</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; int32_t partID,</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; std::string edgeName,</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; std::vector&lt;std::string&gt; propNames,</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; int64_t limit = DEFAULT_LIMIT,</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; int64_t startTime = DEFAULT_START_TIME,</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; int64_t endTime = DEFAULT_END_TIME,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; std::string filter = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">bool</span> onlyLatestVersion = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">bool</span> enableReadFromFollower = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="../../d2/ded/structnebula_1_1ScanVertexIter.html">ScanVertexIter</a> scanVertexWithPart(</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; std::string spaceName,</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; int32_t partID,</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="comment">// tag name -&gt; prop names</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; std::unordered_map&lt;std::string, std::vector&lt;std::string&gt;&gt; tagProps,</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; int64_t limit = DEFAULT_LIMIT,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; int64_t startTime = DEFAULT_START_TIME,</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; int64_t endTime = DEFAULT_END_TIME,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; std::string filter = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">bool</span> onlyLatestVersion = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">bool</span> enableReadFromFollower = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="../../d1/d91/classnebula_1_1MetaClient.html">MetaClient</a>* getMetaClient() {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">return</span> mClient_.get();</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="../../d1/d91/classnebula_1_1MetaClient.html">MetaClient</a>* getMetaClient() {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">return</span> mClient_.get();</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; }</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; std::pair&lt;::nebula::ErrorCode, storage::cpp2::ScanResponse&gt; doScanEdge(</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keyword">const</span> storage::cpp2::ScanEdgeRequest&amp; req);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; std::pair&lt;::nebula::ErrorCode, storage::cpp2::ScanResponse&gt; doScanEdge(</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">const</span> storage::cpp2::ScanEdgeRequest&amp; req);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; std::pair&lt;::nebula::ErrorCode, storage::cpp2::ScanResponse&gt; doScanVertex(</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keyword">const</span> storage::cpp2::ScanVertexRequest&amp; req);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Request, <span class="keyword">typename</span> RemoteFunc, <span class="keyword">typename</span> Response&gt;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordtype">void</span> getResponse(std::pair&lt;HostAddr, Request&gt;&amp;&amp; request,</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; RemoteFunc&amp;&amp; remoteFunc,</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="../../de/d43/classfolly_1_1Promise.html">folly::Promise</a>&lt;std::pair&lt;::nebula::ErrorCode, Response&gt;&gt; pro);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; std::unique_ptr&lt;MetaClient&gt; mClient_;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a> sConfig_;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; std::shared_ptr&lt;folly::IOThreadPoolExecutor&gt; ioExecutor_;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; std::shared_ptr&lt;thrift::ThriftClientManager&lt;storage::cpp2::GraphStorageServiceAsyncClient&gt;&gt;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; clientsMan_;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;};</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;} <span class="comment">// namespace nebula</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; std::pair&lt;::nebula::ErrorCode, storage::cpp2::ScanResponse&gt; doScanVertex(</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">const</span> storage::cpp2::ScanVertexRequest&amp; req);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Request, <span class="keyword">typename</span> RemoteFunc, <span class="keyword">typename</span> Response&gt;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">void</span> getResponse(std::pair&lt;HostAddr, Request&gt;&amp;&amp; request,</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; RemoteFunc&amp;&amp; remoteFunc,</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="../../de/d43/classfolly_1_1Promise.html">folly::Promise</a>&lt;std::pair&lt;::nebula::ErrorCode, Response&gt;&gt; pro);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; std::string user_;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; std::string password_;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; std::unique_ptr&lt;MetaClient&gt; mClient_;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="../../d5/d04/structnebula_1_1SConfig.html">SConfig</a> sConfig_;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; std::shared_ptr&lt;folly::IOThreadPoolExecutor&gt; ioExecutor_;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; std::shared_ptr&lt;thrift::ThriftClientManager&lt;storage::cpp2::GraphStorageServiceAsyncClient&gt;&gt;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; clientsMan_;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;};</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;} <span class="comment">// namespace nebula</span></div>
<div class="ttc" id="aclassfolly_1_1Promise_html"><div class="ttname"><a href="../../de/d43/classfolly_1_1Promise.html">folly::Promise</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/MetaClient_8h_source.html#l00030">MetaClient.h:30</a></div></div>
<div class="ttc" id="aclassnebula_1_1MetaClient_html"><div class="ttname"><a href="../../d1/d91/classnebula_1_1MetaClient.html">nebula::MetaClient</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/MetaClient_8h_source.html#l00068">MetaClient.h:68</a></div></div>
<div class="ttc" id="aclassnebula_1_1StorageClient_html"><div class="ttname"><a href="../../d4/d70/classnebula_1_1StorageClient.html">nebula::StorageClient</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d1/dd1/StorageClient_8h_source.html#l00061">StorageClient.h:61</a></div></div>
Expand Down
Loading

0 comments on commit 78bc9bb

Please sign in to comment.