Dataset source¶
The dataset source is one of the most commonly used sources in a Sesam installation. It simply presents a stream of entities from a dataset stored in Sesam. Its configuration is very simple and looks like:
Prototype¶
{
"type": "dataset",
"dataset": "id-of-dataset",
"include_previous_versions": false,
"include_replaced": true,
"supports_signalling": false
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
A dataset id
|
Yes |
|
|
Array |
An
eq DTL expression where the left-hand side is the index expression and the right-hand side is the value that represents the subset. If the subset is specified then only entities that are in that subset will be read from the source.Example:
["eq", "_S.category", "tank"] Note Make sure that you use indexes version 2 when you use subsets. The reason is that these support deletes. Indexes version 1 does not. Note
Note The right-hand side argument of the |
No |
|
|
Boolean, Dict or an Array of strings |
As a Boolean:
If set to As a Dict:
If set to a dict with an “expression” key, the minimum completeness value will be set to the return value
of the DTL expression. The expression will be evaluated each time the pipe is about to start.
The expression must return a datetime value. Example of an expression that will prevent
the pipe from processing entities with a "completeness": {
"expression": ["datetime-plus", "day", -7, ["now"]]
}
If the DTL expression returns anything other than a datetime object, the pipe will set the minimum completeness value to “~t1970-01-01T00:00:00Z” (which will usually result in the pipe not processing any entities). As an Array:
It is also possible to use the completeness timestamp value of one or more specific upstream datasets instead of the source dataset; this is done by setting |
|
|
|
Array of strings (dataset ids) |
If set to a non-empty list, the source will only return source entities if the specified dataset(s) have a completeness value. It doesn’t matter what the completeness value is, it only needs to be present. |
||
|
Boolean |
If set to |
|
|
|
Boolean |
If set to |
|
|
|
Boolean |
If set to |
|
|
|
Boolean |
Flag used to enable or disable signalling support between internal pipes (dataset to dataset pipes). If enabled, a pipe run is scheduled as soon as the input dataset(s) changes. It does not interrupt any already running pipes. See If signalling is enabled globally, you will have to explicitly set |
|
|
|
Enum<String> |
Determines the behaviour of the pipe when the dataset source contains no entities. Normally, any previously synced
entities will be deleted even if the pipe does not receive any entities from its source.
If set to The global default |
|
Continuation support¶
See the section on continuation support for more information.
Property |
Value |
---|---|
|
|
|
|
|
|