Enum Class AvroCompressionCodec

Object
Enum<AvroCompressionCodec>
org.apache.spark.sql.avro.AvroCompressionCodec
All Implemented Interfaces:
Serializable, Comparable<AvroCompressionCodec>, Constable

public enum AvroCompressionCodec extends Enum<AvroCompressionCodec>
A mapper class from Spark supported avro compression codecs to avro compression codecs.
  • Enum Constant Details

  • Method Details

    • values

      public static AvroCompressionCodec[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AvroCompressionCodec valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCodecName

      public String getCodecName()
    • getSupportCompressionLevel

      public boolean getSupportCompressionLevel()
    • getDefaultCompressionLevel

      public int getDefaultCompressionLevel()
    • lowerCaseName

      public String lowerCaseName()
    • fromString

      public static AvroCompressionCodec fromString(String s)