final class PrimitiveDimensionType extends DimensionType
The most basic type of a dimension. Only specifies the primitive type and an optional shape ("size"), without any high-level metadata.
- Alphabetic
- By Inheritance
- PrimitiveDimensionType
- DimensionType
- Representable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(o: Any): Boolean
- Definition Classes
- PrimitiveDimensionType → AnyRef → Any
- Annotations
- @Override()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDimensionValue(tuple: ReadableTuple, column: Int): AnyRef
The inverse of
#setDimensionValue.The inverse of
#setDimensionValue. Reads a dimension from a particular column of a tuple.- tuple
the tuple from which to read. Hint: This will often be a
com.linkedin.feathr.common.tensor.TensorIterator- column
the column to read from the tuple
- returns
the value of the dimension
- Definition Classes
- DimensionType
-
def
getName(): String
Get the name of the DimensionType
Get the name of the DimensionType
- returns
the name
- Definition Classes
- PrimitiveDimensionType → DimensionType
- Annotations
- @Override()
-
def
getRepresentation(): Primitive
- Definition Classes
- PrimitiveDimensionType → Representable
- Annotations
- @Override()
-
def
getShape(): Int
Get the shape.
Get the shape.
- returns
the shape - the number of maximum possible unique values in this dimension. Can be UNKNOWN_SHAPE.
- Definition Classes
- PrimitiveDimensionType → DimensionType
- Annotations
- @Override()
-
def
hashCode(): Int
- Definition Classes
- PrimitiveDimensionType → AnyRef → Any
- Annotations
- @Override()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setDimensionValue(target: WriteableTuple, column: Int, dimensionValue: Any): Unit
Sets a dimension in a particular column of a target tuple.
Sets a dimension in a particular column of a target tuple. For primitive dimensions, implementations will just copy the value over. (This is the default behavior.) For high-level semantic dimensions that maintain a different set of "outward-facing" and "internal" representations of the dimension values, implementations will apply any necessary translation on the input dimensionValue before inserting into the tuple.
- target
the destination where the dimension value should be set. Hint: This will often be a
com.linkedin.feathr.common.TensorBuilder- column
the column number of the target tuple to be set
- dimensionValue
the value of the dimension
- Definition Classes
- PrimitiveDimensionType → DimensionType
- Annotations
- @Override()
- Exceptions thrown
RuntimeExceptionwill be thrown if value is not valid for this dimension
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- PrimitiveDimensionType → AnyRef → Any
- Annotations
- @Override()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withShape(shape: Int): PrimitiveDimensionType
- shape
the shape of the new type.
- returns
a copy of this type with a new shape.