Import this into scope in order to use:
Import this into scope in order to use:
import org.opencypher.caps.api.CAPSSession.RecordsAsDF // ... val df: DataFrame = results.records.asDF
Returns the DataFrame column name for the given Cypher RETURN item.
Returns the DataFrame column name for the given Cypher RETURN item.
import org.opencypher.caps.api.CAPSSession._ // ... val results = socialNetwork.cypher("MATCH (a) RETURN a.name") val dataFrame = results.records.asDF val projection = dataFrame.select(columnFor("a.name"))
Cypher RETURN item (e.g. "a.name")
DataFrame column name for given RETURN item
Creates a new org.opencypher.spark.api.CAPSSession based on the given org.apache.spark.sql.SparkSession.
Creates a new org.opencypher.spark.api.CAPSSession based on the given org.apache.spark.sql.SparkSession.
CAPS session
Creates a new CAPSSession that wraps a local Spark session with CAPS default parameters.