Package org.apache.orc.impl.mask
Class MaskFactory
java.lang.Object
org.apache.orc.impl.mask.MaskFactory
- Direct Known Subclasses:
RedactMaskFactory
,SHA256MaskFactory
A mask factory framework that automatically builds a recursive mask.
The subclass defines how to mask the primitive types and the factory
builds a recursive tree of data masks that matches the schema tree.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(TypeDescription schema, DataMask.MaskOverrides overrides) protected abstract DataMask
buildBinaryMask
(TypeDescription schema) protected abstract DataMask
buildBooleanMask
(TypeDescription schema) protected DataMask[]
buildChildren
(List<TypeDescription> children, DataMask.MaskOverrides overrides) protected abstract DataMask
buildDateMask
(TypeDescription schema) protected abstract DataMask
buildDecimalMask
(TypeDescription schema) protected abstract DataMask
buildDoubleMask
(TypeDescription schema) protected abstract DataMask
buildLongMask
(TypeDescription schema) protected abstract DataMask
buildStringMask
(TypeDescription schema) protected DataMask
buildStructMask
(TypeDescription schema, DataMask.MaskOverrides overrides) protected abstract DataMask
buildTimestampMask
(TypeDescription schema)
-
Constructor Details
-
MaskFactory
public MaskFactory()
-
-
Method Details
-
buildBooleanMask
-
buildLongMask
-
buildDecimalMask
-
buildDoubleMask
-
buildStringMask
-
buildDateMask
-
buildTimestampMask
-
buildBinaryMask
-
build
-
buildChildren
protected DataMask[] buildChildren(List<TypeDescription> children, DataMask.MaskOverrides overrides) -
buildStructMask
-