Packages

o

ai.h2o.sparkling.backend.utils

ReflectionUtils

object ReflectionUtils

Work with reflection only inside this helper.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReflectionUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type NameOfType = String

Value Members

  1. def api(klazz: Class[_], fieldName: String): API

    Return API annotation assigned with the given field or null.

    Return API annotation assigned with the given field or null.

    klazz

    class to query

    fieldName

    field name to query

    returns

    instance of API annotation assigned with the field or null

  2. def classFor(tpe: scala.reflect.api.JavaUniverse.Type): Class[_]
  3. def dataTypeFor(columnType: H2OColumn): DataType
  4. def dataTypeFor(v: Vec): DataType

    Return catalyst structural type for given H2O vector.

    Return catalyst structural type for given H2O vector.

    The mapping of type is flat.

    v

    H2O vector

    returns

    catalyst data type

  5. def fieldNamesOf[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Array[String]
  6. def fieldNamesOf(t: scala.reflect.api.JavaUniverse.Type): Array[String]
  7. def isBooleanDomain(domain: Array[String]): Boolean
  8. def javaClassOf(dt: DataType): Class[_]
  9. def javaClassOf[T](implicit ttag: scala.reflect.api.JavaUniverse.TypeTag[T]): Class[_]
  10. def listMemberTypes(st: scala.reflect.api.JavaUniverse.Type): Seq[scala.reflect.api.JavaUniverse.Type]
  11. def memberTypes(p: Product): Array[SupportedType]
  12. def memberTypesOf[T](implicit ttag: scala.reflect.api.JavaUniverse.TypeTag[T]): Array[SupportedType]
  13. def productMembers[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Array[ProductMember]
  14. def reflector(ref: AnyRef): AnyRef { ... /* 2 definitions in type refinement */ }
  15. def supportedType(column: H2OColumn): SupportedType

    This method converts a REST column entity to a data type supported by Spark.

    This method converts a REST column entity to a data type supported by Spark.

    column

    A column entity obtained via H2O REST API

    returns

    A data type supported by Spark

  16. def supportedType(v: Vec): SupportedType
  17. def supportedTypeFor(tpe: scala.reflect.api.JavaUniverse.Type): SupportedType
  18. def supportedTypeOf(value: Any): SupportedType
  19. def types(st: scala.reflect.api.JavaUniverse.Type): Array[Class[_]]
  20. def vecTypeFor(dt: DataType): Byte

    Method translating SQL types into Sparkling Water types

  21. def vecTypeFor(t: scala.reflect.api.JavaUniverse.Type): Byte
  22. def vecTypeFor(t: Class[_]): Byte
  23. def vecTypeOf[T](implicit ttag: scala.reflect.api.JavaUniverse.TypeTag[T]): Byte
  24. def vecTypesOf[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Array[VecType]