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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataMaskbuildBinaryMask(TypeDescription schema) protected DataMaskbuildBooleanMask(TypeDescription schema) protected DataMaskbuildDateMask(TypeDescription schema) protected DataMaskbuildDecimalMask(TypeDescription schema) protected DataMaskbuildDoubleMask(TypeDescription schema) protected DataMaskbuildLongMask(TypeDescription schema) protected DataMaskbuildStringMask(TypeDescription schema) protected DataMaskbuildTimestampMask(TypeDescription schema) doublemaskDouble(double value) Replace each digit in value with digit.longmaskLong(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:
buildBooleanMaskin classMaskFactory
-
buildLongMask
- Specified by:
buildLongMaskin classMaskFactory
-
buildDecimalMask
- Specified by:
buildDecimalMaskin classMaskFactory
-
buildDoubleMask
- Specified by:
buildDoubleMaskin classMaskFactory
-
buildStringMask
- Specified by:
buildStringMaskin classMaskFactory
-
buildDateMask
- Specified by:
buildDateMaskin classMaskFactory
-
buildTimestampMask
- Specified by:
buildTimestampMaskin classMaskFactory
-
buildBinaryMask
- Specified by:
buildBinaryMaskin 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
-