Enum AvroRecordType

    • Enum Constant Detail

      • SPECIFIC_RECORD

        public static final AvroRecordType SPECIFIC_RECORD
        Specific record type.
      • GENERIC_RECORD

        public static final AvroRecordType GENERIC_RECORD
        Generic record type.
    • Method Detail

      • values

        public static AvroRecordType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AvroRecordType c : AvroRecordType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AvroRecordType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
        Returns the name for this Data Format.
        Returns:
        Returns the name for this Data Format.
      • getValue

        public int getValue()
        Returns the value for this Data Format.
        Returns:
        Returns the value for this Data Format.
      • fromName

        public static AvroRecordType fromName​(String name)
        Returns data format associated with the given name.
        Parameters:
        name - Name of the data format.
        Returns:
        Returns data format associated with the given name.