Package org.apache.orc
Class DataMask.Factory
java.lang.Object
org.apache.orc.DataMask.Factory
- Enclosing interface:
- DataMask
To create a DataMask, the users should come through this API.
It supports extension via additional DataMask.Provider implementations
that are accessed through Java's ServiceLoader API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataMask
build
(DataMaskDescription mask, TypeDescription schema, DataMask.MaskOverrides overrides) Build a new DataMask instance.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
build
public static DataMask build(DataMaskDescription mask, TypeDescription schema, DataMask.MaskOverrides overrides) Build a new DataMask instance.- Parameters:
mask
- the description of the data maskschema
- the type of the fieldoverrides
- sub-columns where the mask is overridden- Returns:
- a new DataMask
- Throws:
IllegalArgumentException
- if no such kind of data mask was found- See Also:
-