Enum IngestStatus

  • All Implemented Interfaces:
    Serializable, Comparable<IngestStatus>

    public enum IngestStatus
    extends Enum<IngestStatus>
    Status of ingest of a particular file returned by Snowflake in the FileEntry history response per file

    Created by vganesh on 5/22/17.

    • Enum Constant Detail

      • LOAD_IN_PROGRESS

        public static final IngestStatus LOAD_IN_PROGRESS
        When ingest is still in progress
      • LOADED

        public static final IngestStatus LOADED
        Success case when the ingest has completed and the file was loaded
      • LOAD_FAILED

        public static final IngestStatus LOAD_FAILED
        If the ingest failed completely
      • PARTIALLY_LOADED

        public static final IngestStatus PARTIALLY_LOADED
        If ON_ERROR for pipe field is set and the file was loaded with a few errors
    • Method Detail

      • values

        public static IngestStatus[] 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 (IngestStatus c : IngestStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IngestStatus 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
      • getId

        public int getId()
        id of the IngestStatus object
        Returns:
        IngestStatus id
      • getStatusDesc

        public String getStatusDesc()
        description associated to that file Status
        Returns:
        IngestStatus description
      • findByStatusId

        public static IngestStatus findByStatusId​(int statusId)
        Search file Status given its id
        Parameters:
        statusId - id of the file Status
        Returns:
        IngestStatus which has this id or null if that IngestStatus does not exists
      • lookupByName

        public static IngestStatus lookupByName​(String name)
                                         throws Exception
        Given an enum name, find associated IngestStatus
        Parameters:
        name - Status name
        Returns:
        associated IngestStatus type
        Throws:
        Exception