Expand description
Worker requests.
StructsΒ§
- Build
Index πRequest - Bulk
Column π - A column of the batch of a bulk insert.
- Bulk
Insert πRequest - Caught
UpAgain π - The result of a catchup again, see
RegionWorkerLoop::catch_up_again. - Compaction
Failed π - A failing compaction result.
- Compaction
Finished π - Notifies a compaction job has finished.
- Copy
Region πFrom Finished - Copy
Region πFrom Request - Discard
Unflushed πResult - Notifies the result of discarding unflushed data from a region.
- Enter
Staging πResult - Notifies the region the result of entering staging.
- Flush
Failed π - Notifies a flush job is failed.
- Flush
Finished π - Notifies a flush job is finished.
- Handed
Over π - The handover a catchup committed for a region, see hand_over.
- Index
Build πFinished - Index
Build πStopped - Notifies an index build job has been stopped.
- Option
Output πTx - Optional output result sender.
- Output
Tx - Oneshot output result sender.
- Pause
Compaction πResponse - The requester owns the guard even while an active compaction is draining.
- Region
Change πResult - Notifies the region the result of writing region change action.
- Region
Edit πRequest - Request to edit a region directly.
- Region
Edit πResult - Notifies the region of the result of editing its manifest.
- Region
Sync πRequest - Remap
Manifests πRequest - RowColumn π
- A column of the rows of a WriteRequest.
- Sender
Bulk πRequest - Sender
DdlRequest π - Sender and Ddl request.
- Sender
Write πRequest - Sender and write request.
- Truncate
Result π - Notifies the truncate result of a region.
- Waiters π
- Worker
Request πWith Time - Request sent to a worker with timestamp
- Write
Request - Request to write a region.
EnumsΒ§
- Background
Notify π - Notification from a background job.
- Compaction
Unit πNotification - A local unit event carries only identity, never an input reservation lease.
- DdlRequest π
- DDL request to a region.
- Region
Edit πKind - Transient execution semantics; this is never serialized into the manifest.
- Region
Edit πOutcome - Whether the worker needs to install the edit in the in-memory version.
- Worker
Request π - Request sent to a worker
TraitsΒ§
- OnFailure π
- Callback on failure.
- Request
Column π - A column of a write request, as check_request_columns sees it.
FunctionsΒ§
- check_
bulk_ insert_ batch - Checks the batch of a bulk insert against the region schema with the rules
WriteRequest::check_schema applies to rows: column names are unique, every
column is a column of the region with its Arrow type and contains nulls only
if the region column is nullable, and a missing column is nullable or has a
default value. Tags may use any string encoding. Sparse batches must carry the
tags in one encoded primary key column. Companion tag columns (for example,
__table_idfor partition expressions) are allowed and checked against the region schema; the encoded key remains authoritative for storage. Returns whether the batch misses columns that the writer fills. - check_
column_ πcan_ be_ filled - Checks that a write may leave out
column, which is then filled with its default value or null. - check_
request_ πcolumns - Checks the columns of a write request against the region schema. Each column
must be a column of the region, have its data type and, if the request carries
one, its semantic type, and contain nulls only if the region column is
nullable.
check_missingchecks the region columns that the request doesnβt have. Returns whether there are such columns. - validate_
proto_ πvalue - Validate proto value schema.