ts-transforms / operations/lib/transforms/base / default
Class: abstract
default
Defined in: operations/lib/transforms/base.ts:4
Extends
Extended by
default
default
default
default
default
default
default
default
default
default
default
default
default
default
default
default
Constructors
new default()
new default(
config
):default
Defined in: operations/lib/base.ts:15
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
config | readonly | OperationConfig | undefined | default .config | operations/lib/base.ts:9 |
destination | protected | string | string [] | undefined | default .destination | operations/lib/base.ts:10 |
hasTarget | protected | boolean | undefined | default .hasTarget | operations/lib/base.ts:11 |
source | protected | string | string [] | undefined | default .source | operations/lib/base.ts:7 |
target | protected | string | string [] | undefined | default .target | operations/lib/base.ts:8 |
cardinality | static | InputOutputCardinality | 'one-to-one' | default .cardinality | operations/lib/base.ts:13 |
Methods
execute()
protected
execute(doc
,fn
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Defined in: operations/lib/transforms/base.ts:5
Parameters
Parameter | Type |
---|---|
doc | DataEntity |
fn | (value ) => any |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
removeField()
removeField(
doc
,field
):void
Defined in: operations/lib/base.ts:50
Parameters
Parameter | Type |
---|---|
doc | DataEntity |
field | string |
Returns
void
Inherited from
removeSource()
removeSource(
doc
):void
Defined in: operations/lib/base.ts:46
Parameters
Parameter | Type |
---|---|
doc | DataEntity |
Returns
void
Inherited from
run()
abstract
run(data
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Defined in: operations/lib/transforms/base.ts:42
Parameters
Parameter | Type |
---|---|
data | DataEntity |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
set()
set(
doc
,data
):void
Defined in: operations/lib/base.ts:38
Parameters
Parameter | Type |
---|---|
doc | DataEntity |
data | any |
Returns
void
Inherited from
setField()
setField(
doc
,field
,data
):void
Defined in: operations/lib/base.ts:42
Parameters
Parameter | Type |
---|---|
doc | DataEntity |
field | string |
data | any |
Returns
void
Inherited from
validateConfig()
protected
validateConfig(config
):void
Defined in: operations/lib/base.ts:22
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
void