Package org.apache.sysds.common
Enum Types.DataType
- java.lang.Object
-
- java.lang.Enum<Types.DataType>
-
- org.apache.sysds.common.Types.DataType
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.DataType>
- Enclosing interface:
- Types
public static enum Types.DataType extends Enum<Types.DataType>
Data types that can contain different ValueTypes internally.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENCRYPTED_CIPHER
ENCRYPTED_PLAIN
FRAME
Two or One Dimensional heterogeneous DataTypeLIST
List primitive able to contain any other DataType at indexesMATRIX
Two or One Dimensional numeric DataType.SCALAR
One cell numeric or String based DataTypeTENSOR
N Dimensional numeric DataTypeUNKNOWN
Unknown DataType, used to indicate uncertainty, and for testing
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFrame()
boolean
isList()
boolean
isMatrix()
boolean
isMatrixOrFrame()
boolean
isScalar()
boolean
isTensor()
boolean
isUnknown()
static Types.DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TENSOR
public static final Types.DataType TENSOR
N Dimensional numeric DataType
-
MATRIX
public static final Types.DataType MATRIX
Two or One Dimensional numeric DataType. We use internally Matrix for both Vectors and Matrices
-
SCALAR
public static final Types.DataType SCALAR
One cell numeric or String based DataType
-
FRAME
public static final Types.DataType FRAME
Two or One Dimensional heterogeneous DataType
-
LIST
public static final Types.DataType LIST
List primitive able to contain any other DataType at indexes
-
UNKNOWN
public static final Types.DataType UNKNOWN
Unknown DataType, used to indicate uncertainty, and for testing
-
ENCRYPTED_CIPHER
public static final Types.DataType ENCRYPTED_CIPHER
-
ENCRYPTED_PLAIN
public static final Types.DataType ENCRYPTED_PLAIN
-
-
Method Detail
-
values
public static Types.DataType[] 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 (Types.DataType c : Types.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.DataType 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
-
isMatrix
public boolean isMatrix()
-
isTensor
public boolean isTensor()
-
isFrame
public boolean isFrame()
-
isMatrixOrFrame
public boolean isMatrixOrFrame()
-
isScalar
public boolean isScalar()
-
isList
public boolean isList()
-
isUnknown
public boolean isUnknown()
-
-