package etl
- Alphabetic
- By Inheritance
- etl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait BatchOptions extends AnyRef
-
trait
ConnectionPool extends Object with IEventEmitter
- Annotations
- @RawJSType() @native()
-
type
DataRecord = Object
Common data record format for many ETL functions.
-
trait
Header extends Object
Header associated with an ETL payload.
Header associated with an ETL payload. Contains information that can help formulate a request.
- Annotations
- @ScalaJSDefined() @RawJSType()
-
case class
InputContext[A](input: A, source: String) extends Product with Serializable
TODO: Make extensible.
- trait LookupManager extends AnyRef
-
trait
LookupManagerImpl extends LookupManager
Create smart lookup functions that can take into acount caching, etc.
- type LookupOption = (String) ⇒ Either[String, Int]
-
type
LookupText = (String) ⇒ Either[String, (String, String)]
Lookup a text value and return (fieldname, value) for use in a JSON payload.
-
class
MSSQLConfig extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
-
class
MSSQLOptions extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
-
trait
Operator extends AnyRef
Contains a transform and other metadata needed to automatically pre- and post-process an input record.
- case class OptionSetLookupOptions(lcid: Option[Int] = None) extends Product with Serializable
-
class
PoolOptions extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
- final case class ProcessingError[I](details: String, source: Option[String] = None, input: Option[InputContext[I]] = None, messages: Seq[String] = Nil, cause: Option[Throwable] = None) extends RuntimeException with TransformFailure[I] with Product with Serializable
-
trait
ProcessingUnit[T <: Any] extends Object
A unit consists of a header and the data playload.
A unit consists of a header and the data playload.
- Annotations
- @ScalaJSDefined() @RawJSType()
-
trait
RecordSet[A] extends Array[A]
- Annotations
- @RawJSType() @native()
-
class
Request extends Object with IEventEmitter
- Annotations
- @RawJSType() @native()
-
case class
Result[O](source: String, output: Stream[IO, O], messages: Seq[String] = Nil) extends Product with Serializable
A result is really a fancy tuple of the input and output along with some result information.
-
trait
SQLResult[A] extends Object
- Annotations
- @RawJSType() @native()
-
trait
StreamValue[A] extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
- case class TextLookupOptions(lookedUpAttribute: Option[String] = None, bind: Boolean = true, lcid: Option[Int] = None) extends Product with Serializable
-
type
Transform[I, O] = Kleisli[IO, InputContext[I], TransformResult[I, O]]
Basic transform takes one input and returns a TransformResult wrapped in an effect.
- sealed trait TransformFailure[I] extends RuntimeException
-
type
TransformResult[I, O] = Either[TransformFailure[I], Result[O]]
The result of a transformation.
The result of a transformation. Outputs in Result are wrapped in a Stream effect.
Value Members
-
val
DeepCopy: Pipe[IO, DataRecord, (DataRecord, DataRecord)]
Deep copy the input object.
Deep copy the input object. The deep copy is _2.
- def DropTake[A](drop: Int, take: Int): Pipe[IO, A, A]
-
def
EmitResult[I, O]: Pipe[IO, TransformResult[I, O], Result[O]]
Emit valid result part of TransformResult or emit an empty stream.
Emit valid result part of TransformResult or emit an empty stream. Left transform result errors are silently dropped.
-
def
EmitResultData[I, O](): Pipe[IO, TransformResult[I, O], O]
Emit the individual results objects.
Emit the individual results objects. Since you lose the TransformResult, you will want to log or process the result prior to this. This pipe is typically used between successive pipe that are running different transforms and you don't care about the source tag.
-
def
EmitResultDataWithTag[I, O](): Pipe[IO, TransformResult[I, O], (O, String)]
Emits individual result objects but pairs each output O ith the source tag.
-
def
FilterAttributes(drops: Seq[String] = Nil, renames: Seq[(String, String)] = Nil, keeps: Seq[String] = Nil): Transform[DataRecord, DataRecord]
Transform that drops, renames and filters attributes on the input record.
- def LogErrorsOnly[O](r: Result[O]): None.type
-
def
LogTransformResult[I, O](f: (Result[O]) ⇒ Option[String] = LogErrorsOnly[O]): Pipe[IO, TransformResult[I, O], TransformResult[I, O]]
A logger pipe.
A logger pipe. Logs errors mostly.
- def PrintIt[A](marker: String = ">"): Pipe[IO, A, A]
-
def
ResultToInputContext[I, O]: Pipe[IO, Result[O], InputContext[O]]
Use Result output to create InputContext.
-
def
UpdateObject[A](drops: Seq[String], renames: Seq[(String, String)], f: (A) ⇒ DataRecord): Pipe[IO, A, A]
Pipe to mutate a DataRecord.
Pipe to mutate a DataRecord. f identifies the object to mutate. Can use
identity
if the object is not wrapped. Easier than usingxf
andfilterAttributesTransform
. -
def
mkPipe[I, O](t: Transform[I, O]): Pipe[IO, InputContext[I], TransformResult[I, O]]
Make a pipe from a transform.
Make a pipe from a transform. The transform is eval'd in this pipe.
-
object
MSSQL extends Object with IEventEmitter
- Annotations
- @native() @JSImport( "mssql" , JSImport.Namespace )
- object Processors
-
object
Transform
Tracks names to objects that can transform data prior to some operation.
- object TransformResult
- object sources