Share via


Schema 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.

Represents a base class for schema objects.

Namespace:   Microsoft.Hadoop.Avro.Schema
Assembly:  Microsoft.Hadoop.Avro (in Microsoft.Hadoop.Avro.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Hadoop.Avro.Schema.Schema
    Microsoft.Hadoop.Avro.Schema.RecordField
    Microsoft.Hadoop.Avro.Schema.TypeSchema

Syntax

[SuppressMessageAttribute("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", 
    Justification = "It is a different namespace.")]
public abstract class Schema
[SuppressMessageAttribute("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", 
    Justification = "It is a different namespace.")]
public ref class Schema abstract 
[<AbstractClass>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces",
    Justification = "It is a different namespace.")>]
type Schema = class end
<SuppressMessageAttribute("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces",
    Justification := "It is a different namespace.")>
Public MustInherit Class Schema

Constructors

Name Description
System_CAPS_protmethod Schema(IDictionary<String, String>)

Initializes a new instance of the Schema class.

Properties

Name Description
System_CAPS_pubproperty Attributes

Gets the attributes.

Methods

Name Description
System_CAPS_pubmethod AddAttribute(String, String)

Adds the attribute.

System_CAPS_pubmethodSystem_CAPS_static CreateArray(TypeSchema)

Creates a ArraySchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateBoolean()

Creates a BooleanSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateBytes()

Creates a BytesSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateDouble()

Creates a DoubleSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateEnumeration(String, String, IEnumerable<String>)

Creates a EnumSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateField(String, TypeSchema)

Creates a RecordField instance.

System_CAPS_pubmethodSystem_CAPS_static CreateField(String, TypeSchema, String, IEnumerable<String>, String, Object, SortOrder)

System_CAPS_pubmethodSystem_CAPS_static CreateFixed(String, String, Int32)

Creates a FixedSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateFloat()

Creates a FloatSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateInt()

Creates a IntSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateLong()

Creates a LongSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateMap(TypeSchema)

Creates a MapSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateNull()

Creates a NullSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateRecord(String, String)

Creates a RecordSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateString()

Creates a StringSchema instance.

System_CAPS_pubmethodSystem_CAPS_static CreateUnion(TypeSchema[])

Creates a UnionSchema instance.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static SetFields(RecordSchema, IEnumerable<RecordField>)

System_CAPS_pubmethod ToString()

Returns a String that represents this instance in JSON format.(Overrides Object.ToString().)

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.Schema Namespace

Return to top