com.snowplowanalytics.snowplow.analytics.scalasdk.json

EventTransformer

object EventTransformer

TSV to JSON

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventTransformer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getValidatedJsonEvent(event: Array[String], flatten: Boolean): Validated[(Set[InventoryItem], JObject)]

    Converts an array of field values to a validated JSON whose keys are the field names corresponding to the EnrichedEvent POJO of the Scala Common Enrich project.

    Converts an array of field values to a validated JSON whose keys are the field names corresponding to the EnrichedEvent POJO of the Scala Common Enrich project. If there are any self-describing events in the fields: "unstruct_event", "derived_contexts" or "contexts" these are returned in a "shredded" format (e.g. "unstruct_event_com_acme_1_myField": "value") when the flatten argument is true. When the flatten argument is false the nested structure is returned for those three fields instead.

    event

    Array of values for the event

    flatten

    Whether to flatten the fields in "unstruct_event", "contexts" and "derived_contexts"

    returns

    ValidatedRecord containing JSON for the event and the event_id (if it exists)

  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def jsonifyGoodEvent(event: Array[String]): Validated[(Set[InventoryItem], JObject)]

    Converts an array of field values to a JSON whose keys are the field names

    Converts an array of field values to a JSON whose keys are the field names

    event

    Array of values for the event

    returns

    ValidatedRecord containing JSON for the event and the event_id (if it exists)

  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. def transform(line: String): ValidatedEvent

    Convert a string with Enriched event TSV to a JSON string

    Convert a string with Enriched event TSV to a JSON string

    line

    enriched event TSV line

    returns

    ValidatedRecord for the event

  22. def transformWithInventory(line: String): ValidatedEventWithInventory

    Convert an Amazon Kinesis record to a JSON string

    Convert an Amazon Kinesis record to a JSON string

    line

    enriched event TSV line

    returns

    ValidatedRecord for the event

  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped