You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2017/11/09 04:52:12 UTC
[2/4] atlas git commit: ATLAS-2251: removed typesystem module and
scala, json4s, gson libraries
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/LICENSE.md
----------------------------------------------------------------------
diff --git a/typesystem/LICENSE.md b/typesystem/LICENSE.md
deleted file mode 100755
index 5c304d1..0000000
--- a/typesystem/LICENSE.md
+++ /dev/null
@@ -1,201 +0,0 @@
-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.
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/doc/IDataType.uml
----------------------------------------------------------------------
diff --git a/typesystem/doc/IDataType.uml b/typesystem/doc/IDataType.uml
deleted file mode 100755
index 68051c3..0000000
--- a/typesystem/doc/IDataType.uml
+++ /dev/null
@@ -1,190 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you 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.
- -->
-<Diagram>
- <ID>JAVA</ID>
- <OriginalElement>org.apache.atlas.types.IDataType</OriginalElement>
- <nodes>
- <node x="2063.5" y="401.0">org.apache.atlas.types.DataTypes.PrimitiveType</node>
- <node x="1307.0" y="687.0">org.apache.atlas.types.DataTypes.BigIntegerType</node>
- <node x="3098.0" y="687.0">org.apache.atlas.types.DataTypes.ShortType</node>
- <node x="2899.0" y="687.0">org.apache.atlas.types.DataTypes.DoubleType</node>
- <node x="1705.0" y="687.0">org.apache.atlas.types.DataTypes.FloatType</node>
- <node x="2650.5" y="335.0">org.apache.atlas.types.DataTypes.MapType</node>
- <node x="2501.0" y="687.0">org.apache.atlas.types.DataTypes.BooleanType</node>
- <node x="2073.5" y="168.0">org.apache.atlas.types.AbstractDataType</node>
- <node x="1108.0" y="687.0">org.apache.atlas.types.DataTypes.StringType</node>
- <node x="0.0" y="632.0">org.apache.atlas.types.ClassType</node>
- <node x="9.75" y="302.0">org.apache.atlas.types.HierarchicalType</node>
- <node x="2103.0" y="687.0">org.apache.atlas.types.DataTypes.BigDecimalType</node>
- <node x="736.0" y="632.0">org.apache.atlas.types.StructType</node>
- <node x="1506.0" y="687.0">org.apache.atlas.types.DataTypes.DateType</node>
- <node x="2341.5" y="357.0">org.apache.atlas.types.DataTypes.ArrayType</node>
- <node x="398.0" y="665.0">org.apache.atlas.types.TraitType</node>
- <node x="2700.0" y="687.0">org.apache.atlas.types.DataTypes.IntType</node>
- <node x="1904.0" y="687.0">org.apache.atlas.types.DataTypes.ByteType</node>
- <node x="2302.0" y="687.0">org.apache.atlas.types.DataTypes.LongType</node>
- <node x="544.0" y="390.0">org.apache.atlas.types.IConstructableType</node>
- <node x="1305.0" y="0.0">org.apache.atlas.types.IDataType</node>
- </nodes>
- <notes />
- <edges>
- <edge source="org.apache.atlas.types.StructType" target="org.apache.atlas.types.AbstractDataType">
- <point x="88.0" y="-92.0" />
- <point x="1000.0" y="282.0" />
- <point x="2144.9" y="282.0" />
- <point x="-47.59999999999991" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.BooleanType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="2590.5" y="602.0" />
- <point x="2239.409090909091" y="602.0" />
- <point x="46.90909090909099" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.IntType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="2789.5" y="592.0" />
- <point x="2262.863636363636" y="592.0" />
- <point x="70.36363636363626" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.ByteType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="1993.5" y="612.0" />
- <point x="2169.0454545454545" y="612.0" />
- <point x="-23.454545454545496" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.MapType" target="org.apache.atlas.types.AbstractDataType">
- <point x="0.0" y="-92.0" />
- <point x="2811.0" y="272.0" />
- <point x="2287.7" y="272.0" />
- <point x="95.20000000000005" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.StringType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="-5.6843418860808015E-14" y="-37.0" />
- <point x="1197.5" y="572.0" />
- <point x="2075.227272727273" y="572.0" />
- <point x="-117.27272727272725" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.PrimitiveType" target="org.apache.atlas.types.AbstractDataType">
- <point x="0.0" y="-26.0" />
- <point x="0.0" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.ArrayType" target="org.apache.atlas.types.AbstractDataType">
- <point x="0.0" y="-70.0" />
- <point x="2486.0" y="282.0" />
- <point x="2240.1" y="282.0" />
- <point x="47.59999999999991" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.IConstructableType" target="org.apache.atlas.types.IDataType">
- <point x="0.0" y="-37.0" />
- <point x="636.5" y="262.0" />
- <point x="511.03656126482247" y="262.0" />
- <point x="511.03656126482247" y="143.0" />
- <point x="1359.75" y="143.0" />
- <point x="-54.75" y="59.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.LongType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="2391.5" y="612.0" />
- <point x="2215.9545454545455" y="612.0" />
- <point x="23.454545454545496" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.DateType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="1595.5" y="592.0" />
- <point x="2122.1363636363635" y="592.0" />
- <point x="-70.36363636363637" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.TraitType" target="org.apache.atlas.types.HierarchicalType">
- <point x="-79.5" y="-59.0" />
- <point x="477.5" y="602.0" />
- <point x="264.0" y="602.0" />
- <point x="84.75" y="125.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.DoubleType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="2988.5" y="582.0" />
- <point x="2286.318181818182" y="582.0" />
- <point x="93.81818181818176" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.ShortType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="3187.5" y="572.0" />
- <point x="2309.772727272727" y="572.0" />
- <point x="117.27272727272725" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.StructType" target="org.apache.atlas.types.IConstructableType">
- <point x="-88.0" y="-92.0" />
- <point x="824.0" y="612.0" />
- <point x="698.1666666666666" y="612.0" />
- <point x="61.66666666666663" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.HierarchicalType" target="org.apache.atlas.types.AbstractDataType">
- <point x="0.0" y="-125.0" />
- <point x="179.25" y="272.0" />
- <point x="2097.3" y="272.0" />
- <point x="-95.20000000000005" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.BigDecimalType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="0.0" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.FloatType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="1794.5" y="602.0" />
- <point x="2145.590909090909" y="602.0" />
- <point x="-46.90909090909099" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.types.ClassType" target="org.apache.atlas.types.HierarchicalType">
- <point x="-94.5" y="-92.0" />
- <point x="-84.75" y="125.0" />
- </edge>
- <edge source="org.apache.atlas.types.AbstractDataType" target="org.apache.atlas.types.IDataType">
- <point x="0.0" y="-37.0" />
- <point x="2192.5" y="143.0" />
- <point x="1469.25" y="143.0" />
- <point x="54.75" y="59.0" />
- </edge>
- <edge source="org.apache.atlas.types.TraitType" target="org.apache.atlas.types.IConstructableType">
- <point x="79.5" y="-59.0" />
- <point x="0.0" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.ClassType" target="org.apache.atlas.types.IConstructableType">
- <point x="94.5" y="-92.0" />
- <point x="283.5" y="612.0" />
- <point x="574.8333333333333" y="612.0" />
- <point x="-61.66666666666666" y="37.0" />
- </edge>
- <edge source="org.apache.atlas.types.DataTypes.BigIntegerType" target="org.apache.atlas.types.DataTypes.PrimitiveType">
- <point x="0.0" y="-37.0" />
- <point x="1396.5" y="582.0" />
- <point x="2098.681818181818" y="582.0" />
- <point x="-93.81818181818176" y="26.0" />
- </edge>
- </edges>
- <settings layout="Hierarchic Group" zoom="1.0" x="1212.0" y="-764.5" />
- <SelectedNodes>
- <node>org.apache.atlas.types.DataTypes.StringType</node>
- </SelectedNodes>
- <Categories>
- <Category>Methods</Category>
- </Categories>
- <SCOPE>All</SCOPE>
- <VISIBILITY>private</VISIBILITY>
-</Diagram>
-
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/doc/Instance.uml
----------------------------------------------------------------------
diff --git a/typesystem/doc/Instance.uml b/typesystem/doc/Instance.uml
deleted file mode 100755
index e11c685..0000000
--- a/typesystem/doc/Instance.uml
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you 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.
- -->
-<Diagram>
- <ID>JAVA</ID>
- <OriginalElement>org.apache.atlas.storage.ReferenceableInstance</OriginalElement>
- <nodes>
- <node x="698.875" y="259.0">org.apache.atlas.storage.DownCastStructInstance</node>
- <node x="30.536458333333258" y="628.0">org.apache.atlas.storage.ReferenceableInstance</node>
- <node x="369.875" y="259.0">org.apache.atlas.IReferenceableInstance</node>
- <node x="0.0" y="146.0">org.apache.atlas.ITypedInstance</node>
- <node x="4.7864583333332575" y="482.0">org.apache.atlas.ITypedReferenceableInstance</node>
- <node x="269.40624999999994" y="0.0">org.apache.atlas.IInstance</node>
- <node x="947.875" y="248.0">org.apache.atlas.Struct</node>
- <node x="651.96875" y="449.0">org.apache.atlas.Referenceable</node>
- <node x="240.7864583333333" y="416.0">org.apache.atlas.storage.StructInstance</node>
- <node x="236.87499999999997" y="292.0">org.apache.atlas.ITypedStruct</node>
- <node x="593.1770833333333" y="157.0">org.apache.atlas.IStruct</node>
- </nodes>
- <notes />
- <edges>
- <edge source="org.apache.atlas.storage.ReferenceableInstance" target="org.apache.atlas.storage.StructInstance">
- <point x="82.25" y="-59.0" />
- <point x="277.28645833333326" y="603.0" />
- <point x="385.28645833333326" y="603.0" />
- <point x="0.0" y="81.0" />
- </edge>
- <edge source="org.apache.atlas.Referenceable" target="org.apache.atlas.IReferenceableInstance">
- <point x="-77.25" y="-48.0" />
- <point x="729.21875" y="396.0" />
- <point x="601.625" y="396.0" />
- <point x="77.25" y="48.0" />
- </edge>
- <edge source="org.apache.atlas.storage.DownCastStructInstance" target="org.apache.atlas.IStruct">
- <point x="0.0" y="-48.0" />
- <point x="813.375" y="228.0" />
- <point x="640.0520833333333" y="228.0" />
- <point x="9.375" y="15.0" />
- </edge>
- <edge source="org.apache.atlas.Struct" target="org.apache.atlas.IStruct">
- <point x="0.0" y="-59.0" />
- <point x="1072.375" y="218.0" />
- <point x="658.8020833333333" y="218.0" />
- <point x="28.125" y="15.0" />
- </edge>
- <edge source="org.apache.atlas.ITypedInstance" target="org.apache.atlas.IInstance">
- <point x="0.0" y="-26.0" />
- <point x="116.0" y="121.0" />
- <point x="326.65624999999994" y="121.0" />
- <point x="-57.25" y="48.0" />
- </edge>
- <edge source="org.apache.atlas.IStruct" target="org.apache.atlas.IInstance">
- <point x="0.0" y="-15.0" />
- <point x="630.6770833333333" y="121.0" />
- <point x="441.15624999999994" y="121.0" />
- <point x="57.25" y="48.0" />
- </edge>
- <edge source="org.apache.atlas.IReferenceableInstance" target="org.apache.atlas.IStruct">
- <point x="0.0" y="-48.0" />
- <point x="524.375" y="228.0" />
- <point x="621.3020833333333" y="228.0" />
- <point x="-9.375" y="15.0" />
- </edge>
- <edge source="org.apache.atlas.Referenceable" target="org.apache.atlas.Struct">
- <point x="77.25" y="-48.0" />
- <point x="883.71875" y="396.0" />
- <point x="1072.375" y="396.0" />
- <point x="0.0" y="59.0" />
- </edge>
- <edge source="org.apache.atlas.ITypedStruct" target="org.apache.atlas.IStruct">
- <point x="28.25" y="-15.0" />
- <point x="321.625" y="218.0" />
- <point x="602.5520833333333" y="218.0" />
- <point x="-28.125" y="15.0" />
- </edge>
- <edge source="org.apache.atlas.ITypedStruct" target="org.apache.atlas.ITypedInstance">
- <point x="-28.25" y="-15.0" />
- <point x="265.125" y="228.0" />
- <point x="174.0" y="228.0" />
- <point x="58.0" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.storage.StructInstance" target="org.apache.atlas.ITypedStruct">
- <point x="0.0" y="-81.0" />
- <point x="385.28645833333326" y="386.0" />
- <point x="293.375" y="386.0" />
- <point x="0.0" y="15.0" />
- </edge>
- <edge source="org.apache.atlas.ITypedReferenceableInstance" target="org.apache.atlas.ITypedInstance">
- <point x="-54.0" y="-15.0" />
- <point x="-58.0" y="26.0" />
- </edge>
- <edge source="org.apache.atlas.ITypedReferenceableInstance" target="org.apache.atlas.IReferenceableInstance">
- <point x="54.0" y="-15.0" />
- <point x="166.78645833333326" y="396.0" />
- <point x="447.125" y="396.0" />
- <point x="-77.25" y="48.0" />
- </edge>
- <edge source="org.apache.atlas.storage.ReferenceableInstance" target="org.apache.atlas.ITypedReferenceableInstance">
- <point x="-82.25" y="-59.0" />
- <point x="0.0" y="15.0" />
- </edge>
- </edges>
- <settings layout="Hierarchic Group" zoom="1.0" x="239.0" y="335.5" />
- <SelectedNodes />
- <Categories>
- <Category>Methods</Category>
- </Categories>
- <SCOPE>All</SCOPE>
- <VISIBILITY>private</VISIBILITY>
-</Diagram>
-
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/doc/QueryDSL.org
----------------------------------------------------------------------
diff --git a/typesystem/doc/QueryDSL.org b/typesystem/doc/QueryDSL.org
deleted file mode 100755
index 22b7386..0000000
--- a/typesystem/doc/QueryDSL.org
+++ /dev/null
@@ -1,266 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-
-#+TITLE: Query DSL
-#+AUTHOR: Harish Butani
-#+EMAIL: hbutani@apache.org
-#+LANGUAGE: en
-#+INFOJS_OPT: view:showall toc:t ltoc:t mouse:underline path:http://orgmode.org/org-info.js
-#+LINK_HOME: http://home.fnal.gov/~neilsen
-#+LINK_UP: http://home.fnal.gov/~neilsen/notebook
-#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://orgmode.org/org-manual.css" />
-#+LaTeX_CLASS: smarticle
-#+LaTeX_HEADER: \pdfmapfile{/home/neilsen/texmf/fonts/map/dvips/libertine/libertine.map}
-#+LaTeX_HEADER: \usepackage[ttscale=.875]{libertine}
-#+LaTeX_HEADER: \usepackage{sectsty}
-#+LaTeX_HEADER: \sectionfont{\normalfont\scshape}
-#+LaTeX_HEADER: \subsectionfont{\normalfont\itshape}
-#+EXPORT_SELECT_TAGS: export
-#+EXPORT_EXCLUDE_TAGS: noexport
-#+OPTIONS: H:2 num:nil toc:nil \n:nil @:t ::t |:t ^:{} _:{} *:t TeX:t LaTeX:t
-#+STARTUP: showall
-#+OPTIONS: html-postamble:nil
-
-** Example Type Definitions
-#+begin_src plantuml :file class_diagram.png
-scale 1300 width
-
-note left of Trait : traits are classifications/tags attached to Instances
-class Trait
-Trait <|-- JDbcAccess
-Trait <|-- PII
-Trait <|-- Dimension
-Trait <|-- Metric
-Trait <|-- ETL
-
-class Object
-
-Object --* Trait : traits >
-
-Object <|-- DB
-Object <|-- Table
-Object <|-- Column
-
-class DB {
- name : String
- owner : String
-}
-
-class StorageDescriptor {
- inputFormat : String
- outputFormat : String
-}
-
-class Column {
- name : String
- dataType : String
-}
-
-class Table {
- name: String
- db: DB
-}
-Table -> StorageDescriptor : storageDesc >
-Table -> DB : db >
-
-Column *-> StorageDescriptor : storageDesc >
-
-class LoadProcess {
- name String
-}
-LoadProcess -* Table : inputTables >
-LoadProcess -> Table : outputTable >
-
-class View {
- name String
-}
-View -* Table : inputTables >
-
-#+end_src
-
-#+CAPTION: ETL and Reporting Scenario Types
-#+LABEL: fig:sampleTypeDefs
-#+results:
-[[file:class_diagram.png]]
-
-** Example Instance Graph
-#+begin_src dot :file instanceGraph.png :cmdline -Kdot -Tpng
-digraph G {
- //size ="6 6";
- nodesep=.2;
- //rankdir=LR;
- ranksep=.25;
- node [shape=record fontsize=9];
- compound=true;
-
-subgraph cluster0 {
- style=bold;
- label = "Sales Database"; fontsize=18;
- salesDB[label="DB(sales)"]
-
- salesFact[label="Table(sales_fact)" style=filled; color="khaki"]
- salesStorage[label="Storage(text,text)"]
- sales_time_id[label="time_id" shape="circle" style=filled color="peachpuff"]
- sales_product_id[label="product_id" shape="circle" style=filled color="peachpuff"]
- sales_customer_id[label="customer_id" shape="circle" style=filled color="peachpuff"]
- sales_sales[label="sales" shape="circle" style=filled color="peachpuff"]
- sales_sales_metric[label="Metric" style=filled; shape="ellipse" color="turquoise"]
-
- salesFact -> salesDB;
- salesFact -> salesStorage;
- sales_time_id -> salesStorage;
- sales_product_id -> salesStorage;
- sales_customer_id -> salesStorage;
- sales_sales -> salesStorage;
- sales_sales -> sales_sales_metric;
-
- productDim[label="Table(product_dim)" style=filled; color="khaki"]
- productStorage[label="Storage(text,text)"]
- product_product_id[label="product_id" shape="circle" style=filled color="peachpuff"]
- product_product_name[label="product_name" shape="circle" style=filled color="peachpuff"]
- product_brand_name[label="brand_name" shape="circle" style=filled color="peachpuff"]
- product_dimension[label="Dimension" style=filled; shape="ellipse" color="turquoise"]
-
- productDim -> salesDB;
- productDim -> productStorage;
- product_product_id -> productStorage;
- product_product_name -> productStorage;
- product_brand_name -> productStorage;
- productDim -> product_dimension;
-
- productDim -> salesFact [style=invis];
-
- timeDim[label="Table(time_dim)" style=filled; color="khaki"]
- timeStorage[label="Storage(text,text)"]
- time_time_id[label="time_id" shape="circle" style=filled color="peachpuff"]
- time_dayOfYear[label="day_of_year" shape="circle" style=filled color="peachpuff"]
- time_weekDay[label="week_day" shape="circle" style=filled color="peachpuff"]
- time_dimension[label="Dimension" style=filled; shape="ellipse" color="turquoise"]
-
- timeDim -> salesDB;
- timeDim -> timeStorage;
- time_time_id -> timeStorage;
- time_dayOfYear -> timeStorage;
- time_weekDay -> timeStorage;
- timeDim -> time_dimension;
-
- timeDim -> productDim [style=invis];
-
- customerDim[label="Table(customer_dim)" style=filled; color="khaki"]
- customerStorage[label="Storage(text,text)"]
- customer_customer_id[label="customer_id" shape="circle" style=filled color="peachpuff"]
- customer_name[label="name" shape="circle" style=filled color="peachpuff"]
- customer_address[label="address" shape="circle" style=filled color="peachpuff"]
- customer_dimension[label="Dimension" style=filled; shape="ellipse" color="turquoise"]
- address_pii[label="PII" style=filled; shape="ellipse" color="turquoise"]
-
- customerDim -> salesDB;
- customerDim -> customerStorage;
- customer_customer_id -> customerStorage;
- customer_name -> customerStorage;
- customer_address -> customerStorage;
- customerDim -> customer_dimension;
- customer_address -> address_pii;
-
- customerDim -> timeDim [style=invis];
-
- //{rank=min; salesDB};
- {rank=min; salesDB};
-};
-
-subgraph cluster1 {
- style=bold;
- label = "Reporting Database"; fontsize=18;
-
- reportingDB[label="DB(reporting)"]
- salesFactDaily[label="Table(sales_daily_mv)" style=filled; color="khaki"]
- salesDailyStorage[label="Storage(orc,orc)"]
- salesD_time_id[label="time_id" shape="circle" style=filled color="peachpuff"]
- salesD_product_id[label="product_id" shape="circle" style=filled color="peachpuff"]
- salesD_customer_id[label="customer_id" shape="circle" style=filled color="peachpuff"]
- salesD_sales[label="sales" shape="circle" style=filled color="peachpuff"]
- salesD_sales_metric[label="Metric" style=filled; shape="ellipse" color="turquoise"]
-
- salesFactDaily -> reportingDB;
- salesFactDaily -> salesDailyStorage;
- salesD_time_id -> salesDailyStorage;
- salesD_product_id -> salesDailyStorage;
- salesD_customer_id -> salesDailyStorage;
- salesD_sales -> salesDailyStorage;
- salesD_sales -> salesD_sales_metric;
-
- salesFactDaily -> reportingDB [style=invis];
-
- productDimView[label="View(product_dim_v)" style=filled; color="khaki"]
- productDim -> productDimView [style=dotted];
- productDimView_dim[label="Dimension" style=filled; shape="ellipse" color="turquoise"]
- productDimView_jdbc[label="JdbcAccess" style=filled; shape="ellipse" color="turquoise"]
- productDimView -> productDimView_dim;
- productDimView -> productDimView_jdbc;
- productDimView -> salesFactDaily [style=invis];
-
- customerDimView[label="View(customer_dim_v)" style=filled; color="khaki"]
- customerDim -> customerDimView [style=dotted];
- customerDimView_dim[label="Dimension" style=filled; shape="ellipse" color="turquoise"]
- customerDimView_jdbc[label="JdbcAccess" style=filled; shape="ellipse" color="turquoise"]
- customerDimView -> customerDimView_dim;
- customerDimView -> customerDimView_jdbc;
- customerDimView -> salesFactDaily [style=invis];
-
- salesMonthly[label="Table(sales_monthly_mv)" style=filled; color="khaki"]
- salesMonthlyStorage[label="Storage(orc,orc)"]
- salesM_time_id[label="time_id" shape="circle" style=filled color="peachpuff"]
- salesM_product_id[label="product_id" shape="circle" style=filled color="peachpuff"]
- salesM_customer_id[label="customer_id" shape="circle" style=filled color="peachpuff"]
- salesM_sales[label="sales" shape="circle" style=filled color="peachpuff"]
- salesM_sales_metric[label="Metric" style=filled; shape="ellipse" color="turquoise"]
-
- salesMonthly -> reportingDB;
- salesMonthly -> salesMonthlyStorage;
- salesM_time_id -> salesMonthlyStorage;
- salesM_product_id -> salesMonthlyStorage;
- salesM_customer_id -> salesMonthlyStorage;
- salesM_sales -> salesMonthlyStorage;
- salesM_sales -> salesM_sales_metric;
-
- salesMonthly -> customerDimView [style=invis];
-
- {rank=min; reportingDB};
-
-};
-
- loadSalesDaily[label="LoadProcess(loadSalesDaily)" style=filled; color="seagreen"; shape="octagon"]
- loadSalesDaily_etl[label="ETL" style=filled; shape="ellipse" color="turquoise"]
- salesFact -> loadSalesDaily [style=dotted];
- timeDim -> loadSalesDaily [style=dotted];
- loadSalesDaily -> salesFactDaily [style=dotted];
- loadSalesDaily -> loadSalesDaily_etl;
-
- loadSalesMonthly[label="LoadProcess(loadSalesMonthly)" style=filled; color="seagreen"; shape="octagon"]
- loadSalesMonthly_etl[label="ETL" style=filled; shape="ellipse" color="turquoise"]
- salesFactDaily -> loadSalesMonthly [style=dotted];
- timeDim -> loadSalesMonthly [style=dotted];
- loadSalesMonthly -> salesMonthly [style=dotted];
- loadSalesMonthly -> loadSalesMonthly_etl;
-
-}
-#+end_src
-
-#+CAPTION: ETL and Reporting Scenario
-#+LABEL: fig:sampleInstanceGraph
-#+results:
-[[file:instanceGraph.png]]
-
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/doc/notes.MD
----------------------------------------------------------------------
diff --git a/typesystem/doc/notes.MD b/typesystem/doc/notes.MD
deleted file mode 100755
index 977d46c..0000000
--- a/typesystem/doc/notes.MD
+++ /dev/null
@@ -1,78 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-
-## Call with Harish on the initial typesystem naming conventions and intentions
-
-### Structs are like C structs - they don't have an identity
-- no independent lifecycle
-- like a bag of properties
-- like in hive, also
-
-### Classes are classes
-- like any OO class
-- have identity
-- can have inheritence
-- can contain structs
-- don't necessarily need to use a struct inside the class to define props
-- can also define props using AttributeDefinition using the basic data types
-- classes are immutable once created
-
-### On search interface:
-- can search for all instances of a class
-- classes could become tables in a relational system, for instance
- - also databases, columns, etc.
-
-### Traits is similar to scala - traits more like decorators (?)
-- traits get applied to instances - not classes
- - this satisfies the classification mechanism (ish)
-- can have a class instance have any number of traits
-- e.g. security clearance - any Person class could have it; so we add it as a mixin to the Person class
- - security clearance trait has a level attribute
- - traits are labels
- - each label can have its own attribute
-- reason for doing this is:
- - modeled security clearance trait
- - want to prescribe it to other things, too
- - can now search for anything that has security clearance level = 1, for instance
-
-### On Instances:
-- class, trait, struct all have bags of attributes
-- can get name of type associated with attribute
-- can get or set the attribute in that bag for each instance
-
-### On Classification:
-- create column as a class
-- create a trait to classify as "PHI"
-- would create the instance of the column with the PHI trait
-- apply traits to instances
-- CAN'T apply traits to class
-
-### Other useful information
-
-HierarchicalClassType - base type for ClassType and TraitType
-Instances created from Definitions
-
-Every instance is referenceable - i.e. something can point to it in the graph db
-MetadataService may not be used longterm - it is currently used for bootstrapping the repo & type system
-
-Id class - represents the Id of an instance
-
-When the web service receives an object graph, the ObjectGraphWalker is used to update things
- - DiscoverInstances is used to discover the instances in the object graph received by the web service
-
-MapIds assigns new ids to the discovered instances in the object graph
-
-Anything under the storage package is not part of the public interface
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/pom.xml
----------------------------------------------------------------------
diff --git a/typesystem/pom.xml b/typesystem/pom.xml
deleted file mode 100755
index 78cacb7..0000000
--- a/typesystem/pom.xml
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you 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.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.atlas</groupId>
- <artifactId>apache-atlas</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
- <artifactId>atlas-typesystem</artifactId>
- <description>Apache Atlas Typesystem Module</description>
- <name>Apache Atlas Typesystem</name>
- <packaging>jar</packaging>
-
- <dependencies>
- <dependency>
- <groupId>org.codehaus.jettison</groupId>
- <artifactId>jettison</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-compiler</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-reflect</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-actors</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scalap</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.json4s</groupId>
- <artifactId>json4s-native_${scala.binary.version}</artifactId>
- </dependency>
-
- <dependency>
- <groupId>com.github.nscala-time</groupId>
- <artifactId>nscala-time_${scala.binary.version}</artifactId>
- </dependency>
-
- <dependency>
- <groupId>com.typesafe</groupId>
- <artifactId>config</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- </dependency>
-
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- </dependency>
-
- <dependency>
- <groupId>it.unimi.dsi</groupId>
- <artifactId>fastutil</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.atlas</groupId>
- <artifactId>atlas-common</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.atlas</groupId>
- <artifactId>atlas-intg</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>scala-maven-plugin</artifactId>
- <version>3.2.0</version>
- <executions>
- <execution>
- <id>scala-compile-first</id>
- <phase>process-resources</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- <execution>
- <id>scala-test-compile-first</id>
- <phase>process-test-resources</phase>
- <goals>
- <goal>testCompile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <scalaVersion>${scala.version}</scalaVersion>
- <recompileMode>incremental</recompileMode>
- <useZincServer>true</useZincServer>
- <source>1.7</source>
- <target>1.7</target>
- <args>
- <arg>-unchecked</arg>
- <arg>-deprecation</arg>
- <arg>-feature</arg>
- </args>
- <jvmArgs>
- <jvmArg>-Xmx512m</jvmArg>
- </jvmArgs>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- <executions>
- <execution>
- <goals>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/main/java/org/apache/atlas/classification/InterfaceAudience.java
----------------------------------------------------------------------
diff --git a/typesystem/src/main/java/org/apache/atlas/classification/InterfaceAudience.java b/typesystem/src/main/java/org/apache/atlas/classification/InterfaceAudience.java
deleted file mode 100755
index ae162ac..0000000
--- a/typesystem/src/main/java/org/apache/atlas/classification/InterfaceAudience.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.atlas.classification;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-
-/**
- * Annotation to mark methods for consumption.
- */
-@InterfaceAudience.Public
-public class InterfaceAudience {
- private InterfaceAudience() {
- }
-
- @Documented
- @Retention(RetentionPolicy.RUNTIME)
- public @interface Private {
- }
-
- @Documented
- @Retention(RetentionPolicy.RUNTIME)
- public @interface LimitedPrivate {
- String[] value();
- }
-
- @Documented
- @Retention(RetentionPolicy.RUNTIME)
- public @interface Public {
- }
-}
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeExistsException.java
----------------------------------------------------------------------
diff --git a/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeExistsException.java b/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeExistsException.java
deleted file mode 100644
index 8a28e38..0000000
--- a/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeExistsException.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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
- * <p/>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p/>
- * 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.
- */
-
-package org.apache.atlas.typesystem.exception;
-
-import org.apache.atlas.AtlasException;
-
-public class TypeExistsException extends AtlasException {
- public TypeExistsException(String message) {
- super(message);
- }
-}
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeNotFoundException.java
----------------------------------------------------------------------
diff --git a/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeNotFoundException.java b/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeNotFoundException.java
deleted file mode 100644
index 3654a4b..0000000
--- a/typesystem/src/main/java/org/apache/atlas/typesystem/exception/TypeNotFoundException.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.atlas.typesystem.exception;
-
-import org.apache.atlas.AtlasException;
-
-/**
- * A simple wrapper for 404.
- */
-public class TypeNotFoundException extends AtlasException {
- public TypeNotFoundException() {
- }
-
- public TypeNotFoundException(String message) {
- super(message);
- }
-
- public TypeNotFoundException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public TypeNotFoundException(Throwable cause) {
- super(cause);
- }
-
- public TypeNotFoundException(String message, Throwable cause, boolean enableSuppression,
- boolean writableStackTrace) {
- super(message, cause, enableSuppression, writableStackTrace);
- }
-}
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/main/java/org/apache/atlas/typesystem/types/package-info.java
----------------------------------------------------------------------
diff --git a/typesystem/src/main/java/org/apache/atlas/typesystem/types/package-info.java b/typesystem/src/main/java/org/apache/atlas/typesystem/types/package-info.java
deleted file mode 100755
index fbd4216..0000000
--- a/typesystem/src/main/java/org/apache/atlas/typesystem/types/package-info.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-/**
- * <h2>Types:</h2>
- * <img src="doc-files/dataTypes.png" />
- * <ul>
- * <li> <b>IDataType:</b> Represents a <i>DataType</i> in the TypeSystem. All Instances and
- * Attributes are associated
- * with a DataType. They represent the <b>Set</b> of values that Instances/Attributes of this
- * type can have.
- * Currently the namespace of DataTypes is flat. DataTypes can be asked to <i>convert</i>
- * arbitrary java Objects
- * to instances of this type, and they can be asked for a String representation of an
- * instance.</li>
- * <li><b>Type Categories:</b></li> DataTypes are grouped into Categories. A Category implies
- * certain semantics about
- * the Types belonging to the Category. We have PRIMITIVE, ENUM, ARRAY, MAP, STRUCT, TRAIT,
- * and CLASS categories.
- * <li><b>Primitive Types:</b> There are corresponding DataTypes for the java primitives:
- * Boolean, Byte, Short,
- * Int, Long, Float, Double. We also support BigInteger, BigDecimal, String, and Date</li>
- * <li><b>Collection Types:</b>ArrayType and MapType are parameterized DataTypes taking one
- * and two parameters
- * respectively.</li>
- * <li><b>Enum Types:</b> Used to define DataTypes with all valid values listed in the Type
- * definition. For e.g.
- * <pre>
- * {@code
- * ts.defineEnumType("HiveObjectType",
-new EnumValue("GLOBAL", 1),
-new EnumValue("DATABASE", 2),
-new EnumValue("TABLE", 3),
-new EnumValue("PARTITION", 4),
-new EnumValue("COLUMN", 5))
- * }
- * </pre> Each <i>EnumValue</i> has name and an ordinal. Either one can be used as a value for an
- * Attribute of this Type.
- * </li>
- * <li><b>Constructable Types:</b> Are complex Types that are composed of Attributes. We
- * support Structs, Classes
- * and Traits constructable types. A ConstructableType is parameterized by the Type of its
- * <i>Instance</i> java
- * class(these are implementations of the ITypedInstance interface). A value of the
- * IConstructableType will
- * implement this parameterized Type. IConstructableTypes can be asked to create an 'empty'
- * instance of their Type.
- * IConstructableTypes are associated with FieldMappings that encapsulate the mapping from/to
- * the ITypedInstance
- * java object.
- * </li>
- * <li><b>Attribute Info:</b>Represents an Attribute of a complex datatype. Attributes are
- * defined by a name, a
- * dataType, its Multiplicity and whether it is a composite relation. <i>Multiplicity</i> is
- * a constraint on the
- * number of instances that an instance can have. For non collection types and Maps:
- * Multiplicity is OPTIONAL or
- * REQUIRED.
- * For Arrays the Multiplicity is specified by a lower-bound, upper-bound and a uniqueness
- * constraint.
- * </li>
- * <li><b>Struct Types:</b>Are IConstructableTypes whose instances are IStructs. Conceptually
- * these are like 'C'
- * structs: they represent a collection of Attributes. For e.g.
- * <pre>
- * {@code
- * ts.defineStructType(STRUCT_TYPE_1,
-true,
-createRequiredAttrDef("a", DataTypes.INT_TYPE),
-createOptionalAttrDef("b", DataTypes.BOOLEAN_TYPE),
-createOptionalAttrDef("c", DataTypes.BYTE_TYPE),
-createOptionalAttrDef("d", DataTypes.SHORT_TYPE),
-createOptionalAttrDef("e", DataTypes.INT_TYPE),
-createOptionalAttrDef("f", DataTypes.INT_TYPE),
-createOptionalAttrDef("g", DataTypes.LONG_TYPE),
-createOptionalAttrDef("h", DataTypes.FLOAT_TYPE),
-createOptionalAttrDef("i", DataTypes.DOUBLE_TYPE),
-createOptionalAttrDef("j", DataTypes.BIGINTEGER_TYPE),
-createOptionalAttrDef("k", DataTypes.BIGDECIMAL_TYPE),
-createOptionalAttrDef("l", DataTypes.DATE_TYPE),
-createOptionalAttrDef("m", ts.defineArrayType(DataTypes.INT_TYPE)),
-createOptionalAttrDef("n", ts.defineArrayType(DataTypes.BIGDECIMAL_TYPE)),
-createOptionalAttrDef("o", ts.defineMapType(DataTypes.STRING_TYPE, DataTypes.DOUBLE_TYPE))
- * }
- * </pre>
- * </li>
- * <li><b>Hierarchical Types:</b>Are DataTypes that can have a SuperType. Classes and Traits
- * are the supported
- * Hierarchical Types. </li>
- * <li><b>Class Types:</b></li>
- * <li><b>Trait Types:</b></li>
- * </ul>
- *
- *
- * <h2>Instances:</h2>
- * <img src="doc-files/instance.png" />
- * <ul>
- * <li> <b>IStruct:</b></li>
- * <li><b>IReferenceableInstance:</b></li>
- * <li><b>ITypedStruct:</b></li>
- * <li><b>ITypedReferenceableInstance:</b></li>
- * </ul>
- *
- * <h3>Serialization of Types:</h3>
- *
- * <h3>Serialization of Instances:</h3>
- *
- * <h3>Searching on Classes and Traits:</h3>
- */
-package org.apache.atlas.typesystem.types;
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/main/resources/atlas-log4j.xml
----------------------------------------------------------------------
diff --git a/typesystem/src/main/resources/atlas-log4j.xml b/typesystem/src/main/resources/atlas-log4j.xml
deleted file mode 100755
index 510e2cf..0000000
--- a/typesystem/src/main/resources/atlas-log4j.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you 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.
- -->
-
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <param name="Target" value="System.out"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"/>
- </layout>
- </appender>
-
- <appender name="AUDIT" class="org.apache.log4j.RollingFileAppender">
- <param name="File" value="${atlas.log.dir}/audit.log"/>
- <param name="Append" value="true"/>
- <param name="Threshold" value="debug"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %x %m%n"/>
- <param name="maxFileSize" value="100MB" />
- <param name="maxBackupIndex" value="20" />
- </layout>
- </appender>
-
- <logger name="org.apache.atlas" additivity="false">
- <level value="debug"/>
- <appender-ref ref="console"/>
- </logger>
-
- <!-- uncomment this block to generate performance traces
- <appender name="perf_appender" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="file" value="${atlas.log.dir}/atlas_perf.log" />
- <param name="datePattern" value="'.'yyyy-MM-dd" />
- <param name="append" value="true" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d|%t|%m%n" />
- </layout>
- </appender>
-
- <logger name="org.apache.atlas.perf" additivity="false">
- <level value="debug" />
- <appender-ref ref="perf_appender" />
- </logger>
- -->
-
- <appender name="FAILED" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="${atlas.log.dir}/failed.log"/>
- <param name="Append" value="true"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %m"/>
- </layout>
- </appender>
-
- <logger name="FAILED" additivity="false">
- <level value="info"/>
- <appender-ref ref="AUDIT"/>
- </logger>
-
- <logger name="com.thinkaurelius.titan" additivity="false">
- <level value="warn"/>
- <appender-ref ref="console"/>
- </logger>
-
- <logger name="org.springframework" additivity="false">
- <level value="warn"/>
- <appender-ref ref="console"/>
- </logger>
-
- <logger name="org.eclipse" additivity="false">
- <level value="warn"/>
- <appender-ref ref="console"/>
- </logger>
-
- <logger name="com.sun.jersey" additivity="false">
- <level value="warn"/>
- <appender-ref ref="console"/>
- </logger>
-
- <logger name="AUDIT" additivity="false">
- <level value="info"/>
- <appender-ref ref="console"/>
- </logger>
-
- <root>
- <priority value="warn"/>
- <appender-ref ref="console"/>
- </root>
-
-</log4j:configuration>
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/test/resources/atlas-application.properties
----------------------------------------------------------------------
diff --git a/typesystem/src/test/resources/atlas-application.properties b/typesystem/src/test/resources/atlas-application.properties
deleted file mode 100644
index b937c33..0000000
--- a/typesystem/src/test/resources/atlas-application.properties
+++ /dev/null
@@ -1,145 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-
-#system property
-atlas.data=${sys:user.dir}/target/data
-
-
-
-#re-use existing property
-atlas.graph.data=${atlas.data}/graph
-
-#plain property
-atlas.service=atlas
-
-#invalid system property
-atlas.db=${atlasdb}
-
-atlas.TypeSystem.impl=org.apache.atlas.typesystem.types.TypeSystem
-
-
-
-######### Atlas Server Configs #########
-atlas.rest.address=http://localhost:31000
-
-######### Graph Database Configs #########
-
-
-# Graph database implementation. Value inserted by maven.
-atlas.graphdb.backend=${graphdb.backend.impl}
-
-# Graph Storage
-atlas.graph.storage.backend=${graph.storage.backend}
-
-# Entity repository implementation
-atlas.EntityAuditRepository.impl=${entity.repository.impl}
-
-# Graph Search Index Backend
-atlas.graph.index.search.backend=${graph.index.backend}
-
-#Berkeley storage directory
-atlas.graph.storage.directory=${sys:atlas.data}/berkley
-
-#hbase
-#For standalone mode , specify localhost
-#for distributed mode, specify zookeeper quorum here - For more information refer http://s3.thinkaurelius.com/docs/titan/current/hbase.html#_remote_server_mode_2
-
-atlas.graph.storage.hostname=${graph.storage.hostname}
-atlas.graph.storage.hbase.regions-per-server=1
-atlas.graph.storage.lock.wait-time=10000
-
-#ElasticSearch
-atlas.graph.index.search.directory=${sys:atlas.data}/es
-atlas.graph.index.search.elasticsearch.client-only=false
-atlas.graph.index.search.elasticsearch.local-mode=true
-atlas.graph.index.search.elasticsearch.create.sleep=2000
-
-# Solr cloud mode properties
-atlas.graph.index.search.solr.mode=cloud
-atlas.graph.index.search.solr.zookeeper-url=${solr.zk.address}
-atlas.graph.index.search.max-result-set-size=150
-
-######### Hive Lineage Configs #########
-## Schema
-atlas.lineage.schema.query.hive_table=hive_table where __guid='%s'\, columns
-atlas.lineage.schema.query.hive_table_v1=hive_table_v1 where __guid='%s'\, columns
-
-######### Notification Configs #########
-atlas.notification.embedded=true
-
-atlas.kafka.zookeeper.connect=localhost:19026
-atlas.kafka.bootstrap.servers=localhost:19027
-atlas.kafka.data=${sys:atlas.data}/kafka
-atlas.kafka.zookeeper.session.timeout.ms=4000
-atlas.kafka.zookeeper.sync.time.ms=20
-atlas.kafka.consumer.timeout.ms=4000
-atlas.kafka.auto.commit.interval.ms=100
-atlas.kafka.hook.group.id=atlas
-atlas.kafka.entities.group.id=atlas_entities
-#atlas.kafka.auto.commit.enable=false
-
-atlas.kafka.enable.auto.commit=false
-atlas.kafka.auto.offset.reset=earliest
-atlas.kafka.session.timeout.ms=30000
-
-
-
-######### Entity Audit Configs #########
-atlas.audit.hbase.tablename=ATLAS_ENTITY_AUDIT_EVENTS
-atlas.audit.zookeeper.session.timeout.ms=1000
-atlas.audit.hbase.zookeeper.quorum=localhost
-atlas.audit.hbase.zookeeper.property.clientPort=19026
-
-######### Security Properties #########
-
-# SSL config
-atlas.enableTLS=false
-atlas.server.https.port=31443
-
-######### Security Properties #########
-
-hbase.security.authentication=simple
-
-atlas.hook.falcon.synchronous=true
-
-######### JAAS Configuration ########
-
-atlas.jaas.KafkaClient.loginModuleName = com.sun.security.auth.module.Krb5LoginModule
-atlas.jaas.KafkaClient.loginModuleControlFlag = required
-atlas.jaas.KafkaClient.option.useKeyTab = true
-atlas.jaas.KafkaClient.option.storeKey = true
-atlas.jaas.KafkaClient.option.serviceName = kafka
-atlas.jaas.KafkaClient.option.keyTab = /etc/security/keytabs/atlas.service.keytab
-atlas.jaas.KafkaClient.option.principal = atlas/_HOST@EXAMPLE.COM
-
-######### High Availability Configuration ########
-atlas.server.ha.enabled=false
-#atlas.server.ids=id1
-#atlas.server.address.id1=localhost:21000
-
-#########POLICY FILE PATH #########
-# atlas.auth.policy.file=policy-store.txt
-
-atlas.authentication.method.file=true
-atlas.authentication.method.ldap.type=none
-# atlas.authentication.method.file.filename=users-credentials.properties
-atlas.authentication.method.kerberos=false
-
-######### Gremlin Search Configuration #########
-# Set to false to disable gremlin search.
-atlas.search.gremlin.enable=true
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/test/resources/policy-store.txt
----------------------------------------------------------------------
diff --git a/typesystem/src/test/resources/policy-store.txt b/typesystem/src/test/resources/policy-store.txt
deleted file mode 100644
index 048affe..0000000
--- a/typesystem/src/test/resources/policy-store.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-##Policy Format
-##r-READ, w-WRITE, u-UPDATE, d-DELETE
-##Policy_Name;;User_Name1:Operations_Allowed,User_Name2:Operations_Allowed;;Group_Name1:Operations_Allowed,Group_Name2:Operations_Allowed;;Resource_Type1:Resource_Name,Resource_Type2:Resource_Name
-##
-adminPolicy;;admin:rwud;;ROLE_ADMIN:rwud;;type:*,entity:*,operation:*
-dataScientistPolicy;;;;DATA_SCIENTIST:r;;type:*,entity:*
-dataStewardPolicy;;;;DATA_STEWARD:rwu;;type:*,entity:*
-hadoopPolicy;;;;hadoop:rwud;;type:*,entity:*,operation:*
-rangerTagSyncPolicy;;;;RANGER_TAG_SYNC:r;;type:*,entity:*
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/test/resources/sampleInstance.json
----------------------------------------------------------------------
diff --git a/typesystem/src/test/resources/sampleInstance.json b/typesystem/src/test/resources/sampleInstance.json
deleted file mode 100755
index efcc48d..0000000
--- a/typesystem/src/test/resources/sampleInstance.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "$typeName$": "Department",
- "$id$": {
- "id": -1420494283853484000,
- "$typeName$": "Department",
- "version": 0
- },
- "employees": [
- {
- "$typeName$": "Person",
- "$id$": {
- "id": -1420494283853508000,
- "$typeName$": "Person",
- "version": 0
- },
- "manager": {
- "id": -1420494283853511000,
- "$typeName$": "Manager",
- "version": 0
- },
- "department": {
- "id": -1420494283853484000,
- "$typeName$": "Department",
- "version": 0
- },
- "name": "John"
- },
- {
- "$typeName$": "Manager",
- "$id$": {
- "id": -1420494283853511000,
- "$typeName$": "Manager",
- "version": 0
- },
- "manager": null,
- "subordinates": [
- {
- "$typeName$": "Person",
- "$id$": {
- "id": -1420494283853508000,
- "$typeName$": "Person",
- "version": 0
- },
- "manager": {
- "id": -1420494283853511000,
- "$typeName$": "Manager",
- "version": 0
- },
- "department": {
- "id": -1420494283853484000,
- "$typeName$": "Department",
- "version": 0
- },
- "name": "John"
- }
- ],
- "department": {
- "id": -1420494283853484000,
- "$typeName$": "Department",
- "version": 0
- },
- "name": "Jane",
- "$traits$": {
- "SecurityClearance": {
- "$typeName$": "SecurityClearance",
- "level": 1
- }
- }
- }
- ],
- "name": "hr"
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/atlas/blob/0a00dcb1/typesystem/src/test/resources/sampleTypes.json
----------------------------------------------------------------------
diff --git a/typesystem/src/test/resources/sampleTypes.json b/typesystem/src/test/resources/sampleTypes.json
deleted file mode 100755
index d0ac311..0000000
--- a/typesystem/src/test/resources/sampleTypes.json
+++ /dev/null
@@ -1,633 +0,0 @@
-{
- "enumTypes": [
- {
- "name": "HiveObjectType",
- "enumValues": [
- {
- "value": "GLOBAL",
- "ordinal": 1
- },
- {
- "value": "DATABASE",
- "ordinal": 2
- },
- {
- "value": "TABLE",
- "ordinal": 3
- },
- {
- "value": "PARTITION",
- "ordinal": 4
- },
- {
- "value": "COLUMN",
- "ordinal": 5
- }
- ]
- },
- {
- "name": "LockLevel",
- "enumValues": [
- {
- "value": "DB",
- "ordinal": 1
- },
- {
- "value": "TABLE",
- "ordinal": 2
- },
- {
- "value": "PARTITION",
- "ordinal": 3
- }
- ]
- },
- {
- "name": "TxnState",
- "enumValues": [
- {
- "value": "COMMITTED",
- "ordinal": 1
- },
- {
- "value": "ABORTED",
- "ordinal": 2
- },
- {
- "value": "OPEN",
- "ordinal": 3
- }
- ]
- },
- {
- "name": "PrincipalType",
- "enumValues": [
- {
- "value": "USER",
- "ordinal": 1
- },
- {
- "value": "ROLE",
- "ordinal": 2
- },
- {
- "value": "GROUP",
- "ordinal": 3
- }
- ]
- }
- ],
- "structTypes": [
- {
- "typeName": "t2",
- "attributeDefinitions": [
- {
- "name": "a",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "s",
- "dataTypeName": "t2",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "typeName": "t1",
- "attributeDefinitions": [
- {
- "name": "a",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "b",
- "dataTypeName": "boolean",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "c",
- "dataTypeName": "byte",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "d",
- "dataTypeName": "short",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "e",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "f",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "g",
- "dataTypeName": "long",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "h",
- "dataTypeName": "float",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "i",
- "dataTypeName": "double",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "j",
- "dataTypeName": "biginteger",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "k",
- "dataTypeName": "bigdecimal",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "l",
- "dataTypeName": "date",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "m",
- "dataTypeName": "array<int>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "n",
- "dataTypeName": "array<bigdecimal>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "o",
- "dataTypeName": "map<string,double>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "typeName": "ts1",
- "attributeDefinitions": [
- {
- "name": "a",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "b",
- "dataTypeName": "boolean",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "c",
- "dataTypeName": "byte",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "d",
- "dataTypeName": "short",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "e",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "f",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "g",
- "dataTypeName": "long",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "h",
- "dataTypeName": "float",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "i",
- "dataTypeName": "double",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "j",
- "dataTypeName": "biginteger",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "k",
- "dataTypeName": "bigdecimal",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "l",
- "dataTypeName": "date",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "m",
- "dataTypeName": "array<int>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "n",
- "dataTypeName": "array<bigdecimal>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "o",
- "dataTypeName": "map<string,double>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- }
- ],
- "traitTypes": [
- {
- "superTypes": [
- "B",
- "C"
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.TraitType",
- "typeName": "D",
- "attributeDefinitions": [
- {
- "name": "d",
- "dataTypeName": "short",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "superTypes": [
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.TraitType",
- "typeName": "A",
- "attributeDefinitions": [
- {
- "name": "a",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "b",
- "dataTypeName": "boolean",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "c",
- "dataTypeName": "byte",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "d",
- "dataTypeName": "short",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "superTypes": [
- "A"
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.TraitType",
- "typeName": "B",
- "attributeDefinitions": [
- {
- "name": "b",
- "dataTypeName": "boolean",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "superTypes": [
- "A"
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.TraitType",
- "typeName": "C",
- "attributeDefinitions": [
- {
- "name": "c",
- "dataTypeName": "byte",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "superTypes": [
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.TraitType",
- "typeName": "SecurityClearance",
- "attributeDefinitions": [
- {
- "name": "level",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- }
- ],
- "classTypes": [
- {
- "superTypes": [
- "Person"
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.ClassType",
- "typeName": "Manager",
- "attributeDefinitions": [
- {
- "name": "subordinates",
- "dataTypeName": "array<Person>",
- "multiplicity": "collection",
- "isComposite": false,
- "reverseAttributeName": "manager"
- }
- ]
- },
- {
- "superTypes": [
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.ClassType",
- "typeName": "Department",
- "attributeDefinitions": [
- {
- "name": "name",
- "dataTypeName": "string",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "employees",
- "dataTypeName": "array<Person>",
- "multiplicity": "collection",
- "isComposite": true,
- "reverseAttributeName": "department"
- }
- ]
- },
- {
- "superTypes": [
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.ClassType",
- "typeName": "t4",
- "attributeDefinitions": [
- {
- "name": "a",
- "dataTypeName": "int",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "b",
- "dataTypeName": "boolean",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "c",
- "dataTypeName": "byte",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "d",
- "dataTypeName": "short",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "enum1",
- "dataTypeName": "HiveObjectType",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "e",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "f",
- "dataTypeName": "int",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "g",
- "dataTypeName": "long",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "enum2",
- "dataTypeName": "PrincipalType",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "h",
- "dataTypeName": "float",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "i",
- "dataTypeName": "double",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "j",
- "dataTypeName": "biginteger",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "k",
- "dataTypeName": "bigdecimal",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "enum3",
- "dataTypeName": "TxnState",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "l",
- "dataTypeName": "date",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "m",
- "dataTypeName": "array<int>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "n",
- "dataTypeName": "array<bigdecimal>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "o",
- "dataTypeName": "map<string,double>",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "enum4",
- "dataTypeName": "LockLevel",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": null
- }
- ]
- },
- {
- "superTypes": [
- ],
- "hierarchicalMetaTypeName": "org.apache.atlas.types.ClassType",
- "typeName": "Person",
- "attributeDefinitions": [
- {
- "name": "name",
- "dataTypeName": "string",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": null
- },
- {
- "name": "department",
- "dataTypeName": "Department",
- "multiplicity": "required",
- "isComposite": false,
- "reverseAttributeName": "employees"
- },
- {
- "name": "manager",
- "dataTypeName": "Manager",
- "multiplicity": "optional",
- "isComposite": false,
- "reverseAttributeName": "subordinates"
- }
- ]
- }
- ]
-}