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

Output

case class Output(json: JsonOutput, expectedRows: String) extends Product with Serializable

Container class for output preferences. Describes how to transform data fetched from DB into derived contexts

json

JSON-preferences

expectedRows

specifies amount of expected rows

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

Instance Constructors

  1. new Output(json: JsonOutput, expectedRows: String)

    json

    JSON-preferences

    expectedRows

    specifies amount of expected rows

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. def convert(resultSet: ResultSet): ThrowableXor[List[JObject]]

    Convert list of rows fetched from DB into list (probably empty or single-element) of Self-describing JSON objects (contexts) Primary function of class

    Convert list of rows fetched from DB into list (probably empty or single-element) of Self-describing JSON objects (contexts) Primary function of class

    resultSet

    rows fetched from DB

    returns

    list of successful Self-describing JSON Objects or error

  9. def describe(data: JValue): JObject

    Attach Iglu URI to JSON making it Self-describing JSON data

    Attach Iglu URI to JSON making it Self-describing JSON data

    data

    JSON value to describe (object or array)

    returns

    Self-describing JSON object

  10. val describeMode: DescribeMode

    describe object converted from String

  11. def envelope(jsons: List[JObject]): ThrowableXor[List[JObject]]

    Validate output according to expectedRows and describe (attach Schema URI) to context according to json.describes.

    Validate output according to expectedRows and describe (attach Schema URI) to context according to json.describes.

    jsons

    list of JSON Objects derived from SQL rows (row is always JSON Object)

    returns

    validated list of described JSONs

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

    Definition Classes
    AnyRef
  13. val expectedRows: String

    specifies amount of expected rows

  14. val expectedRowsMode: Product with Serializable with ExpectedRowsMode

    expectedRows object converted from String

  15. def finalize(): Unit

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

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

    Definition Classes
    Any
  18. val json: JsonOutput

    JSON-preferences

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

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

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

    Definition Classes
    AnyRef
  22. def parse(resultSet: ResultSet): ThrowableXor[JObject]

    Transform ResultSet (single row) fetched from DB into a JSON Object Each column maps to an Object's key with name transformed by json.propertyNames And value transformed using JsonOutput.getValue

    Transform ResultSet (single row) fetched from DB into a JSON Object Each column maps to an Object's key with name transformed by json.propertyNames And value transformed using JsonOutput.getValue

    resultSet

    single column result

    returns

    successful raw JSON Object or throwable in case of error

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

    Definition Classes
    AnyRef
  24. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. 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 AnyRef

Inherited from Any

Ungrouped