Package org.apache.sysds.common
Enum Class Types.DataType
- All Implemented Interfaces:
Serializable,Comparable<Types.DataType>,Constable
- Enclosing interface:
- Types
Data types that can contain different ValueTypes internally.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTwo or One Dimensional heterogeneous DataTypeList primitive able to contain any other DataType at indexesTwo or One Dimensional numeric DataType.One cell numeric or String based DataTypeN Dimensional numeric DataTypeUnknown DataType, used to indicate uncertainty, and for testing -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFrame()booleanisList()booleanisMatrix()booleanbooleanisScalar()booleanisTensor()booleanstatic Types.DataTypeReturns the enum constant of this class with the specified name.static Types.DataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TENSOR
N Dimensional numeric DataType -
MATRIX
Two or One Dimensional numeric DataType. We use internally Matrix for both Vectors and Matrices -
SCALAR
One cell numeric or String based DataType -
FRAME
Two or One Dimensional heterogeneous DataType -
LIST
List primitive able to contain any other DataType at indexes -
UNKNOWN
Unknown DataType, used to indicate uncertainty, and for testing -
ENCRYPTED_CIPHER
-
ENCRYPTED_PLAIN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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()
-