MCPcopy Create free account

hub / github.com/apache/spark-connect-rust / functions

Functions681 in github.com/apache/spark-connect-rust

↓ 161 callersFunctioninvoke_func
(name: &str, args: I)
crates/connect/src/functions/mod.rs:32
↓ 139 callersMethodcollect
Returns all records as a [RecordBatch] # Example: ```rust async { df.collect().await?; } ```
crates/connect/src/dataframe.rs:204
↓ 93 callersFunctioncol
Returns a [Column] based on the given column name.
crates/connect/src/functions/mod.rs:97
↓ 76 callersMethodcreate_dataframe
(&self, data: &RecordBatch)
crates/connect/src/session.rs:217
↓ 72 callersFunctionlit
Creates a [Column] of [spark::expression::Literal] value.
crates/connect/src/functions/mod.rs:107
↓ 61 callersMethodselect
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 callersMethodclient
Spark Connection gRPC client interface
crates/connect/src/session.rs:229
↓ 45 callersFunctionsetup
()
crates/connect/src/dataframe.rs:1521
↓ 38 callersMethodrelation_input
(self)
crates/connect/src/plan.rs:70
↓ 35 callersMethodplan_root
Build the Spark [spark::Plan] for a [Relation]
crates/connect/src/plan.rs:75
↓ 28 callersMethodcatalog
Interface through which the user may create, drop, alter or query underlying databases, tables, functions, etc.
crates/connect/src/session.rs:190
↓ 27 callersMethodrange
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 callersFunctionsetup
()
crates/connect/src/functions/mod.rs:1688
↓ 24 callersFunctionmock_data
()
crates/connect/src/dataframe.rs:1533
↓ 23 callersMethodread
Returns a [DataFrameReader] that can be used to read datra in as a [DataFrame]
crates/connect/src/session.rs:175
↓ 22 callersFunctionrun_cmd
(cmd)
dev/merge_connect_rust_pr.py:111
↓ 22 callersMethodsql
Returns a [DataFrame] representing the result of the given query
crates/connect/src/session.rs:195
↓ 21 callersMethodformat
Specifies the input data source format
crates/connect/src/streaming/mod.rs:50
↓ 19 callersMethodbuild
Attempt to connect to a remote Spark Session and return a [SparkSession]
crates/connect/src/session.rs:128
↓ 18 callersMethodwrite
Returns a [DataFrameWriter] struct based on the current [DataFrame]
crates/connect/src/dataframe.rs:1393
↓ 17 callersFunctionsetup
()
crates/connect/src/catalog.rs:505
↓ 17 callersMethodto_arrow
(&mut self, plan: spark::Plan)
crates/connect/src/client/mod.rs:544
↓ 16 callersMethodformat
Specifies the input data source format
crates/connect/src/readwriter.rs:407
↓ 16 callersMethodload
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 callersFunctionsetup
()
crates/connect/src/readwriter.rs:888
↓ 14 callersMethodalias
Create a relation from an existing [LogicalPlanBuilder] this will add additional actions to the [Relation]
crates/connect/src/plan.rs:92
↓ 14 callersMethodget
Indicates whether the configuration property with the given key is modifiable in the current session.
crates/connect/src/conf.rs:93
↓ 14 callersMethodoption
Add an input option for the underlying data source
crates/connect/src/readwriter.rs:413
↓ 13 callersFunctioncontinue_maybe
(prompt, cherry=False)
dev/merge_connect_rust_pr.py:119
↓ 13 callersMethodeq
Equality comparion. Cannot overload the '==' and return something other than a bool
crates/connect/src/column.rs:313
↓ 12 callersMethodanalyze
( &mut self, analyze: spark::analyze_plan_request::Analyze, )
crates/connect/src/client/mod.rs:289
↓ 12 callersMethodexecute_command
(&mut self, plan: spark::Plan)
crates/connect/src/client/mod.rs:520
↓ 12 callersMethodexecute_query_cmd
( &self, command: spark::StreamingQueryCommand, )
crates/connect/src/streaming/mod.rs:313
↓ 12 callersMethodfilter
(self, condition: T)
crates/connect/src/plan.rs:445
↓ 12 callersMethodmode
Specifies the behavior when data or table already exists # Arguments: - `mode`: [SaveMode] enum from the protobuf
crates/connect/src/readwriter.rs:609
↓ 12 callersMethodoption
Add an input option for the underlying data source
crates/connect/src/streaming/mod.rs:62
↓ 12 callersMethodsort
(self, cols: I, is_global: bool)
crates/connect/src/plan.rs:707
↓ 11 callersFunctionbold_input
(prompt)
dev/merge_connect_rust_pr.py:77
↓ 11 callersMethodcount
Returns the number of rows in this [DataFrame]
crates/connect/src/dataframe.rs:254
↓ 11 callersMethodload
(self, path: Option<&str>)
crates/connect/src/streaming/mod.rs:82
↓ 11 callersMethodquery_name
(mut self, name: &str)
crates/connect/src/streaming/mod.rs:216
↓ 11 callersMethodread_stream
Returns a [DataFrameReader] that can be used to read datra in as a [DataFrame]
crates/connect/src/session.rs:180
↓ 11 callersMethodstart
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 callersMethodwrite_stream
Interface for [DataStreamWriter] to save the content of the streaming DataFrame out into external storage.
crates/connect/src/dataframe.rs:1399
↓ 10 callersMethodalias
Returns a new [DataFrame] with an alias set.
crates/connect/src/dataframe.rs:133
↓ 10 callersMethodappend
Append a new field onto the exist fields
crates/connect/src/types.rs:109
↓ 10 callersFunctionprint_error
(msg)
dev/merge_connect_rust_pr.py:73
↓ 10 callersMethodstop
(&self)
crates/connect/src/streaming/mod.rs:446
↓ 9 callersMethodis_empty
Checks if the DataFrame is empty and returns a boolean value.
crates/connect/src/dataframe.rs:639
↓ 9 callersMethodrelation
(self)
crates/connect/src/plan.rs:62
↓ 9 callersFunctionsetup
()
crates/connect/src/streaming/mod.rs:742
↓ 8 callersMethodfirst
Returns the first row as a RecordBatch.
crates/connect/src/dataframe.rs:553
↓ 8 callersMethodover
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 callersMethodreplace
(self, to_replace: T, value: T, subset: Option<I>)
crates/connect/src/plan.rs:609
↓ 8 callersMethodsave
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 callersMethodwith_column
(self, col_name: &str, col: Column)
crates/connect/src/plan.rs:749
↓ 7 callersMethodcheck_same_session
(&self, other: &DataFrame)
crates/connect/src/dataframe.rs:114
↓ 7 callersMethodcolumns
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 callersMethodconf
[RunTimeConfig] configuration interface for Spark.
crates/connect/src/session.rs:301
↓ 7 callersMethodjoin
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 callersMethodjoin
( self, right: LogicalPlanBuilder, join_condition: Option<T>, join_type: spark
crates/connect/src/plan.rs:519
↓ 7 callersMethodlimit
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 callersMethodorder_by
(self, cols: I)
crates/connect/src/window.rs:63
↓ 7 callersMethodselect_expr
(self, cols: I)
crates/connect/src/plan.rs:684
↓ 7 callersMethodsession
(&self)
crates/connect/src/session.rs:149
↓ 7 callersMethodshow
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 callersMethodagg
Compute aggregates and returns the result as a [DataFrame]
crates/connect/src/group.rs:57
↓ 6 callersFunctionclean_up
()
dev/merge_connect_rust_pr.py:130
↓ 6 callersMethoddesc
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 callersMethodexecute_write
(self, mode: Mode)
crates/connect/src/readwriter.rs:846
↓ 6 callersMethodschema
Returns the schema of this [DataFrame] as a [spark::DataType] which contains the schema of a [DataFrame]
crates/connect/src/dataframe.rs:944
↓ 6 callersMethodsession_id
Session ID
crates/connect/src/client/mod.rs:128
↓ 6 callersMethodset_operation
( self, other: LogicalPlanBuilder, set_op_type: SetOpType, is_all: Option<bool
crates/connect/src/plan.rs:355
↓ 5 callersMethodpartition_by
(self, cols: I)
crates/connect/src/window.rs:51
↓ 5 callersFunctionsetup
()
crates/connect/src/window.rs:253
↓ 5 callersMethodsort
Returns a new [DataFrame] sorted by the specified column(s).
crates/connect/src/dataframe.rs:1045
↓ 5 callersMethodstartswith
A filter expression that evaluates if the column startswith a string literal
crates/connect/src/column.rs:287
↓ 5 callersMethodtable_exists
Check if the table or view with the specified name exists.
crates/connect/src/catalog.rs:276
↓ 4 callersMethodawait_any_termination
(&self, timeout: Option<i64>)
crates/connect/src/streaming/mod.rs:682
↓ 4 callersMethodconfig_request
( &self, operation: spark::config_request::Operation, )
crates/connect/src/client/mod.rs:343
↓ 4 callersMethodcount
Counts the number of records for each group.
crates/connect/src/group.rs:114
↓ 4 callersMethodcreate_table
Creates a table based on the dataset in a data source.
crates/connect/src/catalog.rs:343
↓ 4 callersMethodcreate_view_cmd
( self, name: &str, is_global: bool, replace: bool, )
crates/connect/src/dataframe.rs:311
↓ 4 callersMethoddropna
Returns a new [DataFrame] omitting rows with null values.
crates/connect/src/dataframe.rs:442
↓ 4 callersMethodexecute_command_and_fetch
( &mut self, plan: spark::Plan, )
crates/connect/src/client/mod.rs:530
↓ 4 callersFunctionfail
(msg)
dev/merge_connect_rust_pr.py:105
↓ 4 callersMethodfilter
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 callersFunctionget_json
(url)
dev/merge_connect_rust_pr.py:81
↓ 4 callersMethodgroup_by
Groups the [DataFrame] using the specified columns, and returns a [GroupedData] object
crates/connect/src/dataframe.rs:572
↓ 4 callersMethodjson
Reads data from JSON files with the specified options.
crates/connect/src/readwriter.rs:519
↓ 4 callersFunctionmock_data
()
crates/connect/src/window.rs:264
↓ 4 callersMethodoutput_mode
Specifies the behavior when data or table already exists # Arguments: - `output_mode`: [OutputMode] enum
crates/connect/src/streaming/mod.rs:181
↓ 4 callersMethodstreams
Returns a [StreamingQueryManager] that allows managing all the StreamingQuery instances active on this context.
crates/connect/src/session.rs:306
↓ 4 callersMethodsum
Computes the sum for each numeric columns for each group.
crates/connect/src/group.rs:105
↓ 4 callersMethodtrigger
Query trigger for data to be processed by
crates/connect/src/streaming/mod.rs:222
↓ 3 callersMethodand
Logical AND comparion. Cannot overload the '&&' and return something other than a bool
crates/connect/src/column.rs:319
↓ 3 callersMethodasc_nulls_first
(self)
crates/connect/src/column.rs:112
↓ 3 callersFunctionclean_json_brackets
(json: String)
crates/connect/src/types.rs:632
↓ 3 callersMethodcsv
Reads data from CSV files with the specified options.
crates/connect/src/readwriter.rs:508
↓ 3 callersMethoddesc_nulls_first
(self)
crates/connect/src/column.rs:152
next →1–100 of 681, ranked by callers