Package org.apache.parquet.crypto
Class ColumnEncryptionProperties
java.lang.Object
org.apache.parquet.crypto.ColumnEncryptionProperties
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionConvenience builder for regular (not nested) columns.builder(org.apache.parquet.hadoop.metadata.ColumnPath path) Builder for encrypted columns.builder(org.apache.parquet.hadoop.metadata.ColumnPath path, boolean encrypt) Builder for encrypted columns.byte[]byte[]org.apache.parquet.hadoop.metadata.ColumnPathgetPath()booleanboolean
-
Method Details
-
builder
Convenience builder for regular (not nested) columns. To make sure column name is not misspelled or misplaced, file writer will verify that column is in file schema.- Parameters:
name- Flat column name- Returns:
- Builder
-
builder
public static ColumnEncryptionProperties.Builder builder(org.apache.parquet.hadoop.metadata.ColumnPath path) Builder for encrypted columns. To make sure column path is not misspelled or misplaced, file writer will verify this column is in file schema.- Parameters:
path- Column path- Returns:
- Builder
-
builder
public static ColumnEncryptionProperties.Builder builder(org.apache.parquet.hadoop.metadata.ColumnPath path, boolean encrypt) Builder for encrypted columns. To make sure column path is not misspelled or misplaced, file writer will verify this column is in file schema.- Parameters:
path- Column pathencrypt- whether or not this column to be encrypted- Returns:
- Builder
-
getPath
public org.apache.parquet.hadoop.metadata.ColumnPath getPath() -
isEncrypted
public boolean isEncrypted() -
getKeyBytes
public byte[] getKeyBytes() -
getKeyMetaData
public byte[] getKeyMetaData()
-