com.snowplowanalytics.snowplow.enrich.common.enrichments.registry.sqlquery

SqlQueryEnrichment

case class SqlQueryEnrichment(inputs: List[Input], db: Db, query: Query, output: Output, cache: Cache) extends Enrichment with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Enrichment, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SqlQueryEnrichment
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Enrichment
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SqlQueryEnrichment(inputs: List[Input], db: Db, query: Query, output: Output, cache: Cache)

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. val cache: Cache

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val db: Db

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(intMap: IntMap[ExtractedValue]): ThrowableXor[List[JObject]]

    Get contexts from cache or perform query if nothing found and put result into cache

    Get contexts from cache or perform query if nothing found and put result into cache

    intMap

    IntMap of extracted values

    returns

    validated list of Self-describing contexts

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getPlaceholderCount: ValidationNel[String, Int]

    If lastPlaceholderCount is successful return it If it's unsucessfult - try to count save result for future use

  15. val inputs: List[Input]

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def lookup(event: EnrichedEvent, derivedContexts: List[JObject], customContexts: JsonSchemaPairs, unstructEvent: JsonSchemaPairs): ValidationNel[String, List[JObject]]

    Primary function of the enrichment Failure means connection failure, failed unexpected JSON-value, etc Successful Nil skipped lookup (unfilled placeholder for eg, empty response)

    Primary function of the enrichment Failure means connection failure, failed unexpected JSON-value, etc Successful Nil skipped lookup (unfilled placeholder for eg, empty response)

    event

    currently enriching event

    derivedContexts

    derived contexts as list of JSON objects

    customContexts

    custom contexts as JsonSchemaPairs

    unstructEvent

    unstructured (self-describing) event as empty or single element JsonSchemaPairs

    returns

    Nil if some inputs were missing, validated JSON contexts if lookup performed

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

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

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

    Definition Classes
    AnyRef
  21. val output: Output

  22. def query(intMap: IntMap[ExtractedValue]): ThrowableXor[List[JObject]]

    Perform SQL query and convert result to JSON object

    Perform SQL query and convert result to JSON object

    intMap

    map with values extracted from inputs and ready to be set placeholders in prepared statement

    returns

    validated list of Self-describing contexts

  23. val query: Query

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

    Definition Classes
    AnyRef
  25. val version: DefaultArtifactVersion

    Definition Classes
    SqlQueryEnrichmentEnrichment
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Enrichment

Inherited from AnyRef

Inherited from Any

Ungrouped