Packages

c

com.linkedin.feathr.common.tensor

PrimitiveDimensionType

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.

Linear Supertypes
DimensionType, Representable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrimitiveDimensionType
  2. DimensionType
  3. Representable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrimitiveDimensionType(primitive: Primitive)
  2. new PrimitiveDimensionType(primitive: Primitive, shape: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(o: Any): Boolean
    Definition Classes
    PrimitiveDimensionType → AnyRef → Any
    Annotations
    @Override()
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. 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
  11. def getName(): String

    Get the name of the DimensionType

    Get the name of the DimensionType

    returns

    the name

    Definition Classes
    PrimitiveDimensionType → DimensionType
    Annotations
    @Override()
  12. def getRepresentation(): Primitive
    Definition Classes
    PrimitiveDimensionType → Representable
    Annotations
    @Override()
  13. 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()
  14. def hashCode(): Int
    Definition Classes
    PrimitiveDimensionType → AnyRef → Any
    Annotations
    @Override()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. 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

    RuntimeException will be thrown if value is not valid for this dimension

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    PrimitiveDimensionType → AnyRef → Any
    Annotations
    @Override()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. def withShape(shape: Int): PrimitiveDimensionType

    shape

    the shape of the new type.

    returns

    a copy of this type with a new shape.

Inherited from DimensionType

Inherited from Representable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped