Mapa mental
DataFrame
Contenido del mapa
DataFrame
Extends RDD & contains Row objects
can run SQL queries on SparkSession object: df = spark.sql("SELECT * FROM permcd")
- df.show() to display rows or query results
has a schema = leading to more efficient storage
to create it, we use Spark Session object
- can be created from CSV, JSON
- to make the Dataset available to SQL within the current context: df.createOrReplaceTempView("someTableName")
Transformations = select, distinct, groupBy, orderBy, sum, filter, limit
- Actions (=Lazy Execution) = show, count, collect, save, printSchema
since Spark 2.0 it's preferred data API
Información
- Descripción
- Big Data Mapa Mental sobre DataFrame, creado por Anna Anisienia el 03/10/2018.
- Creado por
- Anna Anisienia · oct 2018
- Actualizado
- 3 oct 2018
- Visitas
- 1
- Valoración