diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-04-30 14:08:03 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-04-30 14:08:06 +0000 |
commit | 400a428fd3ae71684988e93953eb6c89462d057e (patch) | |
tree | acf2e09b984428532dc64a6affe76d4403a951a7 /vespajlib/abi-spec.json | |
parent | 8e2478b8965bbd29709957e2c4fc37e8333a59e5 (diff) |
add api for detecting cell existence
* new API "has(TensorAddress)" detects if a Tensor has a cell with the given address.
* use new API in join and merge. This will give different results for
cells that are present but contain NaN versus cells that aren't present at all.
* use new API in slice. This gives a different default (0, not NaN) when trying to
access cells that aren't present.
Diffstat (limited to 'vespajlib/abi-spec.json')
-rw-r--r-- | vespajlib/abi-spec.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespajlib/abi-spec.json b/vespajlib/abi-spec.json index ebca0a4d852..ccdd09e4cab 100644 --- a/vespajlib/abi-spec.json +++ b/vespajlib/abi-spec.json @@ -891,6 +891,7 @@ "public varargs double get(long[])", "public varargs float getFloat(long[])", "public double get(com.yahoo.tensor.TensorAddress)", + "public boolean has(com.yahoo.tensor.TensorAddress)", "public abstract double get(long)", "public abstract float getFloat(long)", "public com.yahoo.tensor.TensorType type()", @@ -941,6 +942,7 @@ "public com.yahoo.tensor.TensorType type()", "public long size()", "public double get(com.yahoo.tensor.TensorAddress)", + "public boolean has(com.yahoo.tensor.TensorAddress)", "public java.util.Iterator cellIterator()", "public java.util.Iterator valueIterator()", "public java.util.Map cells()", @@ -1031,6 +1033,7 @@ "public com.yahoo.tensor.TensorType type()", "public long size()", "public double get(com.yahoo.tensor.TensorAddress)", + "public boolean has(com.yahoo.tensor.TensorAddress)", "public java.util.Iterator cellIterator()", "public java.util.Iterator valueIterator()", "public java.util.Map cells()", @@ -1151,6 +1154,7 @@ "public boolean isEmpty()", "public abstract long size()", "public abstract double get(com.yahoo.tensor.TensorAddress)", + "public abstract boolean has(com.yahoo.tensor.TensorAddress)", "public abstract java.util.Iterator cellIterator()", "public abstract java.util.Iterator valueIterator()", "public abstract java.util.Map cells()", |