Skip to main content

Module adapter

Module adapter 

Source

StructsΒ§

AsyncRecordBatchStreamAdapter
DfRecordBatchStreamAdapter
Greptime SendableRecordBatchStream -> DataFusion RecordBatchStream. The reverse one is RecordBatchStreamAdapter.
MetricCollector
An [ExecutionPlanVisitor] to collect metrics from a [ExecutionPlan].
NativeTreeMetric
The tree an operator runs, registered as one of that operator’s metrics.
NativeTreeMetrics
One node of a tree an operator runs inside itself, with the figures that node recorded.
PlanMetrics
RecordBatchMetrics
RecordBatchMetrics carrys metrics value from datanode to frontend through gRPC
RecordBatchStreamAdapter
DataFusion SendableRecordBatchStream -> Greptime RecordBatchStream. The reverse one is DfRecordBatchStreamAdapter. It can collect metrics from DataFusion execution plan.
RecordBatchStreamTypeAdapter
Casts the RecordBatches of stream against the output_schema.
RegionQueryStatCounters
Query statistic counters owned by a region.
RegionWatermarkEntry

EnumsΒ§

AsyncRecordBatchStreamAdapterState πŸ”’
Metrics πŸ”’
Json encoded metrics. Contains metric from a whole plan tree.

ConstantsΒ§

NATIVE_TREE_METRIC
The name an operator registers its tree under.
REGION_SCAN_EXEC_NAME πŸ”’
SERIES_SCAN_EXEC_NAME

FunctionsΒ§

collect_full_metrics πŸ”’
Collects the complete plan metrics used by terminal metrics and verbose analyze output.
collect_lightweight_query_load_metrics πŸ”’
Collects the minimal metrics needed for query-load reporting before EOF.
collect_lightweight_query_load_metrics_inner πŸ”’
Recursively walks the physical plan and reads raw metric values without formatting plan nodes.
convert_map_to_json_binary πŸ”’
Convert a Map array to a Binary array containing JSON data
custom_cast πŸ”’
Custom cast function that handles Map -> Binary (JSON) conversion
format_bytes_human_readable
Renders bytes the way a plan line reports a memory figure.
format_metric
Renders one metric as label: value, the way every ANALYZE line reports it.
is_bytes_metric
Determines if a metric name represents a bytes measurement that should be formatted.
is_region_scan_name πŸ”’
is_time_metric
Determines if a metric name represents a time measurement that should be formatted.
one_line πŸ”’
Returns a single-line summary of the root of the plan. If the verbose flag is set, it will display detailed information about the plan.
record_query_stats πŸ”’
region_scan_output_bytes
Extracts total output_bytes from region scan plan nodes.

Type AliasesΒ§

FutureStream πŸ”’
NativeTreeReader πŸ”’
Builds the tree a reader sees, when it asks for it.