Package com.yahoo.tensor
Class MappedTensor.Builder
- java.lang.Object
-
- com.yahoo.tensor.MappedTensor.Builder
-
- All Implemented Interfaces:
Tensor.Builder
- Enclosing class:
- MappedTensor
public static class MappedTensor.Builder extends Object implements Tensor.Builder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.yahoo.tensor.Tensor.Builder
Tensor.Builder.CellBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MappedTensor
build()
Tensor.Builder.CellBuilder
cell()
Return a cell builderMappedTensor.Builder
cell(double value, long... labels)
Add a cellMappedTensor.Builder
cell(float value, long... labels)
MappedTensor.Builder
cell(TensorAddress address, double value)
Add a cellMappedTensor.Builder
cell(TensorAddress address, float value)
static MappedTensor.Builder
of(TensorType type)
Creates a suitable builder for the given typeTensorType
type()
Returns the type this is building-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.yahoo.tensor.Tensor.Builder
cell, cell, cell
-
-
-
-
Method Detail
-
of
public static MappedTensor.Builder of(TensorType type)
Description copied from interface:Tensor.Builder
Creates a suitable builder for the given type
-
cell
public Tensor.Builder.CellBuilder cell()
Description copied from interface:Tensor.Builder
Return a cell builder- Specified by:
cell
in interfaceTensor.Builder
-
type
public TensorType type()
Description copied from interface:Tensor.Builder
Returns the type this is building- Specified by:
type
in interfaceTensor.Builder
-
cell
public MappedTensor.Builder cell(TensorAddress address, float value)
- Specified by:
cell
in interfaceTensor.Builder
-
cell
public MappedTensor.Builder cell(TensorAddress address, double value)
Description copied from interface:Tensor.Builder
Add a cell- Specified by:
cell
in interfaceTensor.Builder
-
cell
public MappedTensor.Builder cell(float value, long... labels)
- Specified by:
cell
in interfaceTensor.Builder
-
cell
public MappedTensor.Builder cell(double value, long... labels)
Description copied from interface:Tensor.Builder
Add a cell- Specified by:
cell
in interfaceTensor.Builder
-
build
public MappedTensor build()
- Specified by:
build
in interfaceTensor.Builder
-
-