Package org.apache.orc.impl
Class MaskDescriptionImpl
java.lang.Object
org.apache.orc.impl.MaskDescriptionImpl
- All Implemented Interfaces:
Comparable<MaskDescriptionImpl>
,DataMaskDescription
public class MaskDescriptionImpl
extends Object
implements DataMaskDescription, Comparable<MaskDescriptionImpl>
-
Constructor Summary
ConstructorDescriptionMaskDescriptionImpl
(int id, OrcProto.DataMask mask) MaskDescriptionImpl
(String name, String... parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(TypeDescription column) int
compareTo
(@NotNull MaskDescriptionImpl other) create
(TypeDescription schema, DataMask.MaskOverrides overrides) boolean
Get the list of columns that use this mask.int
getId()
getName()
The name of the mask.String[]
The parameters for the maskint
hashCode()
void
setId
(int id) toString()
-
Constructor Details
-
MaskDescriptionImpl
-
MaskDescriptionImpl
-
-
Method Details
-
equals
-
addColumn
-
setId
public void setId(int id) -
getName
Description copied from interface:DataMaskDescription
The name of the mask.- Specified by:
getName
in interfaceDataMaskDescription
- Returns:
- the name
-
getParameters
Description copied from interface:DataMaskDescription
The parameters for the mask- Specified by:
getParameters
in interfaceDataMaskDescription
- Returns:
- the array of parameters
-
getColumns
Description copied from interface:DataMaskDescription
Get the list of columns that use this mask.- Specified by:
getColumns
in interfaceDataMaskDescription
- Returns:
- the list of columns
-
getId
public int getId() -
create
-
toString
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<MaskDescriptionImpl>
-