Package com.yahoo.tensor.functions
Class Slice.DimensionValue<NAMETYPE extends Name>
java.lang.Object
com.yahoo.tensor.functions.Slice.DimensionValue<NAMETYPE>
-
Constructor Summary
ConstructorDescriptionDimensionValue
(int index) DimensionValue
(ScalarFunction<NAMETYPE> index) DimensionValue
(String label) DimensionValue
(String dimension, int index) DimensionValue
(String dimension, ScalarFunction<NAMETYPE> index) DimensionValue
(String dimension, String label) DimensionValue
(Optional<String> dimension, ScalarFunction<NAMETYPE> index) DimensionValue
(Optional<String> dimension, String label) -
Method Summary
Modifier and TypeMethodDescriptionReturns the given name of the dimension, or null if dense form is used, such that name must be inferred from orderint
hashCode()
index()
Returns the index expression for this dimension, or empty if it is not a numberlabel()
Returns the label for this dimension or empty if it is provided by an index functiontoString()
-
Constructor Details
-
DimensionValue
-
DimensionValue
-
DimensionValue
public DimensionValue(int index) -
DimensionValue
-
DimensionValue
-
DimensionValue
-
DimensionValue
-
DimensionValue
-
-
Method Details
-
dimension
Returns the given name of the dimension, or null if dense form is used, such that name must be inferred from order -
label
Returns the label for this dimension or empty if it is provided by an index function -
index
Returns the index expression for this dimension, or empty if it is not a number -
toString
-
hashCode
public int hashCode()
-