
ordt.redactIpv4( column as String, options as object? ) as columnBinding
This function redacts a column with IPv4 address string that conforms to a pattern with
four blocks of 1-3 decimal digits separated by period (.) where the value of each block
of digits is less than or equal to 255 as in 123.201.098.112 and
123.45.678.0.
This function can be used with
op.bind
or
op.select .
| Parameters | |
|---|---|
| column | The name of the column to be redacted. This can be either a string or the return value from op.col, op.viewCol, or op.schemaCol. |
| options | The options for masking the value the column. |
The options consist of the following properties:
# default).
const op = require('/MarkLogic/optic');
const ordt = require('/MarkLogic/optic/optic-redaction.sjs');
op.fromView('b2b', 'edi')
.bind([
ordt.redactIpv4(op.schemaCol('b2b', 'edi', 'server'), {character:'1'})
])
.result();
const op = require('/MarkLogic/optic');
const ordt = require('/MarkLogic/optic/optic-redaction.sjs');
op.fromView('b2b', 'edi')
.select([
ordt.redactIpv4(op.schemaCol('b2b', 'edi', 'server'), {character:'1'})
])
.result();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.