Package org.apache.parquet.hadoop.util
Class ColumnEncryptor
java.lang.Object
org.apache.parquet.hadoop.util.ColumnEncryptor
Deprecated.
This class is for fast rewriting existing file with column encryption
For columns to be encrypted, all the pages of those columns are read, but decompression/decoding, it is encrypted immediately and write back.
For columns not to be encrypted, the whole column chunk will be appended directly to writer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.apache.parquet.hadoop.metadata.ColumnPath>convertToColumnPaths(List<String> cols) Deprecated.voidencryptColumns(String inputFile, String outputFile, List<String> paths, FileEncryptionProperties fileEncryptionProperties) Deprecated.Given the input file, encrypt the columns specified by paths, and output the file.byte[]readBlock(int length, CompressionConverter.TransParquetFileReader reader) Deprecated.org.apache.parquet.bytes.BytesInputreadBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader) Deprecated.
-
Constructor Details
-
ColumnEncryptor
public ColumnEncryptor(org.apache.hadoop.conf.Configuration conf) Deprecated.
-
-
Method Details
-
encryptColumns
public void encryptColumns(String inputFile, String outputFile, List<String> paths, FileEncryptionProperties fileEncryptionProperties) throws IOException Deprecated.Given the input file, encrypt the columns specified by paths, and output the file. The encryption settings can be specified in the parameter of fileEncryptionProperties- Parameters:
inputFile- Input fileoutputFile- Output filepaths- columns to be encryptedfileEncryptionProperties- FileEncryptionProperties of the file- Throws:
IOException
-
readBlock
public byte[] readBlock(int length, CompressionConverter.TransParquetFileReader reader) throws IOException Deprecated.- Throws:
IOException
-
readBlockAllocate
public org.apache.parquet.bytes.BytesInput readBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader) throws IOException Deprecated.- Throws:
IOException
-
convertToColumnPaths
public static Set<org.apache.parquet.hadoop.metadata.ColumnPath> convertToColumnPaths(List<String> cols) Deprecated.
-