Skip to main content

Crate flow

Crate flow 

Source
Expand description

Flow execution and flownode services.

Re-exportsยง

pub use error::Error;
pub use error::Result;

Modulesยง

adapter ๐Ÿ”’
Flow source schema management and stateless streaming execution.
batching_mode ๐Ÿ”’
Run flow as batching mode which is time-window-aware normal query triggered when new data arrives
df_optimizer ๐Ÿ”’
Datafusion optimizer for flow plan
engine ๐Ÿ”’
Define a trait for flow engine, which is used by both streaming engine and batch engine
error
Error definition for flow module
expr ๐Ÿ”’
Small row-batch conversion helper used by stateless streaming.
heartbeat
Send heartbeat from flownode to metasrv
metrics ๐Ÿ”’
Some of the metrics used in the flow module.
repr ๐Ÿ”’
basically a wrapper around the datatype crate for basic Data Representation
server ๐Ÿ”’
Implementation of grpc service for flow node
utils ๐Ÿ”’

Structsยง

BatchingExecutionGuard
Owns a whole serialized execution round. It may be moved to an execution collaborator, so cancellation of the caller cannot release the round early.
BatchingModeOptions
BatchingTask
ExecuteOnceOutcome
FlowConfig
FlownodeBuilder
FlownodeInstance Builder
FlownodeInstance
The flownode server instance.
FlownodeOptions
FlownodeServer
FlownodeServiceBuilder
Useful in distributed mode
IncrementalAggregateAnalysis
Analysis result for an incremental aggregate plan.
IncrementalAggregateMergeColumn
Describes how one aggregate output field should be merged with the corresponding existing field in the sink table.
PlanInfo
StreamingEngine
TaskArgs
Arguments for creating batching task
TimeWindowExpr
Time window expr like date_bin(INTERVAL '1' MINUTE, ts), this type help with evaluating the expr using given timestamp

Enumsยง

DirtyRestore
FrontendClient
A simple frontend client able to execute sql using grpc protocol
IncrementalAggregateMergeOp
PeerDesc
Describe a peer of frontend
QueryCoverage

Traitsยง

BatchingExecution
BatchingExecutionFactory
GrpcQueryHandlerWithBoxedError
Adapter trait for GrpcQueryHandler that boxes the underlying error into BoxedError.

Functionsยง

analyze_incremental_aggregate_plan
find_time_window_expr
Return (the column name of time index column, the time window expr, the expected time unit of time index column, the expr's schema for evaluating the time window)
sql_to_df_plan
Convert sql to datafusion logical plan Also support TQL (but only Eval not Explain or Analyze)

Type Aliasesยง

FlowDualEngineRef
Ref to FlowDualEngine
FlowStreamingEngineRef