Package org.apache.orc
Interface DataMask
- All Known Implementing Classes:
DecimalIdentity
,DoubleIdentity
,ListIdentity
,LongIdentity
,MapIdentity
,NullifyMask
,StructIdentity
,UnionIdentity
public interface DataMask
The API for masking data during column encryption for ORC.
They apply to an individual column (via ColumnVector) instead of a VectorRowBatch.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
To create a DataMask, the users should come through this API.static interface
An interface to provide override data masks for sub-columns.static interface
Providers can provide one or more kinds of data masks.static enum
The standard DataMasks can be created using this short cut. -
Method Summary
Modifier and TypeMethodDescriptionvoid
maskData
(org.apache.hadoop.hive.ql.exec.vector.ColumnVector original, org.apache.hadoop.hive.ql.exec.vector.ColumnVector masked, int start, int length) Mask the given range of values
-
Method Details
-
maskData
void maskData(org.apache.hadoop.hive.ql.exec.vector.ColumnVector original, org.apache.hadoop.hive.ql.exec.vector.ColumnVector masked, int start, int length) Mask the given range of values- Parameters:
original
- the original input datamasked
- the masked output datastart
- the first data element to masklength
- the number of data elements to mask
-