Package org.apache.parquet.format
Class FileCryptoMetaData
- java.lang.Object
-
- org.apache.parquet.format.FileCryptoMetaData
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<FileCryptoMetaData>,org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.13.0)", date="2021-03-17") public class FileCryptoMetaData extends Object implements org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>, Serializable, Cloneable, Comparable<FileCryptoMetaData>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileCryptoMetaData._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description EncryptionAlgorithmencryption_algorithmEncryption algorithm.ByteBufferkey_metadataRetrieval metadata of key used for encryption of footer, and (possibly) columns *static Map<FileCryptoMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description FileCryptoMetaData()FileCryptoMetaData(EncryptionAlgorithm encryption_algorithm)FileCryptoMetaData(FileCryptoMetaData other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferbufferForKey_metadata()voidclear()intcompareTo(FileCryptoMetaData other)FileCryptoMetaDatadeepCopy()booleanequals(Object that)booleanequals(FileCryptoMetaData that)FileCryptoMetaData._FieldsfieldForId(int fieldId)EncryptionAlgorithmgetEncryption_algorithm()Encryption algorithm.ObjectgetFieldValue(FileCryptoMetaData._Fields field)byte[]getKey_metadata()Retrieval metadata of key used for encryption of footer, and (possibly) columns *inthashCode()booleanisSet(FileCryptoMetaData._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetEncryption_algorithm()Returns true if field encryption_algorithm is set (has been assigned a value) and false otherwisebooleanisSetKey_metadata()Returns true if field key_metadata is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)FileCryptoMetaDatasetEncryption_algorithm(EncryptionAlgorithm encryption_algorithm)Encryption algorithm.voidsetEncryption_algorithmIsSet(boolean value)voidsetFieldValue(FileCryptoMetaData._Fields field, Object value)FileCryptoMetaDatasetKey_metadata(byte[] key_metadata)Retrieval metadata of key used for encryption of footer, and (possibly) columns *FileCryptoMetaDatasetKey_metadata(ByteBuffer key_metadata)voidsetKey_metadataIsSet(boolean value)StringtoString()voidunsetEncryption_algorithm()voidunsetKey_metadata()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
encryption_algorithm
public EncryptionAlgorithm encryption_algorithm
Encryption algorithm. This field is only used for files with encrypted footer. Files with plaintext footer store algorithm id inside footer (FileMetaData structure).
-
key_metadata
public ByteBuffer key_metadata
Retrieval metadata of key used for encryption of footer, and (possibly) columns *
-
metaDataMap
public static final Map<FileCryptoMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
FileCryptoMetaData
public FileCryptoMetaData()
-
FileCryptoMetaData
public FileCryptoMetaData(EncryptionAlgorithm encryption_algorithm)
-
FileCryptoMetaData
public FileCryptoMetaData(FileCryptoMetaData other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public FileCryptoMetaData deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
getEncryption_algorithm
public EncryptionAlgorithm getEncryption_algorithm()
Encryption algorithm. This field is only used for files with encrypted footer. Files with plaintext footer store algorithm id inside footer (FileMetaData structure).
-
setEncryption_algorithm
public FileCryptoMetaData setEncryption_algorithm(EncryptionAlgorithm encryption_algorithm)
Encryption algorithm. This field is only used for files with encrypted footer. Files with plaintext footer store algorithm id inside footer (FileMetaData structure).
-
unsetEncryption_algorithm
public void unsetEncryption_algorithm()
-
isSetEncryption_algorithm
public boolean isSetEncryption_algorithm()
Returns true if field encryption_algorithm is set (has been assigned a value) and false otherwise
-
setEncryption_algorithmIsSet
public void setEncryption_algorithmIsSet(boolean value)
-
getKey_metadata
public byte[] getKey_metadata()
Retrieval metadata of key used for encryption of footer, and (possibly) columns *
-
bufferForKey_metadata
public ByteBuffer bufferForKey_metadata()
-
setKey_metadata
public FileCryptoMetaData setKey_metadata(byte[] key_metadata)
Retrieval metadata of key used for encryption of footer, and (possibly) columns *
-
setKey_metadata
public FileCryptoMetaData setKey_metadata(ByteBuffer key_metadata)
-
unsetKey_metadata
public void unsetKey_metadata()
-
isSetKey_metadata
public boolean isSetKey_metadata()
Returns true if field key_metadata is set (has been assigned a value) and false otherwise
-
setKey_metadataIsSet
public void setKey_metadataIsSet(boolean value)
-
setFieldValue
public void setFieldValue(FileCryptoMetaData._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
getFieldValue
public Object getFieldValue(FileCryptoMetaData._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
isSet
public boolean isSet(FileCryptoMetaData._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
equals
public boolean equals(FileCryptoMetaData that)
-
compareTo
public int compareTo(FileCryptoMetaData other)
- Specified by:
compareToin interfaceComparable<FileCryptoMetaData>
-
fieldForId
public FileCryptoMetaData._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-