Package org.apache.graphar.types
Enum ValidateLevel
- java.lang.Object
-
- java.lang.Enum<ValidateLevel>
-
- org.apache.graphar.types.ValidateLevel
-
- All Implemented Interfaces:
com.alibaba.fastffi.CXXEnum
,com.alibaba.fastffi.FFIType
,Serializable
,Comparable<ValidateLevel>
public enum ValidateLevel extends Enum<ValidateLevel> implements com.alibaba.fastffi.CXXEnum
The level for validating writing operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description default_validate
To use the default validate level of the writer/builder.no_validate
To skip the validation.strong_validate
Strong validation: except for the weak validation, also check if the schema (including each property name and data type) of the input data passed to the writer/builder is consistent with that defined in the info.weak_validate
Weak validation: check if the index, count, adj_list type, property group and the size of the table passed to the writer/builder are valid.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidateLevel
get(int value)
int
getValue()
static ValidateLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValidateLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
default_validate
public static final ValidateLevel default_validate
To use the default validate level of the writer/builder.
-
no_validate
public static final ValidateLevel no_validate
To skip the validation.
-
weak_validate
public static final ValidateLevel weak_validate
Weak validation: check if the index, count, adj_list type, property group and the size of the table passed to the writer/builder are valid.
-
strong_validate
public static final ValidateLevel strong_validate
Strong validation: except for the weak validation, also check if the schema (including each property name and data type) of the input data passed to the writer/builder is consistent with that defined in the info.
-
-
Method Detail
-
values
public static ValidateLevel[] 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 (ValidateLevel c : ValidateLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidateLevel 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
-
get
public static ValidateLevel get(int value)
-
getValue
public int getValue()
- Specified by:
getValue
in interfacecom.alibaba.fastffi.CXXEnum
-
-