Skip to contents

If eager evaluation is enabled and the Spark object is a SparkDataFrame, evaluate the SparkDataFrame and print top rows of the SparkDataFrame, otherwise, print the class and type information of the Spark object.

Usage

# S4 method for class 'Column'
show(object)

# S4 method for class 'GroupedData'
show(object)

# S4 method for class 'SparkDataFrame'
show(object)

# S4 method for class 'WindowSpec'
show(object)

# S4 method for class 'StreamingQuery'
show(object)

Arguments

object

a Spark object. Can be a SparkDataFrame, Column, GroupedData, WindowSpec.

Note

show(Column) since 1.4.0

show(GroupedData) since 1.4.0

show(SparkDataFrame) since 1.4.0

show(WindowSpec) since 2.0.0

show(StreamingQuery) since 2.2.0

Examples

if (FALSE) { # \dontrun{
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
show(df)
} # }