Support JNI-based parquet write to write datasets into files. **Reporter**: [Ke Jia](https://issues.apache.org/jira/browse/ARROW-17752) **Assignee**: [Ke Jia](https://issues.apache.org/jira/browse/ARROW-17752) #### Related issues: - [[Java][Dataset] Support writing to files within dataset scanner via JNI](https://github.com/apache/arrow/issues/27628) (duplicates) #### PRs and other links: - [GitHub Pull Request #14151](https://github.com/apache/arrow/pull/14151) <sub>**Note**: *This issue was originally created as [ARROW-17752](https://issues.apache.org/jira/browse/ARROW-17752). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*</sub>