Files
greptimedb/servers/pending_rows_batcher/index.html
2026-05-15 04:01:35 +00:00

3 lines
15 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="API documentation for the Rust `pending_rows_batcher` mod in crate `servers`."><title>servers::pending_rows_batcher - 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-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="servers" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.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"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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 pending_rows_batcher</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../servers/index.html">servers</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module pending_<wbr>rows_<wbr>batcher</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</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 servers</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" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">servers</a></div><h1>Module <span>pending_<wbr>rows_<wbr>batcher</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/servers/pending_rows_batcher.rs.html#15-2704">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.BatchKey.html" title="struct servers::pending_rows_batcher::BatchKey">Batch<wbr>Key</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.CatalogManagerPhysicalFlushAdapter.html" title="struct servers::pending_rows_batcher::CatalogManagerPhysicalFlushAdapter">Catalog<wbr>Manager<wbr>Physical<wbr>Flush<wbr>Adapter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.FlushBatch.html" title="struct servers::pending_rows_batcher::FlushBatch">Flush<wbr>Batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.FlushRegionWrite.html" title="struct servers::pending_rows_batcher::FlushRegionWrite">Flush<wbr>Region<wbr>Write</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.FlushWaiter.html" title="struct servers::pending_rows_batcher::FlushWaiter">Flush<wbr>Waiter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.NodeManagerPhysicalFlushAdapter.html" title="struct servers::pending_rows_batcher::NodeManagerPhysicalFlushAdapter">Node<wbr>Manager<wbr>Physical<wbr>Flush<wbr>Adapter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.PartitionManagerPhysicalFlushAdapter.html" title="struct servers::pending_rows_batcher::PartitionManagerPhysicalFlushAdapter">Partition<wbr>Manager<wbr>Physical<wbr>Flush<wbr>Adapter</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.PendingBatch.html" title="struct servers::pending_rows_batcher::PendingBatch">Pending<wbr>Batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.PendingRowsBatcher.html" title="struct servers::pending_rows_batcher::PendingRowsBatcher">Pending<wbr>Rows<wbr>Batcher</a></dt><dd>Prometheus remote write pending rows batcher.</dd><dt><a class="struct" href="struct.PendingWorker.html" title="struct servers::pending_rows_batcher::PendingWorker">Pending<wbr>Worker</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.PhysicalTableMetadata.html" title="struct servers::pending_rows_batcher::PhysicalTableMetadata">Physical<wbr>Table<wbr>Metadata</a></dt><dt><a class="struct" href="struct.PlannedRegionBatch.html" title="struct servers::pending_rows_batcher::PlannedRegionBatch">Planned<wbr>Region<wbr>Batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.ResolvedRegionBatch.html" title="struct servers::pending_rows_batcher::ResolvedRegionBatch">Resolved<wbr>Region<wbr>Batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="struct" href="struct.TableBatch.html" title="struct servers::pending_rows_batcher::TableBatch">Table<wbr>Batch</a></dt><dt><a class="struct" href="struct.TableResolutionPlan.html" title="struct servers::pending_rows_batcher::TableResolutionPlan">Table<wbr>Resolution<wbr>Plan</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Intermediate planning state for resolving and preparing logical tables
before row-to-batch alignment.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.WorkerCommand.html" title="enum servers::pending_rows_batcher::WorkerCommand">Worker<wbr>Command</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt></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.PENDING_ROWS_BATCH_SYNC_ENV.html" title="constant servers::pending_rows_batcher::PENDING_ROWS_BATCH_SYNC_ENV">PENDING_<wbr>ROWS_<wbr>BATCH_<wbr>SYNC_<wbr>ENV</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Whether wait for ingestion result before reply to client.</dd><dt><a class="constant" href="constant.PHYSICAL_REGION_ESSENTIAL_COLUMN_COUNT.html" title="constant servers::pending_rows_batcher::PHYSICAL_REGION_ESSENTIAL_COLUMN_COUNT">PHYSICAL_<wbr>REGION_<wbr>ESSENTIAL_<wbr>COLUMN_<wbr>COUNT</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="constant" href="constant.PHYSICAL_TABLE_KEY.html" title="constant servers::pending_rows_batcher::PHYSICAL_TABLE_KEY">PHYSICAL_<wbr>TABLE_<wbr>KEY</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="constant" href="constant.WORKER_IDLE_TIMEOUT_MULTIPLIER.html" title="constant servers::pending_rows_batcher::WORKER_IDLE_TIMEOUT_MULTIPLIER">WORKER_<wbr>IDLE_<wbr>TIMEOUT_<wbr>MULTIPLIER</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.PendingRowsSchemaAlterer.html" title="trait servers::pending_rows_batcher::PendingRowsSchemaAlterer">Pending<wbr>Rows<wbr>Schema<wbr>Alterer</a></dt><dt><a class="trait" href="trait.PhysicalFlushCatalogProvider.html" title="trait servers::pending_rows_batcher::PhysicalFlushCatalogProvider">Physical<wbr>Flush<wbr>Catalog<wbr>Provider</a></dt><dt><a class="trait" href="trait.PhysicalFlushNodeRequester.html" title="trait servers::pending_rows_batcher::PhysicalFlushNodeRequester">Physical<wbr>Flush<wbr>Node<wbr>Requester</a></dt><dt><a class="trait" href="trait.PhysicalFlushPartitionProvider.html" title="trait servers::pending_rows_batcher::PhysicalFlushPartitionProvider">Physical<wbr>Flush<wbr>Partition<wbr>Provider</a></dt></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.batch_key_from_ctx.html" title="fn servers::pending_rows_batcher::batch_key_from_ctx">batch_<wbr>key_<wbr>from_<wbr>ctx</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.columns_taxonomy.html" title="fn servers::pending_rows_batcher::columns_taxonomy">columns_<wbr>taxonomy</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Classifies columns in a logical-table batch for sparse primary-key conversion.</dd><dt><a class="fn" href="fn.concat_modified_batches.html" title="fn servers::pending_rows_batcher::concat_modified_batches">concat_<wbr>modified_<wbr>batches</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Concatenates all modified batches into a single large batch.</dd><dt><a class="fn" href="fn.drain_batch.html" title="fn servers::pending_rows_batcher::drain_batch">drain_<wbr>batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.encode_region_write_requests.html" title="fn servers::pending_rows_batcher::encode_region_write_requests">encode_<wbr>region_<wbr>write_<wbr>requests</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.flush_batch.html" title="fn servers::pending_rows_batcher::flush_batch">flush_<wbr>batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.flush_batch_physical.html" title="fn servers::pending_rows_batcher::flush_batch_physical">flush_<wbr>batch_<wbr>physical</a></dt><dd>Flushes a batch of logical table rows by transforming them into the physical table format
and writing them to the appropriate datanode regions.</dd><dt><a class="fn" href="fn.flush_region_writes_concurrently.html" title="fn servers::pending_rows_batcher::flush_region_writes_concurrently">flush_<wbr>region_<wbr>writes_<wbr>concurrently</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.notify_waiters.html" title="fn servers::pending_rows_batcher::notify_waiters">notify_<wbr>waiters</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.plan_region_batch.html" title="fn servers::pending_rows_batcher::plan_region_batch">plan_<wbr>region_<wbr>batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.plan_region_batches.html" title="fn servers::pending_rows_batcher::plan_region_batches">plan_<wbr>region_<wbr>batches</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.prepare_physical_region_routing_batch.html" title="fn servers::pending_rows_batcher::prepare_physical_region_routing_batch">prepare_<wbr>physical_<wbr>region_<wbr>routing_<wbr>batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.record_batch_to_ipc.html" title="fn servers::pending_rows_batcher::record_batch_to_ipc">record_<wbr>batch_<wbr>to_<wbr>ipc</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.remove_worker_if_same_channel.html" title="fn servers::pending_rows_batcher::remove_worker_if_same_channel">remove_<wbr>worker_<wbr>if_<wbr>same_<wbr>channel</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.resolve_region_targets.html" title="fn servers::pending_rows_batcher::resolve_region_targets">resolve_<wbr>region_<wbr>targets</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.should_close_worker_on_idle_timeout.html" title="fn servers::pending_rows_batcher::should_close_worker_on_idle_timeout">should_<wbr>close_<wbr>worker_<wbr>on_<wbr>idle_<wbr>timeout</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.should_dispatch_concurrently.html" title="fn servers::pending_rows_batcher::should_dispatch_concurrently">should_<wbr>dispatch_<wbr>concurrently</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.spawn_flush.html" title="fn servers::pending_rows_batcher::spawn_flush">spawn_<wbr>flush</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.split_combined_batch_by_region.html" title="fn servers::pending_rows_batcher::split_combined_batch_by_region">split_<wbr>combined_<wbr>batch_<wbr>by_<wbr>region</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.start_worker.html" title="fn servers::pending_rows_batcher::start_worker">start_<wbr>worker</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.strip_partition_columns_from_batch.html" title="fn servers::pending_rows_batcher::strip_partition_columns_from_batch">strip_<wbr>partition_<wbr>columns_<wbr>from_<wbr>batch</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.transform_logical_batches_to_physical.html" title="fn servers::pending_rows_batcher::transform_logical_batches_to_physical">transform_<wbr>logical_<wbr>batches_<wbr>to_<wbr>physical</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Transforms logical table batches into physical format (sparse primary key encoding).</dd></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.PendingRowsSchemaAltererRef.html" title="type servers::pending_rows_batcher::PendingRowsSchemaAltererRef">Pending<wbr>Rows<wbr>Schema<wbr>Alterer<wbr>Ref</a></dt></dl></section></div></main></body></html>