Class/Object

ai.chronon.online.serde

FeatureRecord

Related Docs: object FeatureRecord | package serde

Permalink

case class FeatureRecord(schema: StructType, values: Map[String, Any]) extends Product with Serializable

A named, nested view of a Chronon feature value.

Unlike the classic Map[String, AnyRef] fetcher response, where struct-typed values are positional Array[Any] and the field names live only in the schema, every level of a FeatureRecord is keyed by field name. Struct-typed fields resolve to nested FeatureRecords and lists of structs resolve to List[FeatureRecord], so callers can navigate arbitrarily deep nesting by name instead of by position.

values carries everything the underlying fetcher response carried, including the <name>_exception keys the fetcher uses to report partial failures (see errors). schema is narrowed to the declared fields actually present in values.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FeatureRecord
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FeatureRecord(schema: StructType, values: Map[String, Any])

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def errors: Map[String, Any]

    Permalink

    The <name>_exception entries the fetcher uses to report per-groupBy, per-external-part, derivation and codec failures.

    The <name>_exception entries the fetcher uses to report per-groupBy, per-external-part, derivation and codec failures. These are not part of the declared value schema, so they are surfaced here rather than through the typed getters.

  8. def getBoolean(field: String): Boolean

    Permalink
  9. def getBooleanOpt(field: String): Option[Boolean]

    Permalink
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  11. def getDouble(field: String): Double

    Permalink
  12. def getDoubleOpt(field: String): Option[Double]

    Permalink
  13. def getInt(field: String): Int

    Permalink
  14. def getIntOpt(field: String): Option[Int]

    Permalink
  15. def getList[T](field: String): List[T]

    Permalink
  16. def getLong(field: String): Long

    Permalink
  17. def getLongOpt(field: String): Option[Long]

    Permalink
  18. def getMap[V](field: String): Map[String, V]

    Permalink
  19. def getString(field: String): String

    Permalink
  20. def getStringOpt(field: String): Option[String]

    Permalink
  21. def getStruct(field: String): FeatureRecord

    Permalink
  22. def getStructList(field: String): List[FeatureRecord]

    Permalink
  23. def getStructOpt(field: String): Option[FeatureRecord]

    Permalink
  24. def hasErrors: Boolean

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  29. val schema: StructType

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. val values: Map[String, Any]

    Permalink
  32. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped