Package org.apache.graphar.types
Enum AdjListType
- java.lang.Object
-
- java.lang.Enum<AdjListType>
-
- org.apache.graphar.types.AdjListType
-
- All Implemented Interfaces:
com.alibaba.fastffi.CXXEnum,com.alibaba.fastffi.FFIType,Serializable,Comparable<AdjListType>
public enum AdjListType extends Enum<AdjListType> implements com.alibaba.fastffi.CXXEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ordered_by_destcollection of edges by destination, ordered by destination, can represent CSC formatordered_by_sourcecollection of edges by source, ordered by source, can represent CSR formatunordered_by_destcollection of edges by destination, but unordered, can represent COOunordered_by_sourcecollection of edges by source, but unordered, can represent COO format
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringadjListType2String(AdjListType adjListType)static AdjListTypeget(int binaryValue)intgetValue()StringtoString()static AdjListTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AdjListType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
unordered_by_source
public static final AdjListType unordered_by_source
collection of edges by source, but unordered, can represent COO format
-
unordered_by_dest
public static final AdjListType unordered_by_dest
collection of edges by destination, but unordered, can represent COO
-
ordered_by_source
public static final AdjListType ordered_by_source
collection of edges by source, ordered by source, can represent CSR format
-
ordered_by_dest
public static final AdjListType ordered_by_dest
collection of edges by destination, ordered by destination, can represent CSC format
-
-
Method Detail
-
values
public static AdjListType[] 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 (AdjListType c : AdjListType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdjListType 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 AdjListType get(int binaryValue)
-
toString
public String toString()
- Overrides:
toStringin classEnum<AdjListType>
-
adjListType2String
public static String adjListType2String(AdjListType adjListType)
-
getValue
public int getValue()
- Specified by:
getValuein interfacecom.alibaba.fastffi.CXXEnum
-
-