KYLIN-1555 Add missing license headers
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/195f7510 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/195f7510 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/195f7510 Branch: refs/heads/1.5.x-HBase1.1.3 Commit: 195f751041b7770f1c45497fe7728d968ebc3ad5 Parents: a78cc94 Author: lidongsjtu <lid...@apache.org> Authored: Fri Apr 1 13:36:27 2016 +0800 Committer: lidongsjtu <lid...@apache.org> Committed: Fri Apr 1 13:36:27 2016 +0800 ---------------------------------------------------------------------- build/smoke-test/sql/sql1.sql | 18 ++++++++++++ .../kylin/measure/raw/RawAggregatorTest.java | 31 +++++++++++++++----- .../kylin/measure/raw/RawSerializerTest.java | 30 ++++++++++++++----- 3 files changed, 65 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/195f7510/build/smoke-test/sql/sql1.sql ---------------------------------------------------------------------- diff --git a/build/smoke-test/sql/sql1.sql b/build/smoke-test/sql/sql1.sql index ff13294..cb62b2b 100644 --- a/build/smoke-test/sql/sql1.sql +++ b/build/smoke-test/sql/sql1.sql @@ -1 +1,19 @@ +-- +-- 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. +-- + select count(*) from kylin_sales http://git-wip-us.apache.org/repos/asf/kylin/blob/195f7510/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawAggregatorTest.java ---------------------------------------------------------------------- diff --git a/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawAggregatorTest.java b/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawAggregatorTest.java index f70490d..a94a55c 100644 --- a/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawAggregatorTest.java +++ b/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawAggregatorTest.java @@ -1,20 +1,37 @@ -package org.apache.kylin.measure.raw; +/* + * 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.kylin.measure.raw; -import org.apache.kylin.common.util.ByteArray; -import org.apache.kylin.common.util.BytesUtil; -import org.junit.Test; +import static org.junit.Assert.*; import java.util.ArrayList; import java.util.List; -import static org.junit.Assert.assertEquals; +import org.apache.kylin.common.util.ByteArray; +import org.apache.kylin.common.util.BytesUtil; +import org.junit.Test; public class RawAggregatorTest { private RawAggregator agg = new RawAggregator(); @Test - public void testNormal(){ + public void testNormal() { int size = 100; List<ByteArray> valueList = new ArrayList<ByteArray>(size); for (Integer i = 0; i < size; i++) { @@ -28,7 +45,7 @@ public class RawAggregatorTest { } @Test - public void testNull(){ + public void testNull() { agg.aggregate(null); assertEquals(agg.getState(), null); } http://git-wip-us.apache.org/repos/asf/kylin/blob/195f7510/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawSerializerTest.java ---------------------------------------------------------------------- diff --git a/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawSerializerTest.java b/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawSerializerTest.java index 390f48e..04d85c2 100644 --- a/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawSerializerTest.java +++ b/core-metadata/src/test/java/org/apache/kylin/measure/raw/RawSerializerTest.java @@ -1,17 +1,33 @@ +/* + * 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.kylin.measure.raw; -import org.apache.kylin.common.util.ByteArray; -import org.apache.kylin.common.util.BytesUtil; -import org.apache.kylin.metadata.datatype.DataType; -import org.junit.Test; +import static org.junit.Assert.*; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import static org.junit.Assert.assertEquals; +import org.apache.kylin.common.util.ByteArray; +import org.apache.kylin.common.util.BytesUtil; +import org.apache.kylin.metadata.datatype.DataType; +import org.junit.Test; public class RawSerializerTest { static {