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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(TypeDescription schema, DataMask.MaskOverrides overrides) protected abstract DataMaskbuildBinaryMask(TypeDescription schema) protected abstract DataMaskbuildBooleanMask(TypeDescription schema) protected DataMask[]buildChildren(List<TypeDescription> children, DataMask.MaskOverrides overrides) protected abstract DataMaskbuildDateMask(TypeDescription schema) protected abstract DataMaskbuildDecimalMask(TypeDescription schema) protected abstract DataMaskbuildDoubleMask(TypeDescription schema) protected abstract DataMaskbuildLongMask(TypeDescription schema) protected abstract DataMaskbuildStringMask(TypeDescription schema) protected DataMaskbuildStructMask(TypeDescription schema, DataMask.MaskOverrides overrides) protected abstract DataMaskbuildTimestampMask(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
-