Class

org.opencypher.spark.api.CAPSSession

RecordsAsDF

Related Doc: package CAPSSession

Permalink

implicit final class RecordsAsDF extends AnyVal

Import this into scope in order to use:

import org.opencypher.caps.api.CAPSSession.RecordsAsDF
// ...
val df: DataFrame = results.records.asDF
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RecordsAsDF
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RecordsAsDF(records: CypherRecords)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def asDataFrame: DataFrame

    Permalink

    Extracts the underlying org.apache.spark.sql#DataFrame from the given records.

    Extracts the underlying org.apache.spark.sql#DataFrame from the given records.

    Note that the column names in the returned DF do not necessarily correspond to the names of the Cypher RETURN items, e.g. "RETURN n.name" does not mean that the column for that item is named "n.name".

    returns

    org.apache.spark.sql#DataFrame representing the records

  5. def asDataset: Dataset[CypherMap]

    Permalink

    Converts all values stored in this table to instances of the corresponding CypherValue class.

    Converts all values stored in this table to instances of the corresponding CypherValue class. In particular, this de-flattens, or collects, flattened entities (nodes and relationships) into compact CypherNode/CypherRelationship objects.

    All values on each row are inserted into a CypherMap object mapped to the corresponding field name.

    returns

    org.apache.spark.sql.Dataset of CypherMaps

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. val records: CypherRecords

    Permalink
  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped