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.23.0)", date="2026-08-06") public class FileCryptoMetaData extends Object implements org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>, Serializable, Cloneable, Comparable<FileCryptoMetaData>
Crypto metadata for files with encrypted footer *
See Also:
  • Field Details

    • 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 Details

    • FileCryptoMetaData

      public FileCryptoMetaData()
    • FileCryptoMetaData

      public FileCryptoMetaData(EncryptionAlgorithm encryption_algorithm)
    • FileCryptoMetaData

      public FileCryptoMetaData(FileCryptoMetaData other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public FileCryptoMetaData deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.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:
      setFieldValue in interface org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
    • getFieldValue

      public Object getFieldValue(FileCryptoMetaData._Fields field)
      Specified by:
      getFieldValue in interface org.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:
      isSet in interface org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(FileCryptoMetaData that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(FileCryptoMetaData other)
      Specified by:
      compareTo in interface Comparable<FileCryptoMetaData>
    • fieldForId

      public FileCryptoMetaData._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<FileCryptoMetaData,FileCryptoMetaData._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException