Package net.snowflake.ingest.connection
Enum IngestStatus
- java.lang.Object
-
- java.lang.Enum<IngestStatus>
-
- net.snowflake.ingest.connection.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 fileCreated by vganesh on 5/22/17.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOAD_FAILED
If the ingest failed completelyLOAD_IN_PROGRESS
When ingest is still in progressLOADED
Success case when the ingest has completed and the file was loadedPARTIALLY_LOADED
If ON_ERROR for pipe field is set and the file was loaded with a few errors
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IngestStatus
findByStatusId(int statusId)
Search file Status given its idint
getId()
id of the IngestStatus objectString
getStatusDesc()
description associated to that file Statusstatic IngestStatus
lookupByName(String name)
Given an enum name, find associated IngestStatusstatic IngestStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static IngestStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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
-
-