PIG-5034: Remove org.apache.hadoop.hive.serde2.objectinspector.primitive package
git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1768619 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 2bbd976..587aaf3 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -24,6 +24,8 @@
IMPROVEMENTS
+PIG-5034: Remove org.apache.hadoop.hive.serde2.objectinspector.primitive package (nkollar via daijy)
+
PIG-5036: Remove biggish from e2e input dataset (daijy)
PIG-5053: Can't change HDFS user home in e2e tests using Ant (nkollar via daijy)
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantBooleanObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantBooleanObjectInspector.java
deleted file mode 100644
index 6da6592..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantBooleanObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-import org.apache.hadoop.io.BooleanWritable;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-public class JavaConstantBooleanObjectInspector extends
- JavaBooleanObjectInspector implements ConstantObjectInspector {
- private Boolean value;
-
- public JavaConstantBooleanObjectInspector(Boolean value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new BooleanWritable(value);
- }
-}
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantDoubleObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantDoubleObjectInspector.java
deleted file mode 100644
index 8122fce..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantDoubleObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-import org.apache.hadoop.hive.serde2.io.DoubleWritable;
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-public class JavaConstantDoubleObjectInspector extends
- JavaDoubleObjectInspector implements ConstantObjectInspector {
- private Double value;
-
- public JavaConstantDoubleObjectInspector(Double value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new DoubleWritable(value);
- }
-}
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantFloatObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantFloatObjectInspector.java
deleted file mode 100644
index 9c57500..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantFloatObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-import org.apache.hadoop.io.FloatWritable;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-public class JavaConstantFloatObjectInspector extends JavaFloatObjectInspector
- implements ConstantObjectInspector {
- private Float value;
-
- public JavaConstantFloatObjectInspector(Float value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new FloatWritable(value);
- }
-}
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantIntObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantIntObjectInspector.java
deleted file mode 100644
index f955f91..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantIntObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-import org.apache.hadoop.io.IntWritable;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-public class JavaConstantIntObjectInspector extends JavaIntObjectInspector
- implements ConstantObjectInspector {
- private Integer value;
-
- public JavaConstantIntObjectInspector(Integer value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new IntWritable(value);
- }
-}
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantLongObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantLongObjectInspector.java
deleted file mode 100644
index b50a69d..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantLongObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-import org.apache.hadoop.io.LongWritable;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-public class JavaConstantLongObjectInspector extends JavaLongObjectInspector
- implements ConstantObjectInspector {
- private Long value;
-
- public JavaConstantLongObjectInspector(Long value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new LongWritable(value);
- }
-}
diff --git a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantStringObjectInspector.java b/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantStringObjectInspector.java
deleted file mode 100644
index bcb357f..0000000
--- a/src/org/apache/hadoop/hive/serde2/objectinspector/primitive/JavaConstantStringObjectInspector.java
+++ /dev/null
@@ -1,43 +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.hadoop.hive.serde2.objectinspector.primitive;
-
-/**
- * This class will be in Hive code base begin 1.2.0 (HIVE-9766).
- * Will remove once we switch to use Hive 1.2.0
- */
-import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
-import org.apache.hadoop.io.Text;
-
-public class JavaConstantStringObjectInspector extends
- JavaStringObjectInspector implements ConstantObjectInspector {
- private String value;
-
- public JavaConstantStringObjectInspector(String value) {
- super();
- this.value = value;
- }
-
- @Override
- public Object getWritableConstantValue() {
- if (value==null) {
- return null;
- }
- return new Text(value);
- }
-}