AvroContractResolver Class
Note
A newer version of HDInsight .NET SDK is available that uses the Azure Resource Manager (ARM) approach. You are encouraged to use the newer ARM-based version of HDInsight .NET SDK going forward. For instructions on how to use the new HDInsight .NET SDK to create a cluster, see Create HDInsight Linux clusters using .NET SDK. For instructions on how to submit jobs using the new .NET SDK and other approaches, see Submit jobs to an HDInsight cluster. The HDInsight SDK reference for the newer version is available at HDInsight .NET SDK Reference.
Provides a mechanism for dynamically mapping C# types to and from Avro schema. Using derived contract resolvers, the IAvroSerializer<T> can identify what fields should be included in the schema and consequently serialized.
Namespace: Microsoft.Hadoop.Avro
Assembly: Microsoft.Hadoop.Avro (in Microsoft.Hadoop.Avro.dll)
Inheritance Hierarchy
System.Object
Microsoft.Hadoop.Avro.AvroContractResolver
Microsoft.Hadoop.Avro.AvroDataContractResolver
Microsoft.Hadoop.Avro.AvroPublicMemberContractResolver
Syntax
public abstract class AvroContractResolver : IEquatable<AvroContractResolver>
public ref class AvroContractResolver abstract : IEquatable<AvroContractResolver^>
[<AbstractClass>]
type AvroContractResolver =
class
interface IEquatable<AvroContractResolver>
end
Public MustInherit Class AvroContractResolver
Implements IEquatable(Of AvroContractResolver)
Constructors
Name | Description | |
---|---|---|
AvroContractResolver() | Initializes a new instance of the AvroContractResolver class. |
Methods
Name | Description | |
---|---|---|
Equals(AvroContractResolver) | Indicates whether the current AvroContractResolver object is equal to another specified object of the same type. |
|
Equals(Object) | Indicates whether the specified Object is equal to this instance of an AvroContractResolver.(Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Returns a hash code for this instance.(Overrides Object.GetHashCode().) |
|
GetKnownTypes(Type) | Retrieves the known types of an abstract type or interface that could be present in the tree of objects serialized with this contract resolver. |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ResolveMembers(Type) | Retrieves the serialization information about the type members. This information is used for creation of the corresponding schema nodes. |
|
ResolveType(Type) | Gets the serialization information about a specified type. |
|
StripAvroNonCompatibleCharacters(String) | Strips all characters that are not compatible with Avro from a string. |
|
ToString() | (Inherited from Object.) |
Remarks
AvroDataContractResolver is used to serialize classes according to Data Contract attributes.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Hadoop.Avro Namespace
Return to top