ts-transforms / operations/lib/transforms/sha2encode / default
Class: default
Extends
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | PostProcessConfig |
Returns
Overrides
Source
operations/lib/transforms/sha2encode.ts:9
Properties
config
readonly
config:OperationConfig
Inherited from
Source
destination
protected
destination:string
|string
[]
Inherited from
Source
encode()
encode: (
str
) =>string
Parameters
Parameter | Type |
---|---|
str | string |
Returns
string
Source
operations/lib/transforms/sha2encode.ts:8
hasTarget
protected
hasTarget:boolean
Inherited from
Source
hash
hash:
string
Source
operations/lib/transforms/sha2encode.ts:7
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
>>>
Inherited from
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()
run(
record
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Parameters
Parameter | Type |
---|---|
record | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
Overrides
Source
operations/lib/transforms/sha2encode.ts:18
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