Files
greptimedb/mito2/worker/index.html
2025-12-25 05:03:15 +00:00

2 lines
10 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Structs and utilities for writing regions."><title>mito2::worker - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mito2" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module worker</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../mito2/index.html">mito2</a><span class="version">1.0.0-beta.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module worker</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate mito2</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">mito2</a></div><h1>Module <span>worker</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/mito2/worker.rs.html#15-1388">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Structs and utilities for writing regions.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="handle_alter/index.html" title="mod mito2::worker::handle_alter">handle_<wbr>alter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling alter related requests.</dd><dt><a class="mod" href="handle_apply_staging/index.html" title="mod mito2::worker::handle_apply_staging">handle_<wbr>apply_<wbr>staging</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_bulk_insert/index.html" title="mod mito2::worker::handle_bulk_insert">handle_<wbr>bulk_<wbr>insert</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles bulk insert requests.</dd><dt><a class="mod" href="handle_catchup/index.html" title="mod mito2::worker::handle_catchup">handle_<wbr>catchup</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling catchup request.</dd><dt><a class="mod" href="handle_close/index.html" title="mod mito2::worker::handle_close">handle_<wbr>close</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling close request.</dd><dt><a class="mod" href="handle_compaction/index.html" title="mod mito2::worker::handle_compaction">handle_<wbr>compaction</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_copy_region/index.html" title="mod mito2::worker::handle_copy_region">handle_<wbr>copy_<wbr>region</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_create/index.html" title="mod mito2::worker::handle_create">handle_<wbr>create</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling create request.</dd><dt><a class="mod" href="handle_drop/index.html" title="mod mito2::worker::handle_drop">handle_<wbr>drop</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling drop request.</dd><dt><a class="mod" href="handle_enter_staging/index.html" title="mod mito2::worker::handle_enter_staging">handle_<wbr>enter_<wbr>staging</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_flush/index.html" title="mod mito2::worker::handle_flush">handle_<wbr>flush</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling flush related requests.</dd><dt><a class="mod" href="handle_manifest/index.html" title="mod mito2::worker::handle_manifest">handle_<wbr>manifest</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles manifest.</dd><dt><a class="mod" href="handle_open/index.html" title="mod mito2::worker::handle_open">handle_<wbr>open</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling open request.</dd><dt><a class="mod" href="handle_rebuild_index/index.html" title="mod mito2::worker::handle_rebuild_index">handle_<wbr>rebuild_<wbr>index</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handles index build requests.</dd><dt><a class="mod" href="handle_remap/index.html" title="mod mito2::worker::handle_remap">handle_<wbr>remap</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="handle_truncate/index.html" title="mod mito2::worker::handle_truncate">handle_<wbr>truncate</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling truncate related requests.</dd><dt><a class="mod" href="handle_write/index.html" title="mod mito2::worker::handle_write">handle_<wbr>write</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Handling write requests.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.RegionWorker.html" title="struct mito2::worker::RegionWorker">Region<wbr>Worker</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Worker to write and alter regions bound to it.</dd><dt><a class="struct" href="struct.RegionWorkerLoop.html" title="struct mito2::worker::RegionWorkerLoop">Region<wbr>Worker<wbr>Loop</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Background worker loop to handle requests.</dd><dt><a class="struct" href="struct.StalledRequests.html" title="struct mito2::worker::StalledRequests">Stalled<wbr>Requests</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Buffer for stalled write requests.</dd><dt><a class="struct" href="struct.WorkerGroup.html" title="struct mito2::worker::WorkerGroup">Worker<wbr>Group</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>A fixed size group of <a href="struct.RegionWorker.html" title="struct mito2::worker::RegionWorker">RegionWorkers</a>.</dd><dt><a class="struct" href="struct.WorkerListener.html" title="struct mito2::worker::WorkerListener">Worker<wbr>Listener</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Wrapper that only calls event listener in tests.</dd><dt><a class="struct" href="struct.WorkerStarter.html" title="struct mito2::worker::WorkerStarter">Worker<wbr>Starter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Worker start config.</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.CHECK_REGION_INTERVAL.html" title="constant mito2::worker::CHECK_REGION_INTERVAL">CHECK_<wbr>REGION_<wbr>INTERVAL</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Interval to check whether regions should flush.</dd><dt><a class="constant" href="constant.DROPPING_MARKER_FILE.html" title="constant mito2::worker::DROPPING_MARKER_FILE">DROPPING_<wbr>MARKER_<wbr>FILE</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="constant" href="constant.MAX_INITIAL_CHECK_DELAY_SECS.html" title="constant mito2::worker::MAX_INITIAL_CHECK_DELAY_SECS">MAX_<wbr>INITIAL_<wbr>CHECK_<wbr>DELAY_<wbr>SECS</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Max delay to check region periodical tasks.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.region_id_to_index.html" title="fn mito2::worker::region_id_to_index">region_<wbr>id_<wbr>to_<wbr>index</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.worker_init_check_delay.html" title="fn mito2::worker::worker_init_check_delay">worker_<wbr>init_<wbr>check_<wbr>delay</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Computes a initial check delay for a worker.</dd><dt><a class="fn" href="fn.write_cache_from_config.html" title="fn mito2::worker::write_cache_from_config">write_<wbr>cache_<wbr>from_<wbr>config</a></dt></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.RequestBuffer.html" title="type mito2::worker::RequestBuffer">Request<wbr>Buffer</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="type" href="type.WorkerId.html" title="type mito2::worker::WorkerId">Worker<wbr>Id</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Identifier for a worker.</dd></dl></section></div></main></body></html>