@@ -50,6 +50,48 @@ public FragmentInfo(Context ctx, String uri, EncryptionType encryptionType, Stri
5050 }
5151 }
5252
53+ /**
54+ * Retrieves the non-empty domain range sizes from a fragment for a given dimension index.
55+ * Applicable to var-sized dimensions.
56+ *
57+ * @param fragmentID The fragment ID
58+ * @param dimensionID The dimension name
59+ * @return The non-empty domain range sizes from a fragment for a given dimension index.
60+ * @throws TileDBError
61+ */
62+ public Pair <Long , Long > getNonEmptyDomainVarSizeFromIndex (long fragmentID , long dimensionID )
63+ throws TileDBError {
64+ SWIGTYPE_p_unsigned_long_long startSize = tiledb .new_ullp ();
65+ SWIGTYPE_p_unsigned_long_long endSize = tiledb .new_ullp ();
66+
67+ ctx .handleError (
68+ tiledb .tiledb_fragment_info_get_non_empty_domain_var_size_from_index (
69+ ctx .getCtxp (), fragmentInfop , fragmentID , dimensionID , startSize , endSize ));
70+ return new Pair (
71+ tiledb .ullp_value (startSize ).longValue (), tiledb .ullp_value (endSize ).longValue ());
72+ }
73+
74+ /**
75+ * Retrieves the non-empty domain range sizes from a fragment for a given dimension name.
76+ * Applicable to var-sized dimensions.
77+ *
78+ * @param fragmentID The fragment ID
79+ * @param dimensionName The dimension name
80+ * @return The non-empty domain range sizes from a fragment for a given dimension name
81+ * @throws TileDBError
82+ */
83+ public Pair <Long , Long > getNonEmptyDomainVarSizeFromName (long fragmentID , String dimensionName )
84+ throws TileDBError {
85+ SWIGTYPE_p_unsigned_long_long startSize = tiledb .new_ullp ();
86+ SWIGTYPE_p_unsigned_long_long endSize = tiledb .new_ullp ();
87+
88+ ctx .handleError (
89+ tiledb .tiledb_fragment_info_get_non_empty_domain_var_size_from_name (
90+ ctx .getCtxp (), fragmentInfop , fragmentID , dimensionName , startSize , endSize ));
91+ return new Pair (
92+ tiledb .ullp_value (startSize ).longValue (), tiledb .ullp_value (endSize ).longValue ());
93+ }
94+
5395 /**
5496 * Returns the number of fragments.
5597 *
0 commit comments