Package org.apache.parquet.hadoop.util
Class ColumnEncryptor
- java.lang.Object
-
- org.apache.parquet.hadoop.util.ColumnEncryptor
-
@Deprecated public class ColumnEncryptor extends Object
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 Constructor Description ColumnEncryptor(org.apache.hadoop.conf.Configuration conf)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Set<org.apache.parquet.hadoop.metadata.ColumnPath>
convertToColumnPaths(List<String> cols)
Deprecated.void
encryptColumns(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.BytesInput
readBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader)
Deprecated.
-
-
-
Method Detail
-
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
-
-