Interface WriteableTuple<T extends WriteableTuple<T>>

All Known Subinterfaces:
TensorBuilder<T>
All Known Implementing Classes:
DenseTensorBuilder, SimpleWriteableTuple, UniversalTensorBuilder

public interface WriteableTuple<T extends WriteableTuple<T>>
A writable tuple of primitives.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    setBoolean(int column, boolean value)
    Sets the specified column to a given `boolean`
    default T
    setBytes(int column, byte[] value)
    Sets the specified column to a given `byte array`
    setDouble(int column, double value)
    Sets the specified column to a given `double`
    setFloat(int column, float value)
    Sets the specified column to a given `float`
    setInt(int column, int value)
    Sets the specified column to a given `int`
    setLong(int column, long value)
    Sets the specified column to a given `long`
    setString(int column, String value)
    Sets the specified column to a given `String`
    default T
    setValue(int index, Object value)
     
  • Method Details

    • getTypes

      Representable[] getTypes()
      Returns:
      the types of all dimensions and the value as a single array.
    • setInt

      T setInt(int column, int value)
      Sets the specified column to a given `int`
      Parameters:
      column - The column in the tuple to write to
      value - The int value to be written
      Returns:
      A reference to this object (`this`)
    • setLong

      T setLong(int column, long value)
      Sets the specified column to a given `long`
      Parameters:
      column - The column in the tuple to write to
      value - The long value to be written
      Returns:
      A reference to this object (`this`)
    • setFloat

      T setFloat(int column, float value)
      Sets the specified column to a given `float`
      Parameters:
      column - The column in the tuple to write to
      value - The float value to be written
      Returns:
      A reference to this object (`this`)
    • setDouble

      T setDouble(int column, double value)
      Sets the specified column to a given `double`
      Parameters:
      column - The column in the tuple to write to
      value - The double value to be written
      Returns:
      A reference to this object (`this`)
    • setBoolean

      T setBoolean(int column, boolean value)
      Sets the specified column to a given `boolean`
      Parameters:
      column - The column in the tuple to write to
      value - The double value to be written
      Returns:
      A reference to this object (`this`)
    • setString

      T setString(int column, String value)
      Sets the specified column to a given `String`
      Parameters:
      column - The column in the tuple to write to
      value - The String value to be written
      Returns:
      A reference to this object (`this`)
    • setBytes

      default T setBytes(int column, byte[] value)
      Sets the specified column to a given `byte array`
      Parameters:
      column - The column in the tuple to write to
      value - The byte array value to be written
      Returns:
      A reference to this object (`this`)
    • setValue

      default T setValue(int index, Object value)