mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
deploy: 0b4e34b03b
This commit is contained in:
@@ -203,234 +203,240 @@ $(function() {
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  Throw<std::runtime_error>(<span class="stringliteral">"nodestore: unknown appnum"</span>);</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67"> 136</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67">close</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#acf5ab73b7ec283a9ee0b73462e1d8531"> 136</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#acf5ab73b7ec283a9ee0b73462e1d8531">isOpen</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.is_open())</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  {</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ac45f916ad224a53a053260d68b622bc7">deletePath_</a>)</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  {</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  boost::filesystem::remove_all(<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a62b70315254855fd1fcbabe62d52495a">name_</a>);</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  }</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350c">Status</a></div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a"> 152</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a">fetch</a>(<span class="keywordtype">void</span> <span class="keyword">const</span>* key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>* pno)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350c">Status</a> status;</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  pno-><a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/reset.html">reset</a>();</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.fetch(</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  key,</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  [key, pno, &status](<span class="keywordtype">void</span> <span class="keyword">const</span>* data, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size) {</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#a4acf97063441a8fd79ef65df3f0fb6e4">nodeobject_decompress</a>(data, size, bf);</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html">DecodedBlob</a> decoded(key, result.first, result.second);</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (!decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a4b3301f4f3697bd09ebf977c8d3f056f">wasOk</a>())</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  {</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  status = <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca915a2fc67fa0633b4995f8c1e4d54bdf">dataCorrupt</a>;</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  *pno = decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a20fe9b3942f79cb6b610114469e827c1">createObject</a>();</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  status = <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca852178e08b8b1f2eb19fd271e63830ef">ok</a>;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  },</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  ec);</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">if</span> (ec == nudb::error::key_not_found)</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350cafa8056068943efe12560207a8a503db8">notFound</a>;</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> status;</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df"> 180</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df">canFetchBatch</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.is_open();</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67"> 142</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67">close</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.is_open())</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  {</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ac45f916ad224a53a053260d68b622bc7">deletePath_</a>)</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  {</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  boost::filesystem::remove_all(<a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a62b70315254855fd1fcbabe62d52495a">name_</a>);</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  }</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350c">Status</a></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a"> 158</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a">fetch</a>(<span class="keywordtype">void</span> <span class="keyword">const</span>* key, <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>* pno)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350c">Status</a> status;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  pno-><a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/reset.html">reset</a>();</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.fetch(</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  key,</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  [key, pno, &status](<span class="keywordtype">void</span> <span class="keyword">const</span>* data, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size) {</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#a4acf97063441a8fd79ef65df3f0fb6e4">nodeobject_decompress</a>(data, size, bf);</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html">DecodedBlob</a> decoded(key, result.first, result.second);</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (!decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a4b3301f4f3697bd09ebf977c8d3f056f">wasOk</a>())</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  {</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  status = <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca915a2fc67fa0633b4995f8c1e4d54bdf">dataCorrupt</a>;</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  *pno = decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a20fe9b3942f79cb6b610114469e827c1">createObject</a>();</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  status = <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca852178e08b8b1f2eb19fd271e63830ef">ok</a>;</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  },</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  ec);</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">if</span> (ec == nudb::error::key_not_found)</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350cafa8056068943efe12560207a8a503db8">notFound</a>;</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> status;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::shared_ptr<NodeObject></a>></div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749"> 186</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749">fetchBatch</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span> <span class="keyword">const</span>* <span class="keyword">const</span>* keys)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df"> 186</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df">canFetchBatch</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  Throw<std::runtime_error>(<span class="stringliteral">"pure virtual called"</span>);</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f"> 193</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a> <span class="keyword">const</span>& no)</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  {</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html">EncodedBlob</a> e;</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a1b3f76ab2c8935a08fb71f77e2100ba4">prepare</a>(<a class="code" href="namespaceripple.html#a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7">no</a>);</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#ac372a37cb687fb559f0f61d733d06ec5">nodeobject_compress</a>(e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#af168e5bddf805f34c09e254d1b078bfa">getData</a>(), e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a709e5c71eeb5b9a9eb635b9c02143815">getSize</a>(), bf);</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.insert(e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a5e302b42921788cc860be6e51f759d76">getKey</a>(), result.first, result.second, ec);</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">if</span> (ec && ec != nudb::error::key_exists)</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  }</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212"> 206</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212">store</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a> <span class="keyword">const</span>& no)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html">BatchWriteReport</a> report;</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">writeCount</a> = 1;</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">auto</span> <span class="keyword">const</span> start = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>();</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(<a class="code" href="namespaceripple.html#a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7">no</a>);</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">elapsed</a> = std::chrono::duration_cast<std::chrono::milliseconds>(</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>() - start);</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a265296b90c702786f4944f344f31d132">scheduler_</a>.<a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">onBatchWrite</a>(report);</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a"> 218</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a">storeBatch</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Batch</a> <span class="keyword">const</span>& batch)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html">BatchWriteReport</a> report;</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">writeCount</a> = batch.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>();</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">auto</span> <span class="keyword">const</span> start = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>();</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& e : batch)</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(e);</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">elapsed</a> = std::chrono::duration_cast<std::chrono::milliseconds>(</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>() - start);</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a265296b90c702786f4944f344f31d132">scheduler_</a>.<a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">onBatchWrite</a>(report);</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  }</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  </div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca"> 231</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca">for_each</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>)> f)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">auto</span> <span class="keyword">const</span> dp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.dat_path();</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keyword">auto</span> <span class="keyword">const</span> kp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.key_path();</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keyword">auto</span> <span class="keyword">const</span> lp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.log_path();</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="comment">// auto const appnum = db_.appnum();</span></div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  nudb::visit(</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  dp,</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  [&](<span class="keywordtype">void</span> <span class="keyword">const</span>* key,</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> key_bytes,</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordtype">void</span> <span class="keyword">const</span>* data,</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size,</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  nudb::error_code&) {</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#a4acf97063441a8fd79ef65df3f0fb6e4">nodeobject_decompress</a>(data, size, bf);</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html">DecodedBlob</a> decoded(key, result.first, result.second);</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordflow">if</span> (!decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a4b3301f4f3697bd09ebf977c8d3f056f">wasOk</a>())</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  {</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  ec = make_error_code(nudb::error::missing_value);</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  f(decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a20fe9b3942f79cb6b610114469e827c1">createObject</a>());</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  },</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  nudb::no_progress{},</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  ec);</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.open(dp, kp, lp, ec);</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  }</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordtype">int</span></div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0"> 268</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0">getWriteLoad</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  }</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::shared_ptr<NodeObject></a>></div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749"> 192</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749">fetchBatch</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span> <span class="keyword">const</span>* <span class="keyword">const</span>* keys)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  Throw<std::runtime_error>(<span class="stringliteral">"pure virtual called"</span>);</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f"> 199</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a> <span class="keyword">const</span>& no)</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  {</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html">EncodedBlob</a> e;</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a1b3f76ab2c8935a08fb71f77e2100ba4">prepare</a>(<a class="code" href="namespaceripple.html#a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7">no</a>);</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#ac372a37cb687fb559f0f61d733d06ec5">nodeobject_compress</a>(e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#af168e5bddf805f34c09e254d1b078bfa">getData</a>(), e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a709e5c71eeb5b9a9eb635b9c02143815">getSize</a>(), bf);</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.insert(e.<a class="code" href="structripple_1_1NodeStore_1_1EncodedBlob.html#a5e302b42921788cc860be6e51f759d76">getKey</a>(), result.first, result.second, ec);</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">if</span> (ec && ec != nudb::error::key_exists)</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  </div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212"> 212</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212">store</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a> <span class="keyword">const</span>& no)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html">BatchWriteReport</a> report;</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">writeCount</a> = 1;</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">auto</span> <span class="keyword">const</span> start = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>();</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(<a class="code" href="namespaceripple.html#a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7">no</a>);</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">elapsed</a> = std::chrono::duration_cast<std::chrono::milliseconds>(</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>() - start);</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a265296b90c702786f4944f344f31d132">scheduler_</a>.<a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">onBatchWrite</a>(report);</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  }</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a"> 224</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a">storeBatch</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Batch</a> <span class="keyword">const</span>& batch)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html">BatchWriteReport</a> report;</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">writeCount</a> = batch.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>();</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">auto</span> <span class="keyword">const</span> start = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>();</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& e : batch)</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">do_insert</a>(e);</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  report.<a class="code" href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">elapsed</a> = std::chrono::duration_cast<std::chrono::milliseconds>(</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a>() - start);</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a265296b90c702786f4944f344f31d132">scheduler_</a>.<a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">onBatchWrite</a>(report);</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca"> 237</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca">for_each</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>)> f)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keyword">auto</span> <span class="keyword">const</span> dp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.dat_path();</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">auto</span> <span class="keyword">const</span> kp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.key_path();</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">auto</span> <span class="keyword">const</span> lp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.log_path();</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="comment">// auto const appnum = db_.appnum();</span></div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  nudb::visit(</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  dp,</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  [&](<span class="keywordtype">void</span> <span class="keyword">const</span>* key,</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> key_bytes,</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordtype">void</span> <span class="keyword">const</span>* data,</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size,</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  nudb::error_code&) {</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  nudb::detail::buffer bf;</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code" href="namespaceripple_1_1NodeStore.html#a4acf97063441a8fd79ef65df3f0fb6e4">nodeobject_decompress</a>(data, size, bf);</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html">DecodedBlob</a> decoded(key, result.first, result.second);</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">if</span> (!decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a4b3301f4f3697bd09ebf977c8d3f056f">wasOk</a>())</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  {</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  ec = make_error_code(nudb::error::missing_value);</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  }</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  f(decoded.<a class="code" href="classripple_1_1NodeStore_1_1DecodedBlob.html#a20fe9b3942f79cb6b610114469e827c1">createObject</a>());</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  },</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  nudb::no_progress{},</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  ec);</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.open(dp, kp, lp, ec);</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  }</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  </div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60"> 274</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60">setDeletePath</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordtype">int</span></div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0"> 274</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0">getWriteLoad</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ac45f916ad224a53a053260d68b622bc7">deletePath_</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  }</div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0"> 280</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0">verify</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60"> 280</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60">setDeletePath</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">auto</span> <span class="keyword">const</span> dp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.dat_path();</div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">auto</span> <span class="keyword">const</span> kp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.key_path();</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">auto</span> <span class="keyword">const</span> lp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.log_path();</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  nudb::verify_info vi;</div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  nudb::verify<nudb::xxhasher>(vi, dp, kp, 0, nudb::no_progress{}, ec);</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.open(dp, kp, lp, ec);</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  }</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  </div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordtype">int</span></div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac"> 299</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac">fdRequired</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">return</span> 3;</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ac45f916ad224a53a053260d68b622bc7">deletePath_</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  }</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0"> 286</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0">verify</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">auto</span> <span class="keyword">const</span> dp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.dat_path();</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">auto</span> <span class="keyword">const</span> kp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.key_path();</div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">auto</span> <span class="keyword">const</span> lp = <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.log_path();</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  nudb::error_code ec;</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.close(ec);</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  nudb::verify_info vi;</div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  nudb::verify<nudb::xxhasher>(vi, dp, kp, 0, nudb::no_progress{}, ec);</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">db_</a>.open(dp, kp, lp, ec);</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordflow">if</span> (ec)</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  Throw<nudb::system_error>(ec);</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  }</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> };</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  </div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  </div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html"> 307</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html">NuDBFactory</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a></div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> {</div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578"> 310</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578">NuDBFactory</a>()</div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  {</div>
|
||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">Manager::instance</a>().<a class="code" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">insert</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  }</div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  </div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6"> 315</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6">~NuDBFactory</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">Manager::instance</a>().<a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">erase</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  </div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15"> 321</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15">getName</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  </div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordtype">int</span></div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac"> 305</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac">fdRequired</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">return</span> 3;</div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  }</div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> };</div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  </div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html"> 313</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html">NuDBFactory</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a></div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> {</div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578"> 316</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578">NuDBFactory</a>()</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  {</div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">Manager::instance</a>().<a class="code" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">insert</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  }</div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  </div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6"> 321</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6">~NuDBFactory</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">return</span> <span class="stringliteral">"NuDB"</span>;</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">Manager::instance</a>().<a class="code" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">erase</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  }</div>
|
||||
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  </div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24"> 327</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24">createInstance</a>(</div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordtype">size_t</span> keyBytes,</div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <a class="code" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& keyValues,</div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">return</span> std::make_unique<NuDBBackend>(</div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  keyBytes, keyValues, scheduler, journal);</div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  }</div>
|
||||
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  </div>
|
||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a"> 338</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a">createInstance</a>(</div>
|
||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordtype">size_t</span> keyBytes,</div>
|
||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& keyValues,</div>
|
||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  nudb::context& context,</div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordflow">return</span> std::make_unique<NuDBBackend>(</div>
|
||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  keyBytes, keyValues, scheduler, context, journal);</div>
|
||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div>
|
||||
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> };</div>
|
||||
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  </div>
|
||||
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0"> 350</a></span> <span class="keyword">static</span> <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html">NuDBFactory</a> <a class="code" href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0">nuDBFactory</a>;</div>
|
||||
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  </div>
|
||||
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> } <span class="comment">// namespace NodeStore</span></div>
|
||||
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15"> 327</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15">getName</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">return</span> <span class="stringliteral">"NuDB"</span>;</div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  }</div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  </div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24"> 333</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24">createInstance</a>(</div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordtype">size_t</span> keyBytes,</div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="code" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& keyValues,</div>
|
||||
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordflow">return</span> std::make_unique<NuDBBackend>(</div>
|
||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  keyBytes, keyValues, scheduler, journal);</div>
|
||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div>
|
||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  </div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a"> 344</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a">createInstance</a>(</div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordtype">size_t</span> keyBytes,</div>
|
||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& keyValues,</div>
|
||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  nudb::context& context,</div>
|
||||
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> journal)<span class="keyword"> override</span></div>
|
||||
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">return</span> std::make_unique<NuDBBackend>(</div>
|
||||
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  keyBytes, keyValues, scheduler, context, journal);</div>
|
||||
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  }</div>
|
||||
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> };</div>
|
||||
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  </div>
|
||||
<div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0"> 356</a></span> <span class="keyword">static</span> <a class="code" href="classripple_1_1NodeStore_1_1NuDBFactory.html">NuDBFactory</a> <a class="code" href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0">nuDBFactory</a>;</div>
|
||||
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  </div>
|
||||
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> } <span class="comment">// namespace NodeStore</span></div>
|
||||
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> } <span class="comment">// namespace ripple</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1Section_html"><div class="ttname"><a href="classripple_1_1Section.html">ripple::Section</a></div><div class="ttdoc">Holds a collection of configuration values.</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00043">BasicConfig.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DecodedBlob_html_a4b3301f4f3697bd09ebf977c8d3f056f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DecodedBlob.html#a4b3301f4f3697bd09ebf977c8d3f056f">ripple::NodeStore::DecodedBlob::wasOk</a></div><div class="ttdeci">bool wasOk() const noexcept</div><div class="ttdoc">Determine if the decoding was successful.</div><div class="ttdef"><b>Definition:</b> <a href="DecodedBlob_8h_source.html#l00046">DecodedBlob.h:46</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_a4acf97063441a8fd79ef65df3f0fb6e4"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#a4acf97063441a8fd79ef65df3f0fb6e4">ripple::NodeStore::nodeobject_decompress</a></div><div class="ttdeci">std::pair< void const *, std::size_t > nodeobject_decompress(void const *in, std::size_t in_size, BufferFactory &&bf)</div><div class="ttdef"><b>Definition:</b> <a href="codec_8h_source.html#l00100">codec.h:100</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Factory_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Factory.html">ripple::NodeStore::Factory</a></div><div class="ttdoc">Base class for backend factories.</div><div class="ttdef"><b>Definition:</b> <a href="Factory_8h_source.html#l00032">Factory.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ac45f916ad224a53a053260d68b622bc7"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ac45f916ad224a53a053260d68b622bc7">ripple::NodeStore::NuDBBackend::deletePath_</a></div><div class="ttdeci">std::atomic< bool > deletePath_</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00047">NuDBFactory.cpp:47</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a00c5d2a5073f3318fc0e52f255a1c212"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212">ripple::NodeStore::NuDBBackend::store</a></div><div class="ttdeci">void store(std::shared_ptr< NodeObject > const &no) override</div><div class="ttdoc">Store a single object.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00206">NuDBFactory.cpp:206</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a00c5d2a5073f3318fc0e52f255a1c212"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a00c5d2a5073f3318fc0e52f255a1c212">ripple::NodeStore::NuDBBackend::store</a></div><div class="ttdeci">void store(std::shared_ptr< NodeObject > const &no) override</div><div class="ttdoc">Store a single object.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00212">NuDBFactory.cpp:212</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1EncodedBlob_html_a709e5c71eeb5b9a9eb635b9c02143815"><div class="ttname"><a href="structripple_1_1NodeStore_1_1EncodedBlob.html#a709e5c71eeb5b9a9eb635b9c02143815">ripple::NodeStore::EncodedBlob::getSize</a></div><div class="ttdeci">std::size_t getSize() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="EncodedBlob_8h_source.html#l00047">EncodedBlob.h:47</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ae6cf1bca8633f03532a5836b959adc60"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60">ripple::NodeStore::NuDBBackend::setDeletePath</a></div><div class="ttdeci">void setDeletePath() override</div><div class="ttdoc">Remove contents on disk upon destruction.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00274">NuDBFactory.cpp:274</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ae6cf1bca8633f03532a5836b959adc60"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae6cf1bca8633f03532a5836b959adc60">ripple::NodeStore::NuDBBackend::setDeletePath</a></div><div class="ttdeci">void setDeletePath() override</div><div class="ttdoc">Remove contents on disk upon destruction.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00280">NuDBFactory.cpp:280</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DecodedBlob_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DecodedBlob.html">ripple::NodeStore::DecodedBlob</a></div><div class="ttdoc">Parsed key/value blob into NodeObject components.</div><div class="ttdef"><b>Definition:</b> <a href="DecodedBlob_8h_source.html#l00038">DecodedBlob.h:38</a></div></div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr< NodeObject ></a></div></div>
|
||||
@@ -438,17 +444,18 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a6254f38a0ebf22670df61fe24934e232"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a6254f38a0ebf22670df61fe24934e232">ripple::NodeStore::NuDBBackend::NuDBBackend</a></div><div class="ttdeci">NuDBBackend(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00050">NuDBFactory.cpp:50</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_af127c2e4fc73b5d35647147ef45b350ca852178e08b8b1f2eb19fd271e63830ef"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca852178e08b8b1f2eb19fd271e63830ef">ripple::NodeStore::ok</a></div><div class="ttdeci">@ ok</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00045">nodestore/Types.h:45</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a9b76452a117753769c60071959d65f23"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">ripple::NodeStore::Manager::erase</a></div><div class="ttdeci">virtual void erase(Factory &factory)=0</div><div class="ttdoc">Remove a factory.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a4ffccad519a4ac36bb0329a186b4783f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">ripple::NodeStore::NuDBBackend::do_insert</a></div><div class="ttdeci">void do_insert(std::shared_ptr< NodeObject > const &no)</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00193">NuDBFactory.cpp:193</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a4ffccad519a4ac36bb0329a186b4783f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4ffccad519a4ac36bb0329a186b4783f">ripple::NodeStore::NuDBBackend::do_insert</a></div><div class="ttdeci">void do_insert(std::shared_ptr< NodeObject > const &no)</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00199">NuDBFactory.cpp:199</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_acf5ab73b7ec283a9ee0b73462e1d8531"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#acf5ab73b7ec283a9ee0b73462e1d8531">ripple::NodeStore::NuDBBackend::isOpen</a></div><div class="ttdeci">bool isOpen() override</div><div class="ttdoc">Returns true is the database is open.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00136">NuDBFactory.cpp:136</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_adc4e6fbf3a6ea019794339b779878a2f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#adc4e6fbf3a6ea019794339b779878a2f">ripple::NodeStore::NuDBBackend::currentType</a></div><div class="ttdeci">static constexpr std::size_t currentType</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00041">NuDBFactory.cpp:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a4162d130c7626e1e5207d1ffd583e880"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4162d130c7626e1e5207d1ffd583e880">ripple::NodeStore::NuDBBackend::~NuDBBackend</a></div><div class="ttdeci">~NuDBBackend() override</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00084">NuDBFactory.cpp:84</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a336d7fe747c73366bec1cf42c5e05b67"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67">ripple::NodeStore::NuDBBackend::close</a></div><div class="ttdeci">void close() override</div><div class="ttdoc">Close the backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00136">NuDBFactory.cpp:136</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a727c895f6364eeaa8e524c1eb456f5df"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df">ripple::NodeStore::NuDBBackend::canFetchBatch</a></div><div class="ttdeci">bool canFetchBatch() override</div><div class="ttdoc">Return true if batch fetches are optimized.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00180">NuDBFactory.cpp:180</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a336d7fe747c73366bec1cf42c5e05b67"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a336d7fe747c73366bec1cf42c5e05b67">ripple::NodeStore::NuDBBackend::close</a></div><div class="ttdeci">void close() override</div><div class="ttdoc">Close the backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00142">NuDBFactory.cpp:142</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a727c895f6364eeaa8e524c1eb456f5df"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a727c895f6364eeaa8e524c1eb456f5df">ripple::NodeStore::NuDBBackend::canFetchBatch</a></div><div class="ttdeci">bool canFetchBatch() override</div><div class="ttdoc">Return true if batch fetches are optimized.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00186">NuDBFactory.cpp:186</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1EncodedBlob_html_af168e5bddf805f34c09e254d1b078bfa"><div class="ttname"><a href="structripple_1_1NodeStore_1_1EncodedBlob.html#af168e5bddf805f34c09e254d1b078bfa">ripple::NodeStore::EncodedBlob::getData</a></div><div class="ttdeci">void const * getData() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="EncodedBlob_8h_source.html#l00053">EncodedBlob.h:53</a></div></div>
|
||||
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a80ceb104dfe540399ddb1fe8d43111ac"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac">ripple::NodeStore::NuDBBackend::fdRequired</a></div><div class="ttdeci">int fdRequired() const override</div><div class="ttdoc">Returns the number of file descriptors the backend expects to need.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00299">NuDBFactory.cpp:299</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_a973a1bce2a9980b6d1ee04c82d280dd0"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0">ripple::NodeStore::nuDBFactory</a></div><div class="ttdeci">static NuDBFactory nuDBFactory</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00350">NuDBFactory.cpp:350</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a80ceb104dfe540399ddb1fe8d43111ac"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a80ceb104dfe540399ddb1fe8d43111ac">ripple::NodeStore::NuDBBackend::fdRequired</a></div><div class="ttdeci">int fdRequired() const override</div><div class="ttdoc">Returns the number of file descriptors the backend expects to need.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00305">NuDBFactory.cpp:305</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_a973a1bce2a9980b6d1ee04c82d280dd0"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#a973a1bce2a9980b6d1ee04c82d280dd0">ripple::NodeStore::nuDBFactory</a></div><div class="ttdeci">static NuDBFactory nuDBFactory</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00356">NuDBFactory.cpp:356</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ae9d0d8d731ae1ac3cc3bb35da8eaf9d2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ae9d0d8d731ae1ac3cc3bb35da8eaf9d2">ripple::NodeStore::NuDBBackend::keyBytes_</a></div><div class="ttdeci">const size_t keyBytes_</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00044">NuDBFactory.cpp:44</a></div></div>
|
||||
<div class="ttc" id="areset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr/reset.html">std::shared_ptr::reset</a></div><div class="ttdeci">T reset(T... args)</div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_af127c2e4fc73b5d35647147ef45b350cafa8056068943efe12560207a8a503db8"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350cafa8056068943efe12560207a8a503db8">ripple::NodeStore::notFound</a></div><div class="ttdeci">@ notFound</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00046">nodestore/Types.h:46</a></div></div>
|
||||
@@ -456,51 +463,51 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_ab1f23554e59a7319ffe3e235cd7028c3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">ripple::NodeStore::Manager::insert</a></div><div class="ttdeci">virtual void insert(Factory &factory)=0</div><div class="ttdoc">Add a factory.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a62b70315254855fd1fcbabe62d52495a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a62b70315254855fd1fcbabe62d52495a">ripple::NodeStore::NuDBBackend::name_</a></div><div class="ttdeci">const std::string name_</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00045">NuDBFactory.cpp:45</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DecodedBlob_html_a20fe9b3942f79cb6b610114469e827c1"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DecodedBlob.html#a20fe9b3942f79cb6b610114469e827c1">ripple::NodeStore::DecodedBlob::createObject</a></div><div class="ttdeci">std::shared_ptr< NodeObject > createObject()</div><div class="ttdoc">Create a NodeObject from this data.</div><div class="ttdef"><b>Definition:</b> <a href="DecodedBlob_8cpp_source.html#l00074">DecodedBlob.cpp:74</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_ac70e1b23b1d525eb20dee6196cdef93a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a">ripple::NodeStore::NuDBFactory::createInstance</a></div><div class="ttdeci">std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, nudb::context &context, beast::Journal journal) override</div><div class="ttdoc">Create an instance of this factory's backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00338">NuDBFactory.cpp:338</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_ac70e1b23b1d525eb20dee6196cdef93a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#ac70e1b23b1d525eb20dee6196cdef93a">ripple::NodeStore::NuDBFactory::createInstance</a></div><div class="ttdeci">std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, nudb::context &context, beast::Journal journal) override</div><div class="ttdoc">Create an instance of this factory's backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00344">NuDBFactory.cpp:344</a></div></div>
|
||||
<div class="ttc" id="achrono_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/chrono.html">chrono</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html">ripple::NodeStore::NuDBBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00038">NuDBFactory.cpp:38</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html">ripple::NodeStore::NuDBFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00307">NuDBFactory.cpp:307</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_adf8b3a8b6f911845a8323cc00c0aeff0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0">ripple::NodeStore::NuDBBackend::getWriteLoad</a></div><div class="ttdeci">int getWriteLoad() override</div><div class="ttdoc">Estimate the number of write operations pending.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00268">NuDBFactory.cpp:268</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html">ripple::NodeStore::NuDBFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00313">NuDBFactory.cpp:313</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_adf8b3a8b6f911845a8323cc00c0aeff0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#adf8b3a8b6f911845a8323cc00c0aeff0">ripple::NodeStore::NuDBBackend::getWriteLoad</a></div><div class="ttdeci">int getWriteLoad() override</div><div class="ttdoc">Estimate the number of write operations pending.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00274">NuDBFactory.cpp:274</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00333">Journal.h:333</a></div></div>
|
||||
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_af127c2e4fc73b5d35647147ef45b350ca915a2fc67fa0633b4995f8c1e4d54bdf"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350ca915a2fc67fa0633b4995f8c1e4d54bdf">ripple::NodeStore::dataCorrupt</a></div><div class="ttdeci">@ dataCorrupt</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00047">nodestore/Types.h:47</a></div></div>
|
||||
<div class="ttc" id="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic< bool ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html">ripple::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00057">ripple/nodestore/Scheduler.h:57</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html">ripple::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00061">ripple/nodestore/Scheduler.h:61</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a2160cbce008b1fd13e1797d81d989128"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2160cbce008b1fd13e1797d81d989128">ripple::NodeStore::NuDBBackend::open</a></div><div class="ttdeci">void open(bool createIfMissing) override</div><div class="ttdoc">Open the backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00096">NuDBFactory.cpp:96</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html">ripple::NodeStore::BatchWriteReport</a></div><div class="ttdoc">Contains information about a batch write operation.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00041">ripple/nodestore/Scheduler.h:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_a64293852b986c017062e4e0fb36808d6"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6">ripple::NodeStore::NuDBFactory::~NuDBFactory</a></div><div class="ttdeci">~NuDBFactory() override</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00315">NuDBFactory.cpp:315</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ab012b4ff123427bc35a5d4ac4c6269c0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0">ripple::NodeStore::NuDBBackend::verify</a></div><div class="ttdeci">void verify() override</div><div class="ttdoc">Perform consistency checks on database.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00280">NuDBFactory.cpp:280</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html">ripple::NodeStore::BatchWriteReport</a></div><div class="ttdoc">Contains information about a batch write operation.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00045">ripple/nodestore/Scheduler.h:45</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_a64293852b986c017062e4e0fb36808d6"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#a64293852b986c017062e4e0fb36808d6">ripple::NodeStore::NuDBFactory::~NuDBFactory</a></div><div class="ttdeci">~NuDBFactory() override</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00321">NuDBFactory.cpp:321</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ab012b4ff123427bc35a5d4ac4c6269c0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab012b4ff123427bc35a5d4ac4c6269c0">ripple::NodeStore::NuDBBackend::verify</a></div><div class="ttdeci">void verify() override</div><div class="ttdoc">Perform consistency checks on database.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00286">NuDBFactory.cpp:286</a></div></div>
|
||||
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a973bd1539e909dcc515980e7b6f61f3d"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a973bd1539e909dcc515980e7b6f61f3d">ripple::NodeStore::NuDBBackend::getName</a></div><div class="ttdeci">std::string getName() override</div><div class="ttdoc">Get the human-readable name of this backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00090">NuDBFactory.cpp:90</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_af127c2e4fc73b5d35647147ef45b350c"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#af127c2e4fc73b5d35647147ef45b350c">ripple::NodeStore::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">Return codes from Backend operations.</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2Types_8h_source.html#l00044">nodestore/Types.h:44</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a265296b90c702786f4944f344f31d132"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a265296b90c702786f4944f344f31d132">ripple::NodeStore::NuDBBackend::scheduler_</a></div><div class="ttdeci">Scheduler & scheduler_</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00048">NuDBFactory.cpp:48</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a2e04de763e8f9767b4404605e4f8e749"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749">ripple::NodeStore::NuDBBackend::fetchBatch</a></div><div class="ttdeci">std::vector< std::shared_ptr< NodeObject > > fetchBatch(std::size_t n, void const *const *keys) override</div><div class="ttdoc">Fetch a batch synchronously.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00186">NuDBFactory.cpp:186</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_acacec80114639c2972dd5431df852d15"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15">ripple::NodeStore::NuDBFactory::getName</a></div><div class="ttdeci">std::string getName() const override</div><div class="ttdoc">Retrieve the name of this factory.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00321">NuDBFactory.cpp:321</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_aa2ec806ffe260c437716a892da12fa24"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24">ripple::NodeStore::NuDBFactory::createInstance</a></div><div class="ttdeci">std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, beast::Journal journal) override</div><div class="ttdoc">Create an instance of this factory's backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00327">NuDBFactory.cpp:327</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a2e04de763e8f9767b4404605e4f8e749"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a2e04de763e8f9767b4404605e4f8e749">ripple::NodeStore::NuDBBackend::fetchBatch</a></div><div class="ttdeci">std::vector< std::shared_ptr< NodeObject > > fetchBatch(std::size_t n, void const *const *keys) override</div><div class="ttdoc">Fetch a batch synchronously.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00192">NuDBFactory.cpp:192</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_acacec80114639c2972dd5431df852d15"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#acacec80114639c2972dd5431df852d15">ripple::NodeStore::NuDBFactory::getName</a></div><div class="ttdeci">std::string getName() const override</div><div class="ttdoc">Retrieve the name of this factory.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00327">NuDBFactory.cpp:327</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_aa2ec806ffe260c437716a892da12fa24"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#aa2ec806ffe260c437716a892da12fa24">ripple::NodeStore::NuDBFactory::createInstance</a></div><div class="ttdeci">std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, beast::Journal journal) override</div><div class="ttdoc">Create an instance of this factory's backend.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00333">NuDBFactory.cpp:333</a></div></div>
|
||||
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
|
||||
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_ab46fa0adb15e06e0b97eca22dac45356"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#ab46fa0adb15e06e0b97eca22dac45356">ripple::NodeStore::NuDBBackend::NuDBBackend</a></div><div class="ttdeci">NuDBBackend(size_t keyBytes, Section const &keyValues, Scheduler &scheduler, nudb::context &context, beast::Journal journal)</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00066">NuDBFactory.cpp:66</a></div></div>
|
||||
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/empty.html">std::string::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a93307b4032398645d984ecc1f90bd1e7"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a93307b4032398645d984ecc1f90bd1e7">ripple::NodeStore::NuDBBackend::db_</a></div><div class="ttdeci">nudb::store db_</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00046">NuDBFactory.cpp:46</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a4e9abc2a44a3501131709dcd6d5c509a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a">ripple::NodeStore::NuDBBackend::storeBatch</a></div><div class="ttdeci">void storeBatch(Batch const &batch) override</div><div class="ttdoc">Store a group of objects.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00218">NuDBFactory.cpp:218</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a4e9abc2a44a3501131709dcd6d5c509a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a4e9abc2a44a3501131709dcd6d5c509a">ripple::NodeStore::NuDBBackend::storeBatch</a></div><div class="ttdeci">void storeBatch(Batch const &batch) override</div><div class="ttdoc">Store a group of objects.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00224">NuDBFactory.cpp:224</a></div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a357c5cc140aa8da903855175e07b4d0b"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">ripple::NodeStore::BatchWriteReport::writeCount</a></div><div class="ttdeci">int writeCount</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00046">ripple/nodestore/Scheduler.h:46</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a357c5cc140aa8da903855175e07b4d0b"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a357c5cc140aa8da903855175e07b4d0b">ripple::NodeStore::BatchWriteReport::writeCount</a></div><div class="ttdeci">int writeCount</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00050">ripple/nodestore/Scheduler.h:50</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_ac372a37cb687fb559f0f61d733d06ec5"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#ac372a37cb687fb559f0f61d733d06ec5">ripple::NodeStore::nodeobject_compress</a></div><div class="ttdeci">std::pair< void const *, std::size_t > nodeobject_compress(void const *in, std::size_t in_size, BufferFactory &&bf)</div><div class="ttdef"><b>Definition:</b> <a href="codec_8h_source.html#l00211">codec.h:211</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1EncodedBlob_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1EncodedBlob.html">ripple::NodeStore::EncodedBlob</a></div><div class="ttdoc">Utility for producing flattened node objects.</div><div class="ttdef"><b>Definition:</b> <a href="EncodedBlob_8h_source.html#l00034">EncodedBlob.h:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_abaf0ba251ee000601135df13dd885dca"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca">ripple::NodeStore::NuDBBackend::for_each</a></div><div class="ttdeci">void for_each(std::function< void(std::shared_ptr< NodeObject >)> f) override</div><div class="ttdoc">Visit every object in the database This is usually called during import.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00231">NuDBFactory.cpp:231</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_abaf0ba251ee000601135df13dd885dca"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#abaf0ba251ee000601135df13dd885dca">ripple::NodeStore::NuDBBackend::for_each</a></div><div class="ttdeci">void for_each(std::function< void(std::shared_ptr< NodeObject >)> f) override</div><div class="ttdoc">Visit every object in the database This is usually called during import.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00237">NuDBFactory.cpp:237</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a59f9bcb7e6049d1b4c557891992f6cab"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">ripple::NodeStore::Manager::instance</a></div><div class="ttdeci">static Manager & instance()</div><div class="ttdoc">Returns the instance of the manager singleton.</div><div class="ttdef"><b>Definition:</b> <a href="ManagerImp_8cpp_source.html#l00117">ManagerImp.cpp:117</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1EncodedBlob_html_a5e302b42921788cc860be6e51f759d76"><div class="ttname"><a href="structripple_1_1NodeStore_1_1EncodedBlob.html#a5e302b42921788cc860be6e51f759d76">ripple::NodeStore::EncodedBlob::getKey</a></div><div class="ttdeci">void const * getKey() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="EncodedBlob_8h_source.html#l00041">EncodedBlob.h:41</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a183bf74eb142fef4d3dd5d18905d9a22"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">ripple::NodeStore::BatchWriteReport::elapsed</a></div><div class="ttdeci">std::chrono::milliseconds elapsed</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00045">ripple/nodestore/Scheduler.h:45</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriteReport_html_a183bf74eb142fef4d3dd5d18905d9a22"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriteReport.html#a183bf74eb142fef4d3dd5d18905d9a22">ripple::NodeStore::BatchWriteReport::elapsed</a></div><div class="ttdeci">std::chrono::milliseconds elapsed</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00049">ripple/nodestore/Scheduler.h:49</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7"><div class="ttname"><a href="namespaceripple.html#a688b41d0cecb7feb9aa46e64d9c8f3b9a7fa3b767c460b54a2be4d49030b349c7">ripple::SeqCheck::no</a></div><div class="ttdeci">@ no</div></div>
|
||||
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="acstdio_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdio.html">cstdio</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html_a0adffe6c4e42f062bd47864f4e615a39"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html#a0adffe6c4e42f062bd47864f4e615a39">ripple::NodeStore::Scheduler::onBatchWrite</a></div><div class="ttdeci">virtual void onBatchWrite(BatchWriteReport const &report)=0</div><div class="ttdoc">Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a1b03edf356922e780fe41987476f1f6a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a">ripple::NodeStore::NuDBBackend::fetch</a></div><div class="ttdeci">Status fetch(void const *key, std::shared_ptr< NodeObject > *pno) override</div><div class="ttdoc">Fetch a single object.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00152">NuDBFactory.cpp:152</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBBackend_html_a1b03edf356922e780fe41987476f1f6a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBBackend.html#a1b03edf356922e780fe41987476f1f6a">ripple::NodeStore::NuDBBackend::fetch</a></div><div class="ttdeci">Status fetch(void const *key, std::shared_ptr< NodeObject > *pno) override</div><div class="ttdoc">Fetch a single object.</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00158">NuDBFactory.cpp:158</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a104985c6e3067babe99aca6bbc51ba5d"><div class="ttname"><a href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">ripple::get</a></div><div class="ttdeci">T & get(EitherAmount &amt)</div><div class="ttdef"><b>Definition:</b> <a href="AmountSpec_8h_source.html#l00116">AmountSpec.h:116</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1NodeStore_1_1EncodedBlob_html_a1b3f76ab2c8935a08fb71f77e2100ba4"><div class="ttname"><a href="structripple_1_1NodeStore_1_1EncodedBlob.html#a1b3f76ab2c8935a08fb71f77e2100ba4">ripple::NodeStore::EncodedBlob::prepare</a></div><div class="ttdeci">void prepare(std::shared_ptr< NodeObject > const &object)</div><div class="ttdef"><b>Definition:</b> <a href="EncodedBlob_8cpp_source.html#l00027">EncodedBlob.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_ae58d42a9fdd839a64936d84187817578"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578">ripple::NodeStore::NuDBFactory::NuDBFactory</a></div><div class="ttdeci">NuDBFactory()</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00310">NuDBFactory.cpp:310</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1NuDBFactory_html_ae58d42a9fdd839a64936d84187817578"><div class="ttname"><a href="classripple_1_1NodeStore_1_1NuDBFactory.html#ae58d42a9fdd839a64936d84187817578">ripple::NodeStore::NuDBFactory::NuDBFactory</a></div><div class="ttdeci">NuDBFactory()</div><div class="ttdef"><b>Definition:</b> <a href="NuDBFactory_8cpp_source.html#l00316">NuDBFactory.cpp:316</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Backend_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Backend.html">ripple::NodeStore::Backend</a></div><div class="ttdoc">A backend used for the NodeStore.</div><div class="ttdef"><b>Definition:</b> <a href="Backend_8h_source.html#l00037">Backend.h:37</a></div></div>
|
||||
<div class="ttc" id="anow_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/steady_clock/now.html">std::chrono::steady_clock::now</a></div><div class="ttdeci">T now(T... args)</div></div>
|
||||
<!-- start footer part -->
|
||||
|
||||
Reference in New Issue
Block a user