Package

com

intersystems

Permalink

package intersystems

Visibility
  1. Public
  2. All

Value Members

  1. package spark

    Permalink

    Package object for the InterSystems IRIS Spark Connector.

    Package object for the InterSystems IRIS Spark Connector.

    Defines a custom interface for the InterSystems IRIS Spark Connector, a set of classes and types that together offer a more convenient type safe Scala interface for the connector than that of the generic string-based interface that comes built into Spark itself.

    Example:
    1. scala> import com.intersystems.spark._

      imports the custom interface into the current scope, allowing one to write, for example:

      scala> spark.read.iris("SELECT name FROM Owls").show(3)
      +---------+
      |    name |
      +---------+
      |    Barn |
      |  Horned |
      | Screech |
      +---------+

      to read and display the first few records of a table called 'Owls' from the default cluster, while:

      scala> owls.write.mode("append").iris("Owls")

      appends the contents of the dataframe owls to this very same table within the cluster.

Ungrouped