You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by ra...@apache.org on 2017/06/10 05:30:32 UTC
[2/5] lens git commit: LENS-1435: Cube xml files are missing in
lens-example
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/60e1277f
Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/60e1277f
Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/60e1277f
Branch: refs/heads/current-release-line
Commit: 60e1277f7b7d5cb3ff5083f3fdf34dfae44dd0cb
Parents: bd4b552
Author: Sushil Mohanty <su...@gmail.com>
Authored: Tue Jun 6 17:45:22 2017 +0530
Committer: rajub <ra...@lazada.com>
Committed: Sat Jun 10 13:29:20 2017 +0800
----------------------------------------------------------------------
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/60e1277f/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/60e1277f/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/60e1277f/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>