@@ -89,15 +89,16 @@ pub extern "system" fn Java_org_lance_Fragment_createWithFfiArray<'local>(
8989 dataset_uri : JString ,
9090 arrow_array_addr : jlong ,
9191 arrow_schema_addr : jlong ,
92- max_rows_per_file : JObject , // Optional<Integer>
93- max_rows_per_group : JObject , // Optional<Integer>
94- max_bytes_per_file : JObject , // Optional<Long>
95- mode : JObject , // Optional<String>
96- enable_stable_row_ids : JObject , // Optional<Boolean>
97- data_storage_version : JObject , // Optional<String>
98- storage_options_obj : JObject , // Map<String, String>
99- namespace_obj : JObject , // LanceNamespace (can be null)
100- table_id_obj : JObject , // List<String> (can be null)
92+ max_rows_per_file : JObject , // Optional<Integer>
93+ max_rows_per_group : JObject , // Optional<Integer>
94+ max_bytes_per_file : JObject , // Optional<Long>
95+ mode : JObject , // Optional<String>
96+ enable_stable_row_ids : JObject , // Optional<Boolean>
97+ data_storage_version : JObject , // Optional<String>
98+ storage_options_obj : JObject , // Map<String, String>
99+ namespace_obj : JObject , // LanceNamespace (can be null)
100+ table_id_obj : JObject , // List<String> (can be null)
101+ allow_external_blob_outside_bases : JObject , // Optional<Boolean>
101102) -> JObject < ' local > {
102103 ok_or_throw_with_return ! (
103104 env,
@@ -115,6 +116,7 @@ pub extern "system" fn Java_org_lance_Fragment_createWithFfiArray<'local>(
115116 storage_options_obj,
116117 namespace_obj,
117118 table_id_obj,
119+ allow_external_blob_outside_bases,
118120 ) ,
119121 JObject :: default ( )
120122 )
@@ -126,15 +128,16 @@ fn inner_create_with_ffi_array<'local>(
126128 dataset_uri : JString ,
127129 arrow_array_addr : jlong ,
128130 arrow_schema_addr : jlong ,
129- max_rows_per_file : JObject , // Optional<Integer>
130- max_rows_per_group : JObject , // Optional<Integer>
131- max_bytes_per_file : JObject , // Optional<Long>
132- mode : JObject , // Optional<String>
133- enable_stable_row_ids : JObject , // Optional<Boolean>
134- data_storage_version : JObject , // Optional<String>
135- storage_options_obj : JObject , // Map<String, String>
136- namespace_obj : JObject , // LanceNamespace (can be null)
137- table_id_obj : JObject , // List<String> (can be null)
131+ max_rows_per_file : JObject , // Optional<Integer>
132+ max_rows_per_group : JObject , // Optional<Integer>
133+ max_bytes_per_file : JObject , // Optional<Long>
134+ mode : JObject , // Optional<String>
135+ enable_stable_row_ids : JObject , // Optional<Boolean>
136+ data_storage_version : JObject , // Optional<String>
137+ storage_options_obj : JObject , // Map<String, String>
138+ namespace_obj : JObject , // LanceNamespace (can be null)
139+ table_id_obj : JObject , // List<String> (can be null)
140+ allow_external_blob_outside_bases : JObject , // Optional<Boolean>
138141) -> Result < JObject < ' local > > {
139142 let c_array_ptr = arrow_array_addr as * mut FFI_ArrowArray ;
140143 let c_schema_ptr = arrow_schema_addr as * mut FFI_ArrowSchema ;
@@ -161,6 +164,7 @@ fn inner_create_with_ffi_array<'local>(
161164 storage_options_obj,
162165 namespace_obj,
163166 table_id_obj,
167+ allow_external_blob_outside_bases,
164168 reader,
165169 )
166170}
@@ -171,15 +175,16 @@ pub extern "system" fn Java_org_lance_Fragment_createWithFfiStream<'a>(
171175 _obj : JObject ,
172176 dataset_uri : JString ,
173177 arrow_array_stream_addr : jlong ,
174- max_rows_per_file : JObject , // Optional<Integer>
175- max_rows_per_group : JObject , // Optional<Integer>
176- max_bytes_per_file : JObject , // Optional<Long>
177- mode : JObject , // Optional<String>
178- enable_stable_row_ids : JObject , // Optional<Boolean>
179- data_storage_version : JObject , // Optional<String>
180- storage_options_obj : JObject , // Map<String, String>
181- namespace_obj : JObject , // LanceNamespace (can be null)
182- table_id_obj : JObject , // List<String> (can be null)
178+ max_rows_per_file : JObject , // Optional<Integer>
179+ max_rows_per_group : JObject , // Optional<Integer>
180+ max_bytes_per_file : JObject , // Optional<Long>
181+ mode : JObject , // Optional<String>
182+ enable_stable_row_ids : JObject , // Optional<Boolean>
183+ data_storage_version : JObject , // Optional<String>
184+ storage_options_obj : JObject , // Map<String, String>
185+ namespace_obj : JObject , // LanceNamespace (can be null)
186+ table_id_obj : JObject , // List<String> (can be null)
187+ allow_external_blob_outside_bases : JObject , // Optional<Boolean>
183188) -> JObject < ' a > {
184189 ok_or_throw_with_return ! (
185190 env,
@@ -196,6 +201,7 @@ pub extern "system" fn Java_org_lance_Fragment_createWithFfiStream<'a>(
196201 storage_options_obj,
197202 namespace_obj,
198203 table_id_obj,
204+ allow_external_blob_outside_bases,
199205 ) ,
200206 JObject :: null( )
201207 )
@@ -206,15 +212,16 @@ fn inner_create_with_ffi_stream<'local>(
206212 env : & mut JNIEnv < ' local > ,
207213 dataset_uri : JString ,
208214 arrow_array_stream_addr : jlong ,
209- max_rows_per_file : JObject , // Optional<Integer>
210- max_rows_per_group : JObject , // Optional<Integer>
211- max_bytes_per_file : JObject , // Optional<Long>
212- mode : JObject , // Optional<String>
213- enable_stable_row_ids : JObject , // Optional<Boolean>
214- data_storage_version : JObject , // Optional<String>
215- storage_options_obj : JObject , // Map<String, String>
216- namespace_obj : JObject , // LanceNamespace (can be null)
217- table_id_obj : JObject , // List<String> (can be null)
215+ max_rows_per_file : JObject , // Optional<Integer>
216+ max_rows_per_group : JObject , // Optional<Integer>
217+ max_bytes_per_file : JObject , // Optional<Long>
218+ mode : JObject , // Optional<String>
219+ enable_stable_row_ids : JObject , // Optional<Boolean>
220+ data_storage_version : JObject , // Optional<String>
221+ storage_options_obj : JObject , // Map<String, String>
222+ namespace_obj : JObject , // LanceNamespace (can be null)
223+ table_id_obj : JObject , // List<String> (can be null)
224+ allow_external_blob_outside_bases : JObject , // Optional<Boolean>
218225) -> Result < JObject < ' local > > {
219226 let stream_ptr = arrow_array_stream_addr as * mut FFI_ArrowArrayStream ;
220227 let reader = unsafe { ArrowArrayStreamReader :: from_raw ( stream_ptr) } ?;
@@ -231,6 +238,7 @@ fn inner_create_with_ffi_stream<'local>(
231238 storage_options_obj,
232239 namespace_obj,
233240 table_id_obj,
241+ allow_external_blob_outside_bases,
234242 reader,
235243 )
236244}
@@ -239,15 +247,16 @@ fn inner_create_with_ffi_stream<'local>(
239247fn create_fragment < ' a > (
240248 env : & mut JNIEnv < ' a > ,
241249 dataset_uri : JString ,
242- max_rows_per_file : JObject , // Optional<Integer>
243- max_rows_per_group : JObject , // Optional<Integer>
244- max_bytes_per_file : JObject , // Optional<Long>
245- mode : JObject , // Optional<String>
246- enable_stable_row_ids : JObject , // Optional<Boolean>
247- data_storage_version : JObject , // Optional<String>
248- storage_options_obj : JObject , // Map<String, String>
249- namespace_obj : JObject , // LanceNamespace (can be null)
250- table_id_obj : JObject , // List<String> (can be null)
250+ max_rows_per_file : JObject , // Optional<Integer>
251+ max_rows_per_group : JObject , // Optional<Integer>
252+ max_bytes_per_file : JObject , // Optional<Long>
253+ mode : JObject , // Optional<String>
254+ enable_stable_row_ids : JObject , // Optional<Boolean>
255+ data_storage_version : JObject , // Optional<String>
256+ storage_options_obj : JObject , // Map<String, String>
257+ namespace_obj : JObject , // LanceNamespace (can be null)
258+ table_id_obj : JObject , // List<String> (can be null)
259+ allow_external_blob_outside_bases : JObject , // Optional<Boolean>
251260 source : impl StreamingWriteSource ,
252261) -> Result < JObject < ' a > > {
253262 let path_str = dataset_uri. extract ( env) ?;
@@ -264,6 +273,7 @@ fn create_fragment<'a>(
264273 & storage_options_obj,
265274 & JObject :: null ( ) , // not used when creating fragments
266275 & JObject :: null ( ) , // not used when creating fragments
276+ & allow_external_blob_outside_bases,
267277 ) ?;
268278
269279 // Set up storage options provider if namespace is provided
0 commit comments