ts-transforms / operations/lib/transforms/base / default
Class: abstract
default
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
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
Inherited from
Source
Properties
config
readonly
config:OperationConfig
Inherited from
Source
destination
protected
destination:string
|string
[]
Inherited from
Source
hasTarget
protected
hasTarget:boolean
Inherited from
Source
source
protected
source:string
|string
[]
Inherited from
Source
target
protected
target:string
|string
[]
Inherited from
Source
cardinality
static
cardinality:InputOutputCardinality
='one-to-one'
Inherited from
Source
Methods
execute()
protected
execute(doc
,fn
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
fn | (value ) => any |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
Source
operations/lib/transforms/base.ts:5
removeField()
removeField(
doc
,field
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
Returns
void
Inherited from
Source
removeSource()
removeSource(
doc
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
void
Inherited from
Source
run()
abstract
run(data
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Parameters
Parameter | Type |
---|---|
data | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
Source
operations/lib/transforms/base.ts:42
set()
set(
doc
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
data | any |
Returns
void
Inherited from
Source
setField()
setField(
doc
,field
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
data | any |
Returns
void
Inherited from
Source
validateConfig()
protected
validateConfig(config
):void
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
void