@@ -72,7 +72,7 @@ public class Array implements AutoCloseable {
72
72
* @exception TileDBError A TileDB exception
73
73
*/
74
74
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 );
76
76
}
77
77
78
78
/**
@@ -91,7 +91,7 @@ public Array(Context ctx, String uri) throws TileDBError {
91
91
* @exception TileDBError A TileDB exception
92
92
*/
93
93
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 );
95
95
}
96
96
97
97
/**
@@ -110,7 +110,29 @@ public Array(Context ctx, String uri, BigInteger timestamp) throws TileDBError {
110
110
* @exception TileDBError A TileDB exception
111
111
*/
112
112
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 );
114
136
}
115
137
116
138
/**
0 commit comments