@@ -236,6 +236,7 @@ public static void exportArrayStream(
236236 *
237237 * <p>The given ArrowSchema struct is released (as per the C data interface specification), even
238238 * if this function fails.
239+ * <p>The given ArrowSchema struct is not closed (freed). This is the responsibility of the caller.
239240 *
240241 * @param allocator Buffer allocator for allocating dictionary vectors
241242 * @param schema C data interface struct representing the field [inout]
@@ -250,7 +251,6 @@ public static Field importField(
250251 return importer .importField (schema , provider );
251252 } finally {
252253 schema .release ();
253- schema .close ();
254254 }
255255 }
256256
@@ -279,8 +279,9 @@ public static Schema importSchema(
279279 /**
280280 * Import Java vector from the C data interface.
281281 *
282- * <p>The ArrowArray struct has its contents moved (as per the C data interface specification) to
283- * a private object held alive by the resulting array.
282+ * <p>On successful completion, the ArrowArray struct will have been moved (as per the C data interface specification)
283+ * to a private object held alive by the resulting array. This means the ArrowArray will have been released, but not
284+ * closed (freed). Closing the ArrowArray is the responsibility of the caller.
284285 *
285286 * @param allocator Buffer allocator
286287 * @param array C data interface struct holding the array data
@@ -401,6 +402,10 @@ public static VectorSchemaRoot importVectorSchemaRoot(
401402 /**
402403 * Import an ArrowArrayStream as an {@link ArrowReader}.
403404 *
405+ * <p>On successful completion, the ArrowArrayStream struct will have been moved (as per the C data interface specification)
406+ * to a private object held alive by the resulting ArrowReader. This means the ArrowArrayStream will have been
407+ * released, but not closed (freed). Closing the ArrowArrayStream is the responsibility of the caller.
408+ *
404409 * @param allocator Buffer allocator for allocating the output data.
405410 * @param stream C stream interface struct to import.
406411 * @return Imported reader
0 commit comments