Class/Object

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

Output

Related Docs: object Output | package sqlquery

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    json

    JSON-preferences

    expectedRows

    specifies amount of expected rows

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

    Permalink

    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

  7. def describe(data: JValue): JObject

    Permalink

    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

  8. val describeMode: DescribeMode

    Permalink

    describe object converted from String

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  11. val expectedRows: String

    Permalink

    specifies amount of expected rows

  12. val expectedRowsMode: Product with Serializable with ExpectedRowsMode

    Permalink

    expectedRows object converted from String

  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  16. val json: JsonOutput

    Permalink

    JSON-preferences

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped