Packages

c

com.linkedin.feathr.common.tensor

SimpleWriteableTuple

class SimpleWriteableTuple[T <: WriteableTuple[T]] extends ColumnUtils with WriteableTuple[T] with ReadableTuple

An implementation of WriteableTuple which keeps all values in primitive arrays. This can be used as a scratch space for a single row in a tensor.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleWriteableTuple
  2. ReadableTuple
  3. WriteableTuple
  4. ColumnUtils
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleWriteableTuple(types: Array[Representable])

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
    SimpleWriteableTuple → AnyRef → Any
    Annotations
    @Override()
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def getBoolean(column: Int): Boolean

    returns

    a boolean at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  10. def getBooleanArity(): Int
    Definition Classes
    ColumnUtils
  11. def getBytes(column: Int): Array[Byte]

    returns

    a byte array at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  12. def getBytesArity(): Int
    Definition Classes
    ColumnUtils
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getColumnIndex(): Array[Int]
    Definition Classes
    ColumnUtils
  15. def getColumnTypes(): Array[Representable]
    Definition Classes
    ColumnUtils
  16. def getCopy(): ReadableTuple

    returns

    a copy of this tuple, so that changes to the original tuple will not affect the new one.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  17. def getDouble(column: Int): Double

    returns

    a double at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  18. def getDoubleArity(): Int
    Definition Classes
    ColumnUtils
  19. def getFloat(column: Int): Float

    returns

    a float at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  20. def getFloatArity(): Int
    Definition Classes
    ColumnUtils
  21. def getInt(column: Int): Int

    returns

    an int at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  22. def getIntArity(): Int
    Definition Classes
    ColumnUtils
  23. def getLong(column: Int): Long

    returns

    a long at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  24. def getLongArity(): Int
    Definition Classes
    ColumnUtils
  25. def getString(column: Int): String

    returns

    a string at given column.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple
    Annotations
    @Override()
  26. def getStringArity(): Int
    Definition Classes
    ColumnUtils
  27. def getTypes(): Array[Representable]

    returns

    the types of all dimensions and the value as a single array.

    Definition Classes
    SimpleWriteableTuple → ReadableTuple → WriteableTuple
    Annotations
    @Override()
  28. def hashCode(): Int
    Definition Classes
    SimpleWriteableTuple → AnyRef → Any
    Annotations
    @Override()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def resetColumns(): Unit

    Resets all values to 0 (for primitives) and null for Strings

  34. def setBoolean(column: Int, value: Boolean): T

    Sets the specified column to a given boolean

    Sets the specified column to a given boolean

    column

    The column in the tuple to write to

    value

    The double value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  35. def setBytes(column: Int, value: Array[Byte]): T

    Sets the specified column to a given byte array

    Sets the specified column to a given byte array

    column

    The column in the tuple to write to

    value

    The byte array value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  36. def setDouble(column: Int, value: Double): T

    Sets the specified column to a given double

    Sets the specified column to a given double

    column

    The column in the tuple to write to

    value

    The double value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  37. def setFloat(column: Int, value: Float): T

    Sets the specified column to a given float

    Sets the specified column to a given float

    column

    The column in the tuple to write to

    value

    The float value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  38. def setInt(column: Int, value: Int): T

    Sets the specified column to a given int

    Sets the specified column to a given int

    column

    The column in the tuple to write to

    value

    The int value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  39. def setLong(column: Int, value: Long): T

    Sets the specified column to a given long

    Sets the specified column to a given long

    column

    The column in the tuple to write to

    value

    The long value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  40. def setString(column: Int, value: String): T

    Sets the specified column to a given String

    Sets the specified column to a given String

    column

    The column in the tuple to write to

    value

    The String value to be written

    returns

    A reference to this object (this)

    Definition Classes
    SimpleWriteableTuple → WriteableTuple
    Annotations
    @Override()
  41. def setValue(index: Int, value: Any): T
    Definition Classes
    WriteableTuple
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from ReadableTuple

Inherited from WriteableTuple[T]

Inherited from ColumnUtils

Inherited from AnyRef

Inherited from Any

Ungrouped