diff --git a/src/main/java/io/tiledb/java/api/Attribute.java b/src/main/java/io/tiledb/java/api/Attribute.java
index b2924bdc..7a5117d2 100644
--- a/src/main/java/io/tiledb/java/api/Attribute.java
+++ b/src/main/java/io/tiledb/java/api/Attribute.java
@@ -261,6 +261,18 @@ public FilterList getFilterList() throws TileDBError {
return filterlist;
}
+ /**
+ * Sets the default fill value for the input attribute. This value will be used for the input
+ * attribute whenever querying (1) an empty cell in a dense array, or (2) a non-empty cell (in
+ * either dense or sparse array) when values on the input attribute are missing (e.g., if the user
+ * writes a subset of the attributes in a write operation).
+ *
+ *
Applicable to var-sized attributes.
+ *
+ * @param value The fill value
+ * @param size The fill value size
+ * @throws TileDBError
+ */
public void setFillValue(NativeArray value, BigInteger size) throws TileDBError {
try {
ctx.handleError(
@@ -271,6 +283,44 @@ public void setFillValue(NativeArray value, BigInteger size) throws TileDBError
}
}
+ /**
+ * Sets the default fill value for the input attribute. This value will be used for the input
+ * attribute whenever querying (1) an empty cell in a dense array, or (2) a non-empty cell (in
+ * either dense or sparse array) when values on the input attribute are missing (e.g., if the user
+ * writes a subset of the attributes in a write operation).
+ *
+ *
Applicable to var-sized attributes.
+ *
+ * @param value The fill value
+ * @throws TileDBError
+ */
+ public void setFillValue(Object value) throws TileDBError {
+ NativeArray array = new NativeArray(ctx, this.type.getNativeSize(), this.type.javaClass());
+ array.setItem(0, value);
+
+ try {
+ ctx.handleError(
+ tiledb.tiledb_attribute_set_fill_value(
+ ctx.getCtxp(),
+ attributep,
+ array.toVoidPointer(),
+ BigInteger.valueOf(this.type.getNativeSize())));
+ } catch (TileDBError err) {
+ throw err;
+ }
+ }
+
+ /**
+ * Gets the default fill value for the input attribute. This value will be used for the input
+ * attribute whenever querying (1) an empty cell in a dense array, or (2) a non-empty cell (in
+ * either dense or sparse array) when values on the input attribute are missing (e.g., if the user
+ * writes a subset of the attributes in a write operation).
+ *
+ *
Applicable to both fixed-sized and var-sized attributes.
+ *
+ * @return A pair with the fill value and its size
+ * @throws TileDBError
+ */
public Pair