HADOOP-6155. Deprecate RecordIO anticipating Avro. Contributed by Tom White
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@898740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
daed679fc1
commit
08561f76db
|
@ -99,6 +99,8 @@ Trunk (unreleased changes)
|
|||
HADOOP-6420. Add functionality permitting subsets of Configuration to be
|
||||
interpreted as Map<String,String>. (Aaron Kimball via cdouglas)
|
||||
|
||||
HADOOP-6155. Deprecate RecordIO anticipating Avro. (Tom White via cdouglas)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -24,7 +24,9 @@ import java.io.DataInputStream;
|
|||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BinaryRecordInput implements RecordInput {
|
||||
|
||||
private DataInput in;
|
||||
|
|
|
@ -26,7 +26,9 @@ import java.io.DataOutputStream;
|
|||
import java.io.OutputStream;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BinaryRecordOutput implements RecordOutput {
|
||||
|
||||
private DataOutput out;
|
||||
|
|
|
@ -25,7 +25,9 @@ import java.io.UnsupportedEncodingException;
|
|||
* It is resizable and distinguishes between the count of the seqeunce and
|
||||
* the current capacity.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Buffer implements Comparable, Cloneable {
|
||||
/** Number of valid bytes in this.bytes. */
|
||||
private int count;
|
||||
|
|
|
@ -25,7 +25,9 @@ import java.io.PushbackReader;
|
|||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CsvRecordInput implements RecordInput {
|
||||
|
||||
private PushbackReader stream;
|
||||
|
|
|
@ -26,7 +26,9 @@ import java.io.OutputStream;
|
|||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CsvRecordOutput implements RecordOutput {
|
||||
|
||||
private PrintStream stream;
|
||||
|
|
|
@ -30,7 +30,10 @@ package org.apache.hadoop.record;
|
|||
* idx.incr();
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Index {
|
||||
boolean done();
|
||||
void incr();
|
||||
|
|
|
@ -27,7 +27,9 @@ import org.apache.hadoop.io.WritableComparable;
|
|||
/**
|
||||
* Abstract class that is extended by generated classes.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class Record implements WritableComparable, Cloneable {
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,10 @@ import org.apache.hadoop.io.WritableComparator;
|
|||
|
||||
/**
|
||||
* A raw record comparator base class
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class RecordComparator extends WritableComparator {
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,10 @@ import java.io.IOException;
|
|||
|
||||
/**
|
||||
* Interface that all the Deserializers have to implement.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface RecordInput {
|
||||
/**
|
||||
* Read a byte from serialized record.
|
||||
|
|
|
@ -24,7 +24,10 @@ import java.util.ArrayList;
|
|||
|
||||
/**
|
||||
* Interface that alll the serializers have to implement.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface RecordOutput {
|
||||
/**
|
||||
* Write a byte to serialized record.
|
||||
|
|
|
@ -26,7 +26,10 @@ import org.apache.hadoop.io.WritableUtils;
|
|||
|
||||
/**
|
||||
* Various utility functions for Hadooop record I/O runtime.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Utils {
|
||||
|
||||
/** Cannot create a new instance of Utils */
|
||||
|
|
|
@ -29,7 +29,10 @@ import javax.xml.parsers.SAXParser;
|
|||
|
||||
/**
|
||||
* XML Deserializer.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class XmlRecordInput implements RecordInput {
|
||||
|
||||
static private class Value {
|
||||
|
|
|
@ -28,7 +28,10 @@ import java.util.Stack;
|
|||
|
||||
/**
|
||||
* XML Serializer.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class XmlRecordOutput implements RecordOutput {
|
||||
|
||||
private PrintStream stream;
|
||||
|
|
|
@ -21,7 +21,10 @@ import java.util.ArrayList;
|
|||
|
||||
/**
|
||||
* A wrapper around StringBuffer that automatically does indentation
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CodeBuffer {
|
||||
|
||||
static private ArrayList<Character> startMarkers = new ArrayList<Character>();
|
||||
|
|
|
@ -24,7 +24,10 @@ import org.apache.hadoop.record.RecordInput;
|
|||
|
||||
/**
|
||||
* const definitions for Record I/O compiler
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Consts {
|
||||
|
||||
/** Cannot create a new instance */
|
||||
|
|
|
@ -20,7 +20,9 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JBoolean extends JType {
|
||||
|
||||
class JavaBoolean extends JType.JavaType {
|
||||
|
|
|
@ -21,7 +21,10 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
/**
|
||||
* Code generator for "buffer" type.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JBuffer extends JCompType {
|
||||
|
||||
class JavaBuffer extends JavaCompType {
|
||||
|
|
|
@ -20,7 +20,10 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
/**
|
||||
* Code generator for "byte" type.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JByte extends JType {
|
||||
|
||||
class JavaByte extends JavaType {
|
||||
|
|
|
@ -22,7 +22,10 @@ package org.apache.hadoop.record.compiler;
|
|||
/**
|
||||
* Abstract base class for all the "compound" types such as ustring,
|
||||
* buffer, vector, map, and record.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
abstract class JCompType extends JType {
|
||||
|
||||
abstract class JavaCompType extends JavaType {
|
||||
|
|
|
@ -20,7 +20,9 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JDouble extends JType {
|
||||
|
||||
class JavaDouble extends JavaType {
|
||||
|
|
|
@ -20,7 +20,10 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
/**
|
||||
* A thin wrappper around record field.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JField<T> {
|
||||
|
||||
private String name;
|
||||
|
|
|
@ -25,7 +25,10 @@ import java.util.ArrayList;
|
|||
* Container for the Hadoop Record DDL.
|
||||
* The main components of the file are filename, list of included files,
|
||||
* and records defined in that file.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JFile {
|
||||
/** Possibly full name of the file */
|
||||
private String mName;
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
package org.apache.hadoop.record.compiler;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JFloat extends JType {
|
||||
|
||||
class JavaFloat extends JavaType {
|
||||
|
|
|
@ -21,7 +21,10 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
/**
|
||||
* Code generator for "int" type
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JInt extends JType {
|
||||
|
||||
class JavaInt extends JavaType {
|
||||
|
|
|
@ -20,7 +20,10 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
/**
|
||||
* Code generator for "long" type
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JLong extends JType {
|
||||
|
||||
class JavaLong extends JavaType {
|
||||
|
|
|
@ -22,7 +22,9 @@ import java.util.Map;
|
|||
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JMap extends JCompType {
|
||||
|
||||
static private int level = 0;
|
||||
|
|
|
@ -24,7 +24,9 @@ import java.io.IOException;
|
|||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JRecord extends JCompType {
|
||||
|
||||
class JavaRecord extends JavaCompType {
|
||||
|
|
|
@ -20,7 +20,9 @@ package org.apache.hadoop.record.compiler;
|
|||
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JString extends JCompType {
|
||||
|
||||
class JavaString extends JavaCompType {
|
||||
|
|
|
@ -23,7 +23,10 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* Abstract Base class for all types supported by Hadoop Record I/O.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
abstract public class JType {
|
||||
|
||||
static String toCamelCase(String name) {
|
||||
|
|
|
@ -21,7 +21,9 @@ package org.apache.hadoop.record.compiler;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class JVector extends JCompType {
|
||||
|
||||
static private int level = 0;
|
||||
|
|
|
@ -46,7 +46,10 @@ import org.apache.tools.ant.types.FileSet;
|
|||
* <fileset include="**\/*.jr" />
|
||||
* </recordcc>
|
||||
* </pre>
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class RccTask extends Task {
|
||||
|
||||
private String language = "java";
|
||||
|
|
|
@ -27,7 +27,10 @@ package org.apache.hadoop.record.compiler.generated;
|
|||
*
|
||||
* You can modify this class to customize your error reporting
|
||||
* mechanisms so long as you retain the public fields.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ParseException extends Exception {
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,6 +28,10 @@ import java.io.FileReader;
|
|||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Rcc implements RccConstants {
|
||||
private static String language = "java";
|
||||
private static String destDir = ".";
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
|
||||
package org.apache.hadoop.record.compiler.generated;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface RccConstants {
|
||||
|
||||
int EOF = 0;
|
||||
|
|
|
@ -27,6 +27,10 @@ import java.io.FileReader;
|
|||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class RccTokenManager implements RccConstants
|
||||
{
|
||||
public java.io.PrintStream debugStream = System.out;
|
||||
|
|
|
@ -22,8 +22,10 @@ package org.apache.hadoop.record.compiler.generated;
|
|||
/**
|
||||
* An implementation of interface CharStream, where the stream is assumed to
|
||||
* contain only ASCII characters (without unicode processing).
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
public class SimpleCharStream
|
||||
{
|
||||
public static final boolean staticFlag = false;
|
||||
|
|
|
@ -21,8 +21,10 @@ package org.apache.hadoop.record.compiler.generated;
|
|||
|
||||
/**
|
||||
* Describes the input token stream.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
public class Token {
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
|
||||
package org.apache.hadoop.record.compiler.generated;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class TokenMgrError extends Error
|
||||
{
|
||||
/*
|
||||
|
|
|
@ -22,8 +22,14 @@
|
|||
<title>Hadoop Record Compiler: Parser</title>
|
||||
</head>
|
||||
<body>
|
||||
This package contains code generated by JavaCC from the
|
||||
Hadoop record syntax file rcc.jj. For details about the
|
||||
record file syntax please @see org.apache.hadoop.record.
|
||||
<p>
|
||||
(DEPRECATED) This package contains code generated by JavaCC from the
|
||||
Hadoop record syntax file rcc.jj. For details about the
|
||||
record file syntax please @see org.apache.hadoop.record.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -22,10 +22,16 @@
|
|||
<title>Hadoop Record Compiler</title>
|
||||
</head>
|
||||
<body>
|
||||
This package contains classes needed for code generation
|
||||
from the hadoop record compiler. CppGenerator and JavaGenerator
|
||||
are the main entry points from the parser. There are classes
|
||||
corrsponding to every primitive type and compound type
|
||||
included in Hadoop record I/O syntax.
|
||||
<p>
|
||||
(DEPRECATED) This package contains classes needed for code generation
|
||||
from the hadoop record compiler. CppGenerator and JavaGenerator
|
||||
are the main entry points from the parser. There are classes
|
||||
corrsponding to every primitive type and compound type
|
||||
included in Hadoop record I/O syntax.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -25,7 +25,10 @@ import org.apache.hadoop.record.RecordOutput;
|
|||
/**
|
||||
* Represents a type information for a field, which is made up of its
|
||||
* ID (name) and its type (a TypeID object).
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class FieldTypeInfo
|
||||
{
|
||||
|
||||
|
|
|
@ -25,7 +25,10 @@ import org.apache.hadoop.record.RecordOutput;
|
|||
|
||||
/**
|
||||
* Represents typeID for a Map
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MapTypeID extends TypeID {
|
||||
|
||||
private TypeID typeIDKey;
|
||||
|
|
|
@ -30,7 +30,10 @@ import org.apache.hadoop.record.RecordOutput;
|
|||
*
|
||||
* Type information for a record comprises metadata about the record,
|
||||
* as well as a collection of type information for each field in the record.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class RecordTypeInfo extends org.apache.hadoop.record.Record
|
||||
{
|
||||
|
||||
|
|
|
@ -26,7 +26,10 @@ import org.apache.hadoop.record.RecordOutput;
|
|||
|
||||
/**
|
||||
* Represents typeID for a struct
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class StructTypeID extends TypeID {
|
||||
private ArrayList<FieldTypeInfo> typeInfos = new ArrayList<FieldTypeInfo>();
|
||||
|
||||
|
|
|
@ -22,8 +22,11 @@ import java.io.IOException;
|
|||
import org.apache.hadoop.record.RecordOutput;
|
||||
|
||||
/**
|
||||
* Represents typeID for basic types.
|
||||
* Represents typeID for basic types.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class TypeID {
|
||||
|
||||
/**
|
||||
|
|
|
@ -24,7 +24,10 @@ import org.apache.hadoop.record.RecordInput;
|
|||
|
||||
/**
|
||||
* Various utility functions for Hadooop record I/O platform.
|
||||
*
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class Utils {
|
||||
|
||||
/** Cannot create a new instance of Utils */
|
||||
|
|
|
@ -24,7 +24,9 @@ import org.apache.hadoop.record.RecordOutput;
|
|||
|
||||
/**
|
||||
* Represents typeID for vector.
|
||||
* @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
*/
|
||||
@Deprecated
|
||||
public class VectorTypeID extends TypeID {
|
||||
private TypeID typeIDElement;
|
||||
|
||||
|
|
|
@ -22,9 +22,15 @@
|
|||
<title>Hadoop Record I/O</title>
|
||||
</head>
|
||||
<body>
|
||||
Hadoop record I/O contains classes and a record description language
|
||||
translator for simplifying serialization and deserialization of records in a
|
||||
language-neutral manner.
|
||||
<p>
|
||||
(DEPRECATED) Hadoop record I/O contains classes and a record description language
|
||||
translator for simplifying serialization and deserialization of records in a
|
||||
language-neutral manner.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
|
||||
</p>
|
||||
|
||||
<h2>Introduction</h2>
|
||||
|
||||
|
|
Loading…
Reference in New Issue