aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-04-01 16:27:19 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-04-01 16:27:19 +0200
commitc18de31348936a234a6096740e018ffeb92e6df9 (patch)
tree8096c81ed514fc089a40f58a08109dc4d38ede1b /vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
parent06b999904e735420ad5d1a74ae551f88573d2657 (diff)
Verify serialization of various cell value types.
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/TensorType.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/TensorType.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
index d548b13601f..036f5e3ee5d 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
@@ -29,10 +29,16 @@ public class TensorType {
/** The empty tensor type - which is the same as a double */
public static final TensorType empty = new TensorType(ValueType.DOUBLE, Collections.emptyList());
- private final ValueType valueType;
+ private ValueType valueType;
public final ValueType valueType() { return valueType; }
+ //TODO Remove once value type is wired in were it should.
+ public final TensorType valueType(ValueType valueType) {
+ this.valueType = valueType;
+ return this;
+ }
+
/** Sorted list of the dimensions of this */
private final ImmutableList<Dimension> dimensions;