Repository: incubator-atlas Updated Branches: refs/heads/master b688f80e9 -> 660033555
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/66003355/src/main/examples/hive-data-model.json ---------------------------------------------------------------------- diff --git a/src/main/examples/hive-data-model.json b/src/main/examples/hive-data-model.json deleted file mode 100755 index d05ecb3..0000000 --- a/src/main/examples/hive-data-model.json +++ /dev/null @@ -1,922 +0,0 @@ -{ - "enumTypes":[ - { - "name":"hive_object_type", - "enumValues":[ - { - "value":"GLOBAL", - "ordinal":1 - }, - { - "value":"DATABASE", - "ordinal":2 - }, - { - "value":"TABLE", - "ordinal":3 - }, - { - "value":"PARTITION", - "ordinal":4 - }, - { - "value":"COLUMN", - "ordinal":5 - } - ] - }, - { - "name":"hive_resource_type", - "enumValues":[ - { - "value":"JAR", - "ordinal":1 - }, - { - "value":"FILE", - "ordinal":2 - }, - { - "value":"ARCHIVE", - "ordinal":3 - } - ] - }, - { - "name":"hive_principal_type", - "enumValues":[ - { - "value":"USER", - "ordinal":1 - }, - { - "value":"ROLE", - "ordinal":2 - }, - { - "value":"GROUP", - "ordinal":3 - } - ] - }, - { - "name":"hive_function_type", - "enumValues":[ - { - "value":"JAVA", - "ordinal":1 - } - ] - } - ], - "structTypes":[ - { - "typeName":"hive_order", - "attributeDefinitions":[ - { - "name":"col", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"order", - "dataTypeName":"int", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "typeName":"hive_resourceuri", - "attributeDefinitions":[ - { - "name":"resourceType", - "dataTypeName":"hive_resource_type", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"uri", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "typeName":"hive_serde", - "attributeDefinitions":[ - { - "name":"name", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"serializationLib", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - } - ], - "traitTypes":[ - - ], - "classTypes":[ - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_process", - "attributeDefinitions":[ - { - "name":"processName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"startTime", - "dataTypeName":"int", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"endTime", - "dataTypeName":"int", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"userName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"sourceTableNames", - "dataTypeName":"array<hive_table>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"targetTableNames", - "dataTypeName":"array<hive_table>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"queryText", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"queryPlan", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"queryId", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"queryGraph", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_function", - "attributeDefinitions":[ - { - "name":"functionName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"dbName", - "dataTypeName":"hive_db", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"className", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"ownerName", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"ownerType", - "dataTypeName":"hive_principal_type", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"createTime", - "dataTypeName":"int", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"functionType", - "dataTypeName":"hive_function_type", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"resourceUris", - "dataTypeName":"hive_resourceuri", - "multiplicity":"collection", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_type", - "attributeDefinitions":[ - { - "name":"name", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"type1", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"type2", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"fields", - "dataTypeName":"array<hive_column>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_table", - "attributeDefinitions":[ - { - "name":"tableName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"dbName", - "dataTypeName":"hive_db", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"owner", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"createTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"lastAccessTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"retention", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"sd", - "dataTypeName":"hive_storagedesc", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"partitionKeys", - "dataTypeName":"array<hive_column>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"viewOriginalText", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"viewExpandedText", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"tableType", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"temporary", - "dataTypeName":"boolean", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_partition", - "attributeDefinitions":[ - { - "name":"values", - "dataTypeName":"string", - "multiplicity":"collection", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"dbName", - "dataTypeName":"hive_db", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"tableName", - "dataTypeName":"hive_table", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"createTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"lastAccessTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"sd", - "dataTypeName":"hive_storagedesc", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_storagedesc", - "attributeDefinitions":[ - { - "name":"cols", - "dataTypeName":"array<hive_column>", - "multiplicity":"collection", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"location", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"inputFormat", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"outputFormat", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"compressed", - "dataTypeName":"boolean", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"numBuckets", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"serdeInfo", - "dataTypeName":"hive_serde", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"bucketCols", - "dataTypeName":"array<string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"sortCols", - "dataTypeName":"array<hive_order>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"storedAsSubDirectories", - "dataTypeName":"boolean", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_index", - "attributeDefinitions":[ - { - "name":"indexName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"indexHandlerClass", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"dbName", - "dataTypeName":"hive_db", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"createTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"lastAccessTime", - "dataTypeName":"int", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"origTableName", - "dataTypeName":"hive_table", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"indexTableName", - "dataTypeName":"hive_table", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"sd", - "dataTypeName":"hive_storagedesc", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"deferredRebuild", - "dataTypeName":"boolean", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_role", - "attributeDefinitions":[ - { - "name":"roleName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"createTime", - "dataTypeName":"int", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"ownerName", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_db", - "attributeDefinitions":[ - { - "name":"name", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"description", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"locationUri", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"parameters", - "dataTypeName":"map<string,string>", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"ownerName", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"ownerType", - "dataTypeName":"hive_principal_type", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - }, - { - "superTypes":[ - - ], - "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType", - "typeName":"hive_column", - "attributeDefinitions":[ - { - "name":"name", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"type", - "dataTypeName":"string", - "multiplicity":"required", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - }, - { - "name":"comment", - "dataTypeName":"string", - "multiplicity":"optional", - "isComposite":false, - "isUnique":false, - "isIndexable":true, - "reverseAttributeName":null - } - ] - } - ] -}
