# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.apache.avro.reflect.MapEntry Use org.apache.avro.util.MapEntry
  org.apache.avro.ipc.SocketServer use `SaslSocketServer` instead.
  org.apache.avro.ipc.SocketTransceiver use `SaslSocketTransceiver` instead.

- Deprecated Methods
  Method and Description
  org.apache.avro.io.DecoderFactory.createBinaryDecoder(byte[], BinaryDecoder) use `DecoderFactory.binaryDecoder(byte[], BinaryDecoder)` instead
  org.apache.avro.io.DecoderFactory.createBinaryDecoder(byte[], int, int, BinaryDecoder) use `DecoderFactory.binaryDecoder(byte[], int, int, BinaryDecoder)` instead
  org.apache.avro.io.DecoderFactory.createBinaryDecoder(InputStream, BinaryDecoder) use the equivalent `DecoderFactory.binaryDecoder(InputStream, BinaryDecoder)` instead
  org.apache.avro.generic.GenericDatumReader.createFixed(Object, byte[], Schema) As of Avro 1.6.0 this method has been moved to `GenericData.createFixed(Object, byte[], Schema)`
  org.apache.avro.generic.GenericDatumReader.createFixed(Object, Schema) As of Avro 1.6.0 this method has been moved to `GenericData.createFixed(Object, Schema)`
  org.apache.avro.Protocol.createMessage(String, String, Schema)
  org.apache.avro.Protocol.createMessage(String, String, Schema, Schema, Schema)
  org.apache.avro.Schema.createRecord(List<Schema.Field>) This method allows to create Schema objects that cannot be parsed by `Schema.Parser.parse(String)`. It will be removed in a future version of Avro. Better use i`Schema.createRecord(String, String, String, boolean, List)` to produce a fully qualified Schema.
  org.apache.avro.io.DecoderFactory.defaultFactory() use the equivalent `DecoderFactory.get()` instead
  org.apache.avro.mapred.AvroMultipleOutputs.getCollector(String, Reporter) Use `AvroMultipleOutputs.collect(java.lang.String, org.apache.hadoop.mapred.Reporter, java.lang.Object)` method for collecting output
  org.apache.avro.ipc.specific.SpecificRequestor.getDatumReader(Schema)
  org.apache.avro.util.Utf8.getLength() call `Utf8.getByteLength()` instead.
  org.apache.avro.compiler.specific.SpecificCompiler.javaUnbox(Schema) use javaUnbox(Schema, boolean), kept for backward compatibility of custom templates
  org.apache.avro.generic.GenericDatumReader.newRecord(Object, Schema) As of Avro 1.6.0 this method has been moved to `GenericData.newRecord(Object, Schema)`
  org.apache.avro.Schema.parse(File) use `Schema.Parser` instead.
  org.apache.avro.Schema.parse(InputStream) use `Schema.Parser` instead.
  org.apache.avro.Schema.parse(String) use `Schema.Parser` instead.
  org.apache.avro.Schema.parse(String, boolean) use `Schema.Parser` instead.
  org.apache.avro.ipc.Requestor.readError(Schema, Decoder)
  org.apache.avro.ipc.Requestor.readResponse(Schema, Decoder)
  org.apache.avro.util.Utf8.setLength(int) call `Utf8.setByteLength(int)` instead.
  org.apache.avro.Schema.toString(Collection<Schema>, boolean)

- Deprecated Constructors
  Constructor and Description
  org.apache.avro.io.parsing.Symbol.DefaultStartAction(byte[])
  org.apache.avro.io.parsing.Symbol.EnumAdjustAction(int, Object[])
  org.apache.avro.io.parsing.Symbol.EnumLabelsAction(List<String>)
  org.apache.avro.io.parsing.Symbol.FieldAdjustAction(int, String, Set<String>)
  org.apache.avro.io.parsing.Symbol.FieldOrderAction(Schema.Field[])
  org.apache.avro.ipc.jetty.HttpServer(Responder, Connector) - use the Constructors that take a ConnectionFactory
  org.apache.avro.ipc.jetty.HttpServer(ResponderServlet, Connector) - use the Constructors that take a ConnectionFactory
  org.apache.avro.io.parsing.Symbol.IntCheckAction(int)
  org.apache.avro.io.parsing.Symbol.SkipAction(Symbol)
  org.apache.avro.io.parsing.Symbol.UnionAdjustAction(int, Symbol)

Copyright © 2009–2024 The Apache Software Foundation. All rights reserved.