Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/spark-connect-rust
/ functions
Functions
681 in github.com/apache/spark-connect-rust
⨍
Functions
681
◇
Types & classes
38
↓ 161 callers
Function
invoke_func
(name: &str, args: I)
crates/connect/src/functions/mod.rs:32
↓ 139 callers
Method
collect
Returns all records as a [RecordBatch] # Example: ```rust async { df.collect().await?; } ```
crates/connect/src/dataframe.rs:204
↓ 93 callers
Function
col
Returns a [Column] based on the given column name.
crates/connect/src/functions/mod.rs:97
↓ 76 callers
Method
create_dataframe
(&self, data: &RecordBatch)
crates/connect/src/session.rs:217
↓ 72 callers
Function
lit
Creates a [Column] of [spark::expression::Literal] value.
crates/connect/src/functions/mod.rs:107
↓ 61 callers
Method
select
Projects a set of expressions and returns a new [DataFrame] # Arguments: `cols` - An iterable of values that can be Columns # Example: ```rust asyn
crates/connect/src/dataframe.rs:969
↓ 45 callers
Method
client
Spark Connection gRPC client interface
crates/connect/src/session.rs:229
↓ 45 callers
Function
setup
()
crates/connect/src/dataframe.rs:1521
↓ 38 callers
Method
relation_input
(self)
crates/connect/src/plan.rs:70
↓ 35 callers
Method
plan_root
Build the Spark [spark::Plan] for a [Relation]
crates/connect/src/plan.rs:75
↓ 28 callers
Method
catalog
Interface through which the user may create, drop, alter or query underlying databases, tables, functions, etc.
crates/connect/src/session.rs:190
↓ 27 callers
Method
range
Create a [DataFrame] with a spingle column named `id`, containing elements in a range from `start` (default 0) to `end` (exclusive) with a step value
crates/connect/src/session.rs:157
↓ 26 callers
Function
setup
()
crates/connect/src/functions/mod.rs:1688
↓ 24 callers
Function
mock_data
()
crates/connect/src/dataframe.rs:1533
↓ 23 callers
Method
read
Returns a [DataFrameReader] that can be used to read datra in as a [DataFrame]
crates/connect/src/session.rs:175
↓ 22 callers
Function
run_cmd
(cmd)
dev/merge_connect_rust_pr.py:111
↓ 22 callers
Method
sql
Returns a [DataFrame] representing the result of the given query
crates/connect/src/session.rs:195
↓ 21 callers
Method
format
Specifies the input data source format
crates/connect/src/streaming/mod.rs:50
↓ 19 callers
Method
build
Attempt to connect to a remote Spark Session and return a [SparkSession]
crates/connect/src/session.rs:128
↓ 18 callers
Method
write
Returns a [DataFrameWriter] struct based on the current [DataFrame]
crates/connect/src/dataframe.rs:1393
↓ 17 callers
Function
setup
()
crates/connect/src/catalog.rs:505
↓ 17 callers
Method
to_arrow
(&mut self, plan: spark::Plan)
crates/connect/src/client/mod.rs:544
↓ 16 callers
Method
format
Specifies the input data source format
crates/connect/src/readwriter.rs:407
↓ 16 callers
Method
load
Loads data from a data source and returns it as a [DataFrame] Example: ```rust let path = vec!["some/dir/path/on/the/remote/cluster/"]; // returns a
crates/connect/src/readwriter.rs:447
↓ 15 callers
Function
setup
()
crates/connect/src/readwriter.rs:888
↓ 14 callers
Method
alias
Create a relation from an existing [LogicalPlanBuilder] this will add additional actions to the [Relation]
crates/connect/src/plan.rs:92
↓ 14 callers
Method
get
Indicates whether the configuration property with the given key is modifiable in the current session.
crates/connect/src/conf.rs:93
↓ 14 callers
Method
option
Add an input option for the underlying data source
crates/connect/src/readwriter.rs:413
↓ 13 callers
Function
continue_maybe
(prompt, cherry=False)
dev/merge_connect_rust_pr.py:119
↓ 13 callers
Method
eq
Equality comparion. Cannot overload the '==' and return something other than a bool
crates/connect/src/column.rs:313
↓ 12 callers
Method
analyze
( &mut self, analyze: spark::analyze_plan_request::Analyze, )
crates/connect/src/client/mod.rs:289
↓ 12 callers
Method
execute_command
(&mut self, plan: spark::Plan)
crates/connect/src/client/mod.rs:520
↓ 12 callers
Method
execute_query_cmd
( &self, command: spark::StreamingQueryCommand, )
crates/connect/src/streaming/mod.rs:313
↓ 12 callers
Method
filter
(self, condition: T)
crates/connect/src/plan.rs:445
↓ 12 callers
Method
mode
Specifies the behavior when data or table already exists # Arguments: - `mode`: [SaveMode] enum from the protobuf
crates/connect/src/readwriter.rs:609
↓ 12 callers
Method
option
Add an input option for the underlying data source
crates/connect/src/streaming/mod.rs:62
↓ 12 callers
Method
sort
(self, cols: I, is_global: bool)
crates/connect/src/plan.rs:707
↓ 11 callers
Function
bold_input
(prompt)
dev/merge_connect_rust_pr.py:77
↓ 11 callers
Method
count
Returns the number of rows in this [DataFrame]
crates/connect/src/dataframe.rs:254
↓ 11 callers
Method
load
(self, path: Option<&str>)
crates/connect/src/streaming/mod.rs:82
↓ 11 callers
Method
query_name
(mut self, name: &str)
crates/connect/src/streaming/mod.rs:216
↓ 11 callers
Method
read_stream
Returns a [DataFrameReader] that can be used to read datra in as a [DataFrame]
crates/connect/src/session.rs:180
↓ 11 callers
Method
start
Start a streaming job to save the contents of the [StreamingQuery] to a data source. The data source is specified by the `format` and a set of `optio
crates/connect/src/streaming/mod.rs:264
↓ 11 callers
Method
write_stream
Interface for [DataStreamWriter] to save the content of the streaming DataFrame out into external storage.
crates/connect/src/dataframe.rs:1399
↓ 10 callers
Method
alias
Returns a new [DataFrame] with an alias set.
crates/connect/src/dataframe.rs:133
↓ 10 callers
Method
append
Append a new field onto the exist fields
crates/connect/src/types.rs:109
↓ 10 callers
Function
print_error
(msg)
dev/merge_connect_rust_pr.py:73
↓ 10 callers
Method
stop
(&self)
crates/connect/src/streaming/mod.rs:446
↓ 9 callers
Method
is_empty
Checks if the DataFrame is empty and returns a boolean value.
crates/connect/src/dataframe.rs:639
↓ 9 callers
Method
relation
(self)
crates/connect/src/plan.rs:62
↓ 9 callers
Function
setup
()
crates/connect/src/streaming/mod.rs:742
↓ 8 callers
Method
first
Returns the first row as a RecordBatch.
crates/connect/src/dataframe.rs:553
↓ 8 callers
Method
over
Defines a windowing column # Arguments: `window`: a [WindowSpec] # Example ``` let window = Window::new() .partition_by([col("name")]) .order_by([c
crates/connect/src/column.rs:358
↓ 8 callers
Method
replace
(self, to_replace: T, value: T, subset: Option<I>)
crates/connect/src/plan.rs:609
↓ 8 callers
Method
save
Save the contents of the [DataFrame] to a data source. The data source is specified by the `format` and a set of `options`.
crates/connect/src/readwriter.rs:670
↓ 8 callers
Method
with_column
(self, col_name: &str, col: Column)
crates/connect/src/plan.rs:749
↓ 7 callers
Method
check_same_session
(&self, other: &DataFrame)
crates/connect/src/dataframe.rs:114
↓ 7 callers
Method
columns
Retrieves the names of all columns in the [DataFrame] as a `Vec<String>`. The order of the column names in the list reflects their order in the [DataF
crates/connect/src/dataframe.rs:211
↓ 7 callers
Method
conf
[RunTimeConfig] configuration interface for Spark.
crates/connect/src/session.rs:301
↓ 7 callers
Method
join
Joins with another [DataFrame], using the given join expression. # Example: ```rust use spark_connect_rs::functions::col; use spark_connect_rs::dataf
crates/connect/src/dataframe.rs:683
↓ 7 callers
Method
join
( self, right: LogicalPlanBuilder, join_condition: Option<T>, join_type: spark
crates/connect/src/plan.rs:519
↓ 7 callers
Method
limit
Limits the result count o thte number specified and returns a new [DataFrame] # Example: ```rust async { df.limit(10).collect().await?; } ```
crates/connect/src/dataframe.rs:705
↓ 7 callers
Method
order_by
(self, cols: I)
crates/connect/src/window.rs:63
↓ 7 callers
Method
select_expr
(self, cols: I)
crates/connect/src/plan.rs:684
↓ 7 callers
Method
session
(&self)
crates/connect/src/session.rs:149
↓ 7 callers
Method
show
Prints the first `n` rows to the console # Arguments: `num_row`: (int, optional) number of rows to show (default 10) `truncate`: (int, optional) If
crates/connect/src/dataframe.rs:1024
↓ 6 callers
Method
agg
Compute aggregates and returns the result as a [DataFrame]
crates/connect/src/group.rs:57
↓ 6 callers
Function
clean_up
()
dev/merge_connect_rust_pr.py:130
↓ 6 callers
Method
desc
Returns a sorted expression based on the ascending order of the column # Example: ```rust let df: DataFrame = df.sort(col("id").desc()); let df: Dat
crates/connect/src/column.rs:148
↓ 6 callers
Method
execute_write
(self, mode: Mode)
crates/connect/src/readwriter.rs:846
↓ 6 callers
Method
schema
Returns the schema of this [DataFrame] as a [spark::DataType] which contains the schema of a [DataFrame]
crates/connect/src/dataframe.rs:944
↓ 6 callers
Method
session_id
Session ID
crates/connect/src/client/mod.rs:128
↓ 6 callers
Method
set_operation
( self, other: LogicalPlanBuilder, set_op_type: SetOpType, is_all: Option<bool
crates/connect/src/plan.rs:355
↓ 5 callers
Method
partition_by
(self, cols: I)
crates/connect/src/window.rs:51
↓ 5 callers
Function
setup
()
crates/connect/src/window.rs:253
↓ 5 callers
Method
sort
Returns a new [DataFrame] sorted by the specified column(s).
crates/connect/src/dataframe.rs:1045
↓ 5 callers
Method
startswith
A filter expression that evaluates if the column startswith a string literal
crates/connect/src/column.rs:287
↓ 5 callers
Method
table_exists
Check if the table or view with the specified name exists.
crates/connect/src/catalog.rs:276
↓ 4 callers
Method
await_any_termination
(&self, timeout: Option<i64>)
crates/connect/src/streaming/mod.rs:682
↓ 4 callers
Method
config_request
( &self, operation: spark::config_request::Operation, )
crates/connect/src/client/mod.rs:343
↓ 4 callers
Method
count
Counts the number of records for each group.
crates/connect/src/group.rs:114
↓ 4 callers
Method
create_table
Creates a table based on the dataset in a data source.
crates/connect/src/catalog.rs:343
↓ 4 callers
Method
create_view_cmd
( self, name: &str, is_global: bool, replace: bool, )
crates/connect/src/dataframe.rs:311
↓ 4 callers
Method
dropna
Returns a new [DataFrame] omitting rows with null values.
crates/connect/src/dataframe.rs:442
↓ 4 callers
Method
execute_command_and_fetch
( &mut self, plan: spark::Plan, )
crates/connect/src/client/mod.rs:530
↓ 4 callers
Function
fail
(msg)
dev/merge_connect_rust_pr.py:105
↓ 4 callers
Method
filter
Filters rows using a given conditions and returns a new [DataFrame] # Example: ```rust async { df.filter("salary > 4000").collect().await?; } ```
crates/connect/src/dataframe.rs:543
↓ 4 callers
Function
get_json
(url)
dev/merge_connect_rust_pr.py:81
↓ 4 callers
Method
group_by
Groups the [DataFrame] using the specified columns, and returns a [GroupedData] object
crates/connect/src/dataframe.rs:572
↓ 4 callers
Method
json
Reads data from JSON files with the specified options.
crates/connect/src/readwriter.rs:519
↓ 4 callers
Function
mock_data
()
crates/connect/src/window.rs:264
↓ 4 callers
Method
output_mode
Specifies the behavior when data or table already exists # Arguments: - `output_mode`: [OutputMode] enum
crates/connect/src/streaming/mod.rs:181
↓ 4 callers
Method
streams
Returns a [StreamingQueryManager] that allows managing all the StreamingQuery instances active on this context.
crates/connect/src/session.rs:306
↓ 4 callers
Method
sum
Computes the sum for each numeric columns for each group.
crates/connect/src/group.rs:105
↓ 4 callers
Method
trigger
Query trigger for data to be processed by
crates/connect/src/streaming/mod.rs:222
↓ 3 callers
Method
and
Logical AND comparion. Cannot overload the '&&' and return something other than a bool
crates/connect/src/column.rs:319
↓ 3 callers
Method
asc_nulls_first
(self)
crates/connect/src/column.rs:112
↓ 3 callers
Function
clean_json_brackets
(json: String)
crates/connect/src/types.rs:632
↓ 3 callers
Method
csv
Reads data from CSV files with the specified options.
crates/connect/src/readwriter.rs:508
↓ 3 callers
Method
desc_nulls_first
(self)
crates/connect/src/column.rs:152
next →
1–100 of 681, ranked by callers