Class RedactMaskFactory
Masking Parameters: character replacements: string of 10 characters one per group below letter, upper case (default X) letter, lower case (default x) number, digit (default 9) symbol (default $) punctuation (default .) separator (default no masking) letter, other (default ª) mark (default ः) number, other (default ²) other (default )
time replacements: string of 6 numbers or _ one per field below year (0 to 4000, default no masking) month (1 to 12, default 1) date (1 to 31, default 1) hour (0 to 23, default 0) minute (0 to 59, default 0) second (0 to 59, default 0)
Parameters use "_" for preserve original.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DataMask
buildBinaryMask
(TypeDescription schema) protected DataMask
buildBooleanMask
(TypeDescription schema) protected DataMask
buildDateMask
(TypeDescription schema) protected DataMask
buildDecimalMask
(TypeDescription schema) protected DataMask
buildDoubleMask
(TypeDescription schema) protected DataMask
buildLongMask
(TypeDescription schema) protected DataMask
buildStringMask
(TypeDescription schema) protected DataMask
buildTimestampMask
(TypeDescription schema) double
maskDouble
(double value) Replace each digit in value with digit.long
maskLong
(long value) Replace each digit in value with DIGIT_REPLACEMENT scaled to the matching number of digits.Methods inherited from class org.apache.orc.impl.mask.MaskFactory
build, buildChildren, buildStructMask
-
Constructor Details
-
RedactMaskFactory
-
-
Method Details
-
buildBooleanMask
- Specified by:
buildBooleanMask
in classMaskFactory
-
buildLongMask
- Specified by:
buildLongMask
in classMaskFactory
-
buildDecimalMask
- Specified by:
buildDecimalMask
in classMaskFactory
-
buildDoubleMask
- Specified by:
buildDoubleMask
in classMaskFactory
-
buildStringMask
- Specified by:
buildStringMask
in classMaskFactory
-
buildDateMask
- Specified by:
buildDateMask
in classMaskFactory
-
buildTimestampMask
- Specified by:
buildTimestampMask
in classMaskFactory
-
buildBinaryMask
- Specified by:
buildBinaryMask
in classMaskFactory
-
maskLong
public long maskLong(long value) Replace each digit in value with DIGIT_REPLACEMENT scaled to the matching number of digits.- Parameters:
value
- the number to mask- Returns:
- the masked value
-
maskDouble
public double maskDouble(double value) Replace each digit in value with digit.- Parameters:
value
- the number to mask- Returns:
- the
-