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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classTo create a DataMask, the users should come through this API.static interfaceAn interface to provide override data masks for sub-columns.static interfaceProviders can provide one or more kinds of data masks.static enumThe standard DataMasks can be created using this short cut. -
Method Summary
Modifier and TypeMethodDescriptionvoidmaskData(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
-