From 508c67f79a9e09a38cc3bde42483dbab4e09ba6b Mon Sep 17 00:00:00 2001 From: He Wang Date: Tue, 29 Oct 2024 17:29:05 +0800 Subject: [PATCH] init project --- .editorconfig | 15 ++++ .gitignore | 47 ++++++++++++ .idea/icon.png | Bin 0 -> 7848 bytes .idea/vcs.xml | 16 ++++ LICENSE | 202 +++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 21 +++++ README_CN.md | 19 +++++ 7 files changed, 320 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .idea/icon.png create mode 100644 .idea/vcs.xml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 README_CN.md diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5063372 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# This file is for unifying the coding style for different editors and IDEs +# See editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[{*.java,*.xml}] +indent_size = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c94b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +.flattened-pom.xml + +### IntelliJ IDEA ### +.idea/* +!.idea/vcs.xml +!.idea/icon.png +*.iml +*.ipr +*.iws + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store + +### Log ### +*.log +/logs diff --git a/.idea/icon.png b/.idea/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..103fde7659b31c847d0a296db530ac0779943b36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8{QE(_U_de@TMjQ$S28A)F>PJI1noK;B9&;p9o$&R%8;JTjWRsXB5GAh zA5jEgj{BPO<=M}n8|o2;bdPG}HNe{c3t5DisGRp;8ohm`TUoXpU*B&H~?S|O_;DJeX~jjA4WaNx-4^a7U|kBKpu0S;x96l5OB=|Z=6sef5)OWNi& z00{d1+W|Gw1$eIVsgc9$;oh{-5hlv)UTrO`bMD)n7I%J0#b?YGTbG)9Pj#opc%rQ& zu&csY)A0UV5VOsVS8KQCp=jdk0 zG?^vC{bI;0U&BQ9E&Ze>1momsG=kR$>reQD?(a;42T20@%@e z?yY74vy5cw^PLAB&{=wP2hZbpl8P>krn+SG9em{U#&cyvxR#MJIv0iQrOr@*R>vZ8U97OoBVaUo%BS#YB!mTdA}9fpoW4Xx-4wAdh; zMFK}m3f$6FD)x9^HvCiPUDjcGnfo0KvG)vFA<>&&{5|jEdHH$%K{0*5d#9Eu6kbCX zxk|;!wly0x-?o%D2}bV(D5fd|1B_$}TdV}y_%)B4GPcLa1#AMopJcUmJS~-d?d^cQ zJ?#0iH^GNuU9@L}9H}eTmbY@me37V`_1yo_iK8)(v@@gko(aE8{4#c*`0WgW#Q#Sx zu%pTR)QTx~*de)g0sD!@P^QTuHM$96@_@)<7W+R7(x(^*B@yR!iPV)OZuu*q7dzlY zPKa-9*Lms=U4A~IZs9#geT@h6Mi$)@| zVJpuxlV@&_m>zt*<@uXIea&_Esf+)QER|ha@sqR^J5h)$$B`);{+0#l8KuKO9uXOB zi-`%H2OE>iht6P?mddc?32YPu*n!L&7B7j5E*o!M0;?F(!C(LYC0uHj?)=5f+KEC- TXCwZ + + + + + + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7a4a3ea --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..87d3908 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# OceanBase Connectors for Apache Spark + +This repository contains the OceanBase connectors for Apache Spark. + +English | [简体中文](README_CN.md) + +## Features + +Coming soon... + +## Community + +Don’t hesitate to ask! + +Contact the developers and community at [https://ask.oceanbase.com](https://ask.oceanbase.com) if you need any help. + +[Open an issue](https://github.com/oceanbase/spark-connector-oceanbase/issues) if you found a bug. + +## Licensing + +See [LICENSE](LICENSE) for more information. diff --git a/README_CN.md b/README_CN.md new file mode 100644 index 0000000..3adf060 --- /dev/null +++ b/README_CN.md @@ -0,0 +1,19 @@ +# OceanBase Connectors for Apache Spark + +[English](README.md) | 简体中文 + +本仓库包含 OceanBase 的 Spark Connector。 + +## 功能 + +即将推出... + +## 社区 + +当你需要帮助时,你可以在 [https://ask.oceanbase.com](https://ask.oceanbase.com) 上找到开发者和其他的社区伙伴。 + +当你发现项目缺陷时,请在 [issues](https://github.com/oceanbase/spark-connector-oceanbase/issues) 页面创建一个新的 issue。 + +## 许可证 + +更多信息见 [LICENSE](LICENSE)。