Class/Object

org.apache.spark.h2o

H2OContext

Related Docs: object H2OContext | package h2o

Permalink

class H2OContext extends H2OContextExtensions

Create new H2OContext based on provided H2O configuration

Self Type
H2OContext
Linear Supertypes
H2OContextExtensions, ShellUtils, RestApiUtils, RestCommunication, RestEncodingUtils, Logging, Serializable, Serializable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. H2OContext
  2. H2OContextExtensions
  3. ShellUtils
  4. RestApiUtils
  5. RestCommunication
  6. RestEncodingUtils
  7. Logging
  8. Serializable
  9. Serializable
  10. Logging
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def asDataFrame(s: String): DataFrame

    Permalink
    Annotations
    @DeprecatedMethod( "asSparkFrame" , "3.32" )
  5. def asDataFrame(s: String, copyMetadata: Boolean): DataFrame

    Permalink
    Annotations
    @DeprecatedMethod( "asSparkFrame" , "3.32" )
  6. def asDataFrame[T <: Frame](fr: T, copyMetadata: Boolean = true): DataFrame

    Permalink
    Annotations
    @DeprecatedMethod( "asSparkFrame" , "3.32" )
  7. def asH2OFrame(fr: Frame): H2OFrame

    Permalink

    Create a new H2OFrame based on existing Frame

  8. def asH2OFrame(s: String): H2OFrame

    Permalink

    Create a new H2OFrame based on existing Frame referenced by its key.

  9. def asH2OFrame(ds: SupportedDataset, frameName: String): H2OFrame

    Permalink
  10. def asH2OFrame(ds: SupportedDataset, frameName: Option[String]): H2OFrame

    Permalink
  11. def asH2OFrame(ds: SupportedDataset): H2OFrame

    Permalink

    Transforms Dataset[Supported type] to H2OFrame

  12. def asH2OFrame(df: DataFrame, frameName: String): H2OFrame

    Permalink
  13. def asH2OFrame(df: DataFrame, frameName: Option[String]): H2OFrame

    Permalink
  14. def asH2OFrame(df: DataFrame): H2OFrame

    Permalink

    Transform DataFrame to H2OFrame

  15. def asH2OFrame(rdd: SupportedRDD, frameName: String): H2OFrame

    Permalink
  16. def asH2OFrame(rdd: SupportedRDD, frameName: Option[String]): H2OFrame

    Permalink
  17. def asH2OFrame(rdd: SupportedRDD): H2OFrame

    Permalink

    Transforms RDD[Supported type] to H2OFrame

  18. def asH2OFrameKeyString(df: DataFrame, frameName: Option[String]): String

    Permalink
  19. def asH2OFrameKeyString(df: DataFrame, frameName: String): String

    Permalink
  20. def asH2OFrameKeyString(df: DataFrame): String

    Permalink

    The method transforms Spark DataFrame to H2OFrame and returns String representation of its key.

    The method transforms Spark DataFrame to H2OFrame and returns String representation of its key.

    df

    Input data frame

    returns

    String representation of H2O Frame Key

  21. def asH2OFrameKeyString(rdd: SupportedRDD, frameName: Option[String]): String

    Permalink
  22. def asH2OFrameKeyString(rdd: SupportedRDD, frameName: String): String

    Permalink
  23. def asH2OFrameKeyString(rdd: SupportedRDD): String

    Permalink

    The method transforms RDD to H2OFrame and returns String representation of its key.

    The method transforms RDD to H2OFrame and returns String representation of its key.

    rdd

    Input RDD

    returns

    String representation of H2O Frame Key

  24. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  25. def asRDD[A <: Product](fr: ai.h2o.sparkling.H2OFrame)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A], arg1: ClassTag[A]): rdd.RDD[A]

    Permalink
  26. def asRDD[A <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A], arg1: ClassTag[A]): AnyRef { def apply[T <: org.apache.spark.h2o.Frame](fr: T): org.apache.spark.h2o.RDD[A] }

    Permalink

    A generic convert of Frame into Product RDD type

    A generic convert of Frame into Product RDD type

    Consider using asH2OFrame since asRDD has several limitations such as that asRDD can't be used in Spark REPL in case we are RDD[T] where T is class defined in REPL. This is because class T is created as inner class and we are not able to create instance of class T without outer scope - which is impossible to get.

    This code: hc.asRDD[PUBDEV458Type](rdd) will need to be call as hc.asRDD[PUBDEV458Type].apply(rdd)

  27. def asRDD[A <: Product](fr: H2OFrame)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A], arg1: ClassTag[A]): RDD[A]

    Permalink

    Convert given H2O frame into a Product RDD type

    Convert given H2O frame into a Product RDD type

    Consider using asH2OFrame since asRDD has several limitations such as that asRDD can't be used in Spark REPL in case we are RDD[T] where T is class defined in REPL. This is because class T is created as inner class and we are not able to create instance of class T without outer scope - which is impossible to get.

  28. def asSparkFrame(s: String): DataFrame

    Permalink
  29. def asSparkFrame(s: String, copyMetadata: Boolean): DataFrame

    Permalink
  30. def asSparkFrame[T <: Frame](fr: T, copyMetadata: Boolean = true): DataFrame

    Permalink
  31. val backend: SparklingBackend

    Permalink

    Used backend

    Used backend

    Attributes
    protected
  32. def checkResponseCode(connection: HttpURLConnection): Unit

    Permalink
    Definition Classes
    RestCommunication
  33. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def delete(endpoint: URI, suffix: String, conf: H2OConf): Unit

    Permalink

    endpoint

    An address of H2O node with exposed REST endpoint

    suffix

    REST relative path representing a specific call

    conf

    H2O conf object

    Attributes
    protected
    Definition Classes
    RestCommunication
  35. def downloadBinaryURLContent(endpoint: URI, suffix: String, conf: H2OConf, file: File): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RestCommunication
  36. def downloadH2OLogs(destinationDir: String, logContainer: String): String

    Permalink
    Definition Classes
    H2OContextExtensions
  37. def downloadStringURLContent(endpoint: URI, suffix: String, conf: H2OConf, file: File): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RestCommunication
  38. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  40. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. def flowURL(): String

    Permalink
  42. def getAndVerifyWorkerNodes(conf: H2OConf): Array[NodeDesc]

    Permalink
    Attributes
    protected
    Definition Classes
    H2OContextExtensions
  43. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  44. def getCloudInfoFromNode(endpoint: URI, conf: H2OConf): CloudV3

    Permalink
    Definition Classes
    RestApiUtils
  45. def getCloudInfoFromNode(node: NodeDesc, conf: H2OConf): CloudV3

    Permalink
    Definition Classes
    RestApiUtils
  46. def getClusterEndpoint(conf: H2OConf): URI

    Permalink
    Definition Classes
    RestApiUtils
  47. def getClusterInfo(conf: H2OConf): CloudV3

    Permalink
    Definition Classes
    RestApiUtils
  48. def getConf: H2OConf

    Permalink

    Return a copy of this H2OContext's configuration.

    Return a copy of this H2OContext's configuration. The configuration cannot be changed at runtime.

  49. def getH2OLogLevel(): String

    Permalink
  50. def getH2ONodes(): Array[NodeDesc]

    Permalink
  51. def getLeaderNode(conf: H2OConf): NodeDesc

    Permalink
    Definition Classes
    RestApiUtils
  52. def getLogLevel(conf: H2OConf): String

    Permalink
    Definition Classes
    RestApiUtils
  53. def getNodes(cloudV3: CloudV3): Array[NodeDesc]

    Permalink
    Definition Classes
    RestApiUtils
  54. def getNodes(conf: H2OConf): Array[NodeDesc]

    Permalink
    Definition Classes
    RestApiUtils
  55. def getPingInfo(conf: H2OConf): PingV3

    Permalink
    Definition Classes
    RestApiUtils
  56. def getTimeZone(conf: H2OConf): String

    Permalink
    Definition Classes
    RestApiUtils
  57. def h2oLocalClient: String

    Permalink

    Returns location of REST API of H2O client

  58. def h2oLocalClientIp: String

    Permalink

    Returns IP of H2O client

  59. def h2oLocalClientPort: Int

    Permalink

    Returns port where H2O REST API is exposed

  60. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  61. object implicits extends H2OContextImplicits with Serializable

    Permalink

    Define implicits available via h2oContext.implicits._

  62. def importHiveTable(database: String = HiveTableImporter.DEFAULT_DATABASE, table: String, partitions: Array[Array[String]] = null, allowMultiFormat: Boolean = false): water.fvec.Frame

    Permalink
    Definition Classes
    H2OContextExtensions
  63. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  64. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  65. def insert(endpoint: URI, suffix: String, conf: H2OConf, streamWrapper: (OutputStream) ⇒ OutputStream = identity, params: Map[String, Any] = Map.empty): OutputStream

    Permalink

    endpoint

    An address of H2O node with exposed REST endpoint

    suffix

    REST relative path representing a specific call

    conf

    H2O conf object

    params

    Query parameters

    returns

    HttpUrlConnection facilitating the insertion and holding the outputStream

    Attributes
    protected
    Definition Classes
    RestCommunication
  66. def insertToNode(node: NodeDesc, suffix: String, conf: H2OConf, params: Map[String, Any] = Map.empty): OutputStream

    Permalink

    node

    H2O node descriptor

    suffix

    REST relative path representing a specific call

    conf

    H2O conf object

    params

    Query parameters

    returns

    HttpUrlConnection facilitating the insertion and holding the outputStream

    Definition Classes
    RestCommunication
  67. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  68. def isPrimitiveType(value: Any): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  69. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  70. def launchShellCommand(cmdToLaunch: Seq[String]): Int

    Permalink
    Attributes
    protected
    Definition Classes
    ShellUtils
  71. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  72. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  73. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  74. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  75. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  76. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  77. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  78. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  79. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  80. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  81. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  82. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  83. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  84. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  85. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  86. def openFlow(): Unit

    Permalink

    Open H2O Flow running in this client.

  87. def openURI(uri: String): Unit

    Permalink

    Open browser for given address.

    Open browser for given address.

    uri

    address to open in browser, e.g., http://example.com

    Attributes
    protected
    Definition Classes
    H2OContextExtensions
  88. def query[ResultType](endpoint: URI, suffix: String, conf: H2OConf, params: Map[String, Any] = Map.empty, skippedFields: Seq[(Class[_], String)] = Seq.empty)(implicit arg0: ClassTag[ResultType]): ResultType

    Permalink

    ResultType

    A type that the result will be deserialized to

    endpoint

    An address of H2O node with exposed REST endpoint

    suffix

    REST relative path representing a specific call

    conf

    H2O conf object

    params

    Query parameters

    skippedFields

    The list of field specifications that are skipped during deserialization. The specification consists of the class containing the field and the field name.

    returns

    A deserialized object

    Definition Classes
    RestCommunication
  89. def readURLContent(endpoint: URI, requestType: String, suffix: String, conf: H2OConf, params: Map[String, Any] = Map.empty, encodeParamsAsJson: Boolean = false): InputStream

    Permalink
    Attributes
    protected
    Definition Classes
    RestCommunication
  90. def request[ResultType](endpoint: URI, requestType: String, suffix: String, conf: H2OConf, params: Map[String, Any] = Map.empty, skippedFields: Seq[(Class[_], String)] = Seq.empty, encodeParamsAsJson: Boolean = false)(implicit arg0: ClassTag[ResultType]): ResultType

    Permalink
    Definition Classes
    RestCommunication
  91. def resolveNodeEndpoint(node: NodeDesc, conf: H2OConf): URI

    Permalink
    Definition Classes
    RestApiUtils
  92. def setH2OClientLogLevel(level: String): Unit

    Permalink
    Annotations
    @DeprecatedMethod( "setH2OLogLevel" , "3.32" )
  93. def setH2OLogLevel(level: String): Unit

    Permalink
  94. def setH2ONodeLogLevel(level: String): Unit

    Permalink
    Annotations
    @DeprecatedMethod( "setH2OLogLevel" , "3.32" )
  95. def setLogLevel(conf: H2OConf, logLevel: String): Unit

    Permalink
    Definition Classes
    RestApiUtils
  96. def setTimeZone(conf: H2OConf, timezone: String): Unit

    Permalink
    Definition Classes
    RestApiUtils
  97. def shutdownCluster(conf: H2OConf): Unit

    Permalink
    Definition Classes
    RestApiUtils
  98. val sparkContext: SparkContext

    Permalink
  99. val sparkSession: SparkSession

    Permalink
  100. def stop(stopSparkContext: Boolean = false): Unit

    Permalink

    Stops H2O context.

    Stops H2O context.

    stopSparkContext

    stop also spark context

  101. def stringify(value: Any): String

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  102. def stringifyArray(arr: Array[_]): String

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  103. def stringifyMap(map: Map[_, _]): String

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  104. def stringifyParams(params: Map[String, Any] = Map.empty, encodeParamsAsJson: Boolean = false): String

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  105. def stringifyPrimitiveParam(value: Any): String

    Permalink
    Attributes
    protected
    Definition Classes
    RestEncodingUtils
  106. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  107. def toH2OFrameKey(ds: SupportedDataset, frameName: String): Key[Frame]

    Permalink
  108. def toH2OFrameKey(ds: SupportedDataset, frameName: Option[String]): Key[Frame]

    Permalink
  109. def toH2OFrameKey(ds: SupportedDataset): Key[Frame]

    Permalink

    Transforms Dataset[Supported type] to H2OFrame key

  110. def toH2OFrameKey(df: DataFrame, frameName: String): Key[Frame]

    Permalink
  111. def toH2OFrameKey(df: DataFrame, frameName: Option[String]): Key[Frame]

    Permalink
  112. def toH2OFrameKey(df: DataFrame): Key[Frame]

    Permalink

    Transform DataFrame to H2OFrame key

  113. def toH2OFrameKey(rdd: SupportedRDD, frameName: String): Key[_]

    Permalink
  114. def toH2OFrameKey(rdd: SupportedRDD, frameName: Option[String]): Key[_]

    Permalink
  115. def toH2OFrameKey(rdd: SupportedRDD): Key[_]

    Permalink

    Transforms RDD[Supported type] to H2OFrame key

  116. def toString(): String

    Permalink
    Definition Classes
    H2OContext → AnyRef → Any
  117. def update[ResultType](endpoint: URI, suffix: String, conf: H2OConf, params: Map[String, Any] = Map.empty, skippedFields: Seq[(Class[_], String)] = Seq.empty, encodeParamsAsJson: Boolean = false)(implicit arg0: ClassTag[ResultType]): ResultType

    Permalink

    ResultType

    A type that the result will be deserialized to

    endpoint

    An address of H2O node with exposed REST endpoint

    suffix

    REST relative path representing a specific call

    conf

    H2O conf object

    params

    Query parameters

    skippedFields

    The list of field specifications that are skipped during deserialization. The specification consists of the class containing the field and the field name.

    returns

    A deserialized object

    Definition Classes
    RestCommunication
  118. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  120. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  121. def withConversionDebugPrints[R <: water.fvec.Frame](sc: SparkContext, conversionName: String, block: ⇒ R): R

    Permalink
    Attributes
    protected
    Definition Classes
    H2OContextExtensions

Inherited from H2OContextExtensions

Inherited from ShellUtils

Inherited from RestApiUtils

Inherited from RestCommunication

Inherited from RestEncodingUtils

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped