@Deprecated public class ColumnEncryptor extends Object
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 and Description |
|---|
ColumnEncryptor(org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<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.
|
BytesInput |
readBlockAllocate(int length,
CompressionConverter.TransParquetFileReader reader)
Deprecated.
|
public ColumnEncryptor(org.apache.hadoop.conf.Configuration conf)
public void encryptColumns(String inputFile, String outputFile, List<String> paths, FileEncryptionProperties fileEncryptionProperties) throws IOException
inputFile - Input fileoutputFile - Output filepaths - columns to be encryptedfileEncryptionProperties - FileEncryptionProperties of the fileIOExceptionpublic byte[] readBlock(int length,
CompressionConverter.TransParquetFileReader reader)
throws IOException
IOExceptionpublic BytesInput readBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader) throws IOException
IOExceptionpublic static Set<ColumnPath> convertToColumnPaths(List<String> cols)
Copyright © 2023 The Apache Software Foundation. All rights reserved.