Repository: lens Updated Branches: refs/heads/master 89b17e640 -> aaf455111
LENS-1435: Cube xml files are missing in lens-example Project: http://git-wip-us.apache.org/repos/asf/lens/repo Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/aaf45511 Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/aaf45511 Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/aaf45511 Branch: refs/heads/master Commit: aaf455111953fd1d49218a8bdf4bcc9600b01899 Parents: 89b17e6 Author: Sushil Mohanty <sushil.k.moha...@gmail.com> Authored: Tue Jun 6 17:45:22 2017 +0530 Committer: Rajat Khandelwal <rajatgupt...@gmail.com> Committed: Tue Jun 6 17:45:22 2017 +0530 ---------------------------------------------------------------------- lens-examples/src/main/resources/cube11.xml | 53 ++++++++++++++++++++++++ lens-examples/src/main/resources/cube22.xml | 53 ++++++++++++++++++++++++ lens-examples/src/main/resources/cube33.xml | 53 ++++++++++++++++++++++++ 3 files changed, 159 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lens/blob/aaf45511/lens-examples/src/main/resources/cube11.xml ---------------------------------------------------------------------- diff --git a/lens-examples/src/main/resources/cube11.xml b/lens-examples/src/main/resources/cube11.xml new file mode 100644 index 0000000..2283939 --- /dev/null +++ b/lens-examples/src/main/resources/cube11.xml @@ -0,0 +1,53 @@ +<?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. + +--> +<x_base_cube name="cube11" xmlns="uri:lens:cube:0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> + <properties> + <property name="cube.sample_cube.timed.dimensions.list" value="dt"/> + </properties> + <measures> + <measure name="measure1" _type="BIGINT"/> + </measures> + <dim_attributes> + <dim_attribute name="dim1" _type="INT"/> + </dim_attributes> + <expressions> + <expression name="expr_msr5" _type="DOUBLE"> + <expr_spec expr = "measure3 + measure4" start_time='2013-12-12T00:00:00' /> + <expr_spec expr = "measure3 + measure4 + 0.01" end_time='2013-12-12T00:00:00'/> + </expression> + </expressions> + <join_chains> + <join_chain name="sample_dim_chain"> + <paths> + <path> + <edges> + <edge> + <from table="sample_cube" column="dim3" /> + <to table="sample_dim" column="id" /> + </edge> + </edges> + </path> + </paths> + </join_chain> + </join_chains> +</x_base_cube> http://git-wip-us.apache.org/repos/asf/lens/blob/aaf45511/lens-examples/src/main/resources/cube22.xml ---------------------------------------------------------------------- diff --git a/lens-examples/src/main/resources/cube22.xml b/lens-examples/src/main/resources/cube22.xml new file mode 100644 index 0000000..59b1828 --- /dev/null +++ b/lens-examples/src/main/resources/cube22.xml @@ -0,0 +1,53 @@ +<?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. + +--> +<x_base_cube name="cube22" xmlns="uri:lens:cube:0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> + <properties> + <property name="cube.sample_cube.timed.dimensions.list" value="dt"/> + </properties> + <measures> + <measure name="measure1" _type="BIGINT"/> + </measures> + <dim_attributes> + <dim_attribute name="dim1" _type="INT"/> + </dim_attributes> + <expressions> + <expression name="expr_msr5" _type="DOUBLE"> + <expr_spec expr = "measure3 + measure4" start_time='2013-12-12T00:00:00' /> + <expr_spec expr = "measure3 + measure4 + 0.01" end_time='2013-12-12T00:00:00'/> + </expression> + </expressions> + <join_chains> + <join_chain name="sample_dim_chain"> + <paths> + <path> + <edges> + <edge> + <from table="sample_cube" column="dim3" /> + <to table="sample_dim" column="id" /> + </edge> + </edges> + </path> + </paths> + </join_chain> + </join_chains> +</x_base_cube> http://git-wip-us.apache.org/repos/asf/lens/blob/aaf45511/lens-examples/src/main/resources/cube33.xml ---------------------------------------------------------------------- diff --git a/lens-examples/src/main/resources/cube33.xml b/lens-examples/src/main/resources/cube33.xml new file mode 100644 index 0000000..47b9b17 --- /dev/null +++ b/lens-examples/src/main/resources/cube33.xml @@ -0,0 +1,53 @@ +<?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. + +--> +<x_base_cube name="cube33" xmlns="uri:lens:cube:0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> + <properties> + <property name="cube.sample_cube.timed.dimensions.list" value="dt"/> + </properties> + <measures> + <measure name="measure1" _type="BIGINT"/> + </measures> + <dim_attributes> + <dim_attribute name="dim1" _type="INT"/> + </dim_attributes> + <expressions> + <expression name="expr_msr5" _type="DOUBLE"> + <expr_spec expr = "measure3 + measure4" start_time='2013-12-12T00:00:00' /> + <expr_spec expr = "measure3 + measure4 + 0.01" end_time='2013-12-12T00:00:00'/> + </expression> + </expressions> + <join_chains> + <join_chain name="sample_dim_chain"> + <paths> + <path> + <edges> + <edge> + <from table="sample_cube" column="dim3" /> + <to table="sample_dim" column="id" /> + </edge> + </edges> + </path> + </paths> + </join_chain> + </join_chains> +</x_base_cube>