Liking cljdoc? Tell your friends :D

zero-one.geni.core.clojure-idioms


=clj

Params: (other: Any)

Result: Column

Equality test.

1.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/Column.html

Timestamp: 2020-10-19T01:56:19.843Z

Params: (other: Any)

Result: Column

Equality test.

1.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/Column.html

Timestamp: 2020-10-19T01:56:19.843Z
sourceraw docstring

booleanclj

(boolean expr)

Casts the column to a boolean.

Casts the column to a boolean.
sourceraw docstring

byteclj

(byte expr)

Casts the column to a byte.

Casts the column to a byte.
sourceraw docstring

caseclj

(case expr & clauses)

Returns a new Column imitating Clojure's case macro behaviour.

Returns a new Column imitating Clojure's `case` macro behaviour.
sourceraw docstring

condclj

(cond & clauses)

Returns a new Column imitating Clojure's cond macro behaviour.

Returns a new Column imitating Clojure's `cond` macro behaviour.
sourceraw docstring

condpclj

(condp pred expr & clauses)

Returns a new Column imitating Clojure's condp macro behaviour.

Returns a new Column imitating Clojure's `condp` macro behaviour.
sourceraw docstring

decclj

(dec expr)

Returns an expression one less than expr.

Returns an expression one less than `expr`.
sourceraw docstring

doubleclj

(double expr)

Casts the column to a double.

Casts the column to a double.
sourceraw docstring

even?clj

(even? expr)

Returns true if expr is even, else false.

Returns true if `expr` is even, else false.
sourceraw docstring

floatclj

(float expr)

Casts the column to a float.

Casts the column to a float.
sourceraw docstring

ifclj

(if condition if-expr)
(if condition if-expr else-expr)

Params: (condition: Column, value: Any)

Result: Column

Evaluates a list of conditions and returns one of multiple possible result expressions. If otherwise is not defined at the end, null is returned for unmatched conditions.

1.4.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.724Z

Params: (condition: Column, value: Any)

Result: Column

Evaluates a list of conditions and returns one of multiple possible result expressions.
If otherwise is not defined at the end, null is returned for unmatched conditions.

1.4.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.724Z
sourceraw docstring

incclj

(inc expr)

Returns an expression one greater than expr.

Returns an expression one greater than `expr`.
sourceraw docstring

intclj

(int expr)

Casts the column to an int.

Casts the column to an int.
sourceraw docstring

keysclj

(keys expr)

Params: (e: Column)

Result: Column

Returns an unordered array containing the keys of the map.

2.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.472Z

Params: (e: Column)

Result: Column

Returns an unordered array containing the keys of the map.

2.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.472Z
sourceraw docstring

longclj

(long expr)

Casts the column to a long.

Casts the column to a long.
sourceraw docstring

mergeclj

(merge expr & ms)

Variadic version of map-concat.

Variadic version of `map-concat`.
sourceraw docstring

merge-withclj

(merge-with left right merge-fn)

Params: (left: Column, right: Column, f: (Column, Column, Column) ⇒ Column)

Result: Column

Merge two given maps, key-wise into a single map using a function.

the left input map column

the right input map column

(key, value1, value2) => new_value, the lambda function to merge the map values

3.0.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.474Z

Params: (left: Column, right: Column, f: (Column, Column, Column) ⇒ Column)

Result: Column

Merge two given maps, key-wise into a single map using a function.

the left input map column

the right input map column

(key, value1, value2) => new_value, the lambda function to merge the map values

3.0.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.474Z
sourceraw docstring

neg?clj

(neg? expr)

Returns true if expr is less than zero, else false.

Returns true if `expr` is less than zero, else false.
sourceraw docstring

odd?clj

(odd? expr)

Returns true if expr is odd, else false.

Returns true if `expr` is odd, else false.
sourceraw docstring

pos?clj

(pos? expr)

Returns true if expr is greater than zero, else false.

Returns true if `expr` is greater than zero, else false.
sourceraw docstring

rand-nthclj

(rand-nth dataframe)

Returns a random row collected.

Returns a random row collected.
sourceraw docstring

removeclj

(remove dataframe expr)

Returns a new Dataset that only contains elements where func returns false.

Returns a new Dataset that only contains elements where func returns false.
sourceraw docstring

rename-keysclj

(rename-keys expr kmap)

Same as transform-keys with a map arg.

Same as `transform-keys` with a map arg.
sourceraw docstring

select-keysclj

(select-keys expr ks)

Returns a map containing only those entries in map (expr) whose key is in ks.

Returns a map containing only those entries in map (`expr`) whose key is in `ks`.
sourceraw docstring

shortclj

(short expr)

Casts the column to a short.

Casts the column to a short.
sourceraw docstring

strclj

(str expr)

Casts the column to a str.

Casts the column to a str.
sourceraw docstring

valsclj

(vals expr)

Params: (e: Column)

Result: Column

Returns an unordered array containing the values of the map.

2.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.473Z

Params: (e: Column)

Result: Column

Returns an unordered array containing the values of the map.

2.3.0

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.473Z
sourceraw docstring

zero?clj

(zero? expr)

Returns true if expr is zero, else false.

Returns true if `expr` is zero, else false.
sourceraw docstring

zipmapclj

(zipmap key-expr val-expr)

Params: (keys: Column, values: Column)

Result: Column

Creates a new map column. The array in the first column is used for keys. The array in the second column is used for values. All elements in the array for key should not be null.

2.4

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.470Z

Params: (keys: Column, values: Column)

Result: Column

Creates a new map column. The array in the first column is used for keys. The array in the
second column is used for values. All elements in the array for key should not be null.


2.4

Source: https://spark.apache.org/docs/3.0.1/api/scala/org/apache/spark/sql/functions$.html

Timestamp: 2020-10-19T01:56:22.470Z
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close