@@ -72,7 +72,7 @@ public class Array implements AutoCloseable {
7272 * @exception TileDBError A TileDB exception
7373 */
7474 public Array (Context ctx , String uri ) throws TileDBError {
75- openArray (ctx , uri , TILEDB_READ , EncryptionType . TILEDB_NO_ENCRYPTION , new byte [] {} );
75+ this (ctx , uri , TILEDB_READ );
7676 }
7777
7878 /**
@@ -91,7 +91,7 @@ public Array(Context ctx, String uri) throws TileDBError {
9191 * @exception TileDBError A TileDB exception
9292 */
9393 public Array (Context ctx , String uri , BigInteger timestamp ) throws TileDBError {
94- openArray (ctx , uri , TILEDB_READ , EncryptionType . TILEDB_NO_ENCRYPTION , new byte [] {} , timestamp );
94+ this (ctx , uri , TILEDB_READ , timestamp );
9595 }
9696
9797 /**
@@ -110,7 +110,29 @@ public Array(Context ctx, String uri, BigInteger timestamp) throws TileDBError {
110110 * @exception TileDBError A TileDB exception
111111 */
112112 public Array (Context ctx , String uri , QueryType query_type ) throws TileDBError {
113- openArray (ctx , uri , query_type , EncryptionType .TILEDB_NO_ENCRYPTION , new byte [] {});
113+ this (ctx , uri , query_type , EncryptionType .TILEDB_NO_ENCRYPTION , new byte [] {});
114+ }
115+
116+ /**
117+ * Constructs an Array object, opening the array for the given query type at a user-given
118+ * timestamp (time-travelling).
119+ *
120+ * <pre><b>Example:</b>
121+ * {@code
122+ * Context ctx = new Context();
123+ * Array array new Array(ctx, "s3://bucket-name/array-name", TILEDB_READ);
124+ * }
125+ * </pre>
126+ *
127+ * @param ctx TileDB context
128+ * @param uri The array URI
129+ * @param query_type Query type to open the array for.
130+ * @param timestamp The timestamp
131+ * @exception TileDBError A TileDB exception
132+ */
133+ public Array (Context ctx , String uri , QueryType query_type , BigInteger timestamp )
134+ throws TileDBError {
135+ this (ctx , uri , query_type , EncryptionType .TILEDB_NO_ENCRYPTION , new byte [] {}, timestamp );
114136 }
115137
116138 /**
0 commit comments