Anatomy of a Tap

Construction of a Tap

Overview

This article should give context about how a Tap is constructed.

Example

tap:
  target schema: nasdaq_quotes
  queue capacity: 15000
  flush frequency: 5
  index:
    unique: false
    fields:
      - symbol

Attributes schema

AttributeDescriptionData TypeRequired

target schema

Target table name

String

queue capacity

Number of events to queue before flushing to database.

Must be greater than 99

Integer

Default :10000

flush frequency

Frequency the queue is flushed to database table. Either the queue capacity or this attribute triggers queue flush whatever comes first

Must me greater than zero

Long

Default: 5 Seconds

alias

Alias to use instead of the schema name

String

is insert

Update or insert to apply to table changes

Boolean

Default: true

update criteria fields

Array of fields used for the update criteria predicate. Only used if is insert set to false

String[]

index

Create a table index

See Index attributes

Index Attributes

AttributeDescriptionData TypeRequired

unique index

Create a unique index

Boolean

Default: false

index fields

Array of fields to create index

String[]

Last updated