Skip to content

Commit

Permalink
Revert "Obsolete what was deprecated in v1.2"
Browse files Browse the repository at this point in the history
This reverts commit c449e11.
  • Loading branch information
randallwhitman committed Jul 20, 2017
1 parent 655c9c9 commit c95afc0
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 29 deletions.
8 changes: 4 additions & 4 deletions hive/src/main/java/com/esri/hadoop/hive/serde/JsonSerde.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Obsoleted
// package com.esri.hadoop.hive.serde;
// @Deprecated in v1.2
// public class JsonSerde extends EsriJsonSerDe {}
package com.esri.hadoop.hive.serde;

@Deprecated
public class JsonSerde extends EsriJsonSerDe {}
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ public void TestColumnTypes() throws Exception {
fieldData = getField("text", row, rowOI);
Assert.assertEquals("other", ((Text)fieldData).toString());
}
/* *
@Deprecated -> Obsolete

@Deprecated
@Test
public void LegacyName() throws Exception {
ArrayList<Object> stuff = new ArrayList<Object>();
Expand Down Expand Up @@ -451,7 +451,7 @@ public void LegacyName() throws Exception {
fieldData = getField("shape", row, rowOI);
ckPoint(new Point(7.0, 2.0), (BytesWritable)fieldData);
}
* */


private SerDe mkSerDe(Properties proptab) throws Exception {
Configuration config = new Configuration();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// package com.esri.json.hadoop;
// Obsolete - @Deprecated in v1.2 - superseded by EnclosedEsriJsonInputFormat
// public class EnclosedJsonInputFormat extends EnclosedEsriJsonInputFormat {}
package com.esri.json.hadoop;

/**
* @deprecated superseded by EnclosedEsriJsonInputFormat
*/
@Deprecated
public class EnclosedJsonInputFormat extends EnclosedEsriJsonInputFormat {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/* *
package com.esri.json.hadoop;

import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
* Obsolete - renamed to and superseded by EnclosedEsriJsonRecordReader
@Deprecated in v1.2

/**
* @deprecated renamed to and superseded by EnclosedEsriJsonRecordReader
*/
@Deprecated
public class EnclosedJsonRecordReader extends EnclosedEsriJsonRecordReader {
public EnclosedJsonRecordReader() throws IOException { // explicit just to declare exception
super();
Expand All @@ -13,4 +16,3 @@ public EnclosedJsonRecordReader(org.apache.hadoop.mapred.InputSplit split,
super(split, conf);
}
}
* */
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// package com.esri.json.hadoop;
// Obsolete - @Deprecated in v1.2 - superseded by UnenclosedEsriJsonInputFormat
// public class UnenclosedJsonInputFormat extends UnenclosedEsriJsonInputFormat {}
package com.esri.json.hadoop;

/**
* @deprecated superseded by UnenclosedEsriJsonInputFormat
*/
@Deprecated
public class UnenclosedJsonInputFormat extends UnenclosedEsriJsonInputFormat {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/* *
package com.esri.json.hadoop;

import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
* Obsolete renamed to and superseded by UnenclosedEsriJsonRecordReader
@Deprecated in v1.2

/**
* @deprecated renamed to and superseded by UnenclosedEsriJsonRecordReader
*/
@Deprecated
public class UnenclosedJsonRecordReader extends UnenclosedEsriJsonRecordReader {
public UnenclosedJsonRecordReader() throws IOException { // explicit just to declare exception
super();
Expand All @@ -13,4 +16,3 @@ public UnenclosedJsonRecordReader(org.apache.hadoop.mapred.InputSplit split,
super(split, conf);
}
}
* */
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void TestMrv1() throws Exception {
assertFalse (reader.next(key, value));
reader.close();
}
/* * Obsolete

@Test
public void TestLegacy() throws Exception {
Path path = new Path(this.getClass().getResource("sample-study-area.json").getFile());
Expand All @@ -104,5 +104,5 @@ public void TestLegacy() throws Exception {
assertFalse (reader.next(key, value));
reader.close();
}
* */

}
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,10 @@ public void TestGeomFirst() throws IOException {
}


/* *
/**
* @deprecated superseded by UnenclosedEsriJsonRecordReader
@Deprecated in v1.2 -> Obsolete
*/
@Deprecated
@Test
public void TestLegacyName() throws Exception {
Assert.assertArrayEquals(new int[] { 0, 1 }, getRecordIndexesInReader(getLegacyReader("unenclosed-json-simple.json", 0, 63)));
Expand All @@ -250,5 +251,5 @@ private UnenclosedEsriJsonRecordReader getLegacyReader(String resource, int star

return new UnenclosedJsonRecordReader(split, conf);
}
* */

}
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,10 @@ public void TestGeomFirst() throws Exception {
}


/* *
/**
* @deprecated superseded by UnenclosedEsriJsonRecordReader
@Deprecated in v1.2 -> Obsolete
*/
@Deprecated
@Test
public void TestLegacyName() throws Exception {
UnenclosedEsriJsonRecordReader uejrr = new UnenclosedJsonRecordReader();
Expand All @@ -293,5 +294,5 @@ public void TestLegacyName() throws Exception {
Assert.assertArrayEquals(new int[] { 0 }, getRecordIndexesInFile(uejrr, "unenclosed-json-simple.json", 0, 23));
Assert.assertArrayEquals(new int[] { 1 }, getRecordIndexesInFile(uejrr, "unenclosed-json-simple.json", 23, 41));
}
* */

}

0 comments on commit c95afc0

Please sign in to comment.