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 TypeMethodDescriptiongetTypes()setBoolean(int column, boolean value) Sets the specified column to a given `boolean`default TsetBytes(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`Sets the specified column to a given `String`default T
-
Method Details
-
getTypes
Representable[] getTypes()- Returns:
- the types of all dimensions and the value as a single array.
-
setInt
Sets the specified column to a given `int`- Parameters:
column- The column in the tuple to write tovalue- The int value to be written- Returns:
- A reference to this object (`this`)
-
setLong
Sets the specified column to a given `long`- Parameters:
column- The column in the tuple to write tovalue- The long value to be written- Returns:
- A reference to this object (`this`)
-
setFloat
Sets the specified column to a given `float`- Parameters:
column- The column in the tuple to write tovalue- The float value to be written- Returns:
- A reference to this object (`this`)
-
setDouble
Sets the specified column to a given `double`- Parameters:
column- The column in the tuple to write tovalue- The double value to be written- Returns:
- A reference to this object (`this`)
-
setBoolean
Sets the specified column to a given `boolean`- Parameters:
column- The column in the tuple to write tovalue- The double value to be written- Returns:
- A reference to this object (`this`)
-
setString
Sets the specified column to a given `String`- Parameters:
column- The column in the tuple to write tovalue- The String value to be written- Returns:
- A reference to this object (`this`)
-
setBytes
Sets the specified column to a given `byte array`- Parameters:
column- The column in the tuple to write tovalue- The byte array value to be written- Returns:
- A reference to this object (`this`)
-
setValue
-