com.opendatagroup.hadrian.datatype

AvroRecord

class AvroRecord extends AvroType with AvroContainer with AvroMapping with AvroCompiled

Avro "record" type for inhomogeneous collections of named (and required) fields.

See companion object for a constructor that does not require Avro library objects.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AvroRecord
  2. AvroCompiled
  3. AvroMapping
  4. AvroContainer
  5. AvroType
  6. Type
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AvroRecord(schema: Schema)

    schema

    wrapped Avro library org.apache.avro.Schema object.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def accepts(that: Type, checkNames: Boolean = true): Boolean

    Perform type resolution: would PFA objects of type that be accepted where a PFA object of type this is expected?

    Perform type resolution: would PFA objects of type that be accepted where a PFA object of type this is expected?

    If x.accepts(y) && y.accepts(x), then x and y are equal. In general, acceptability is not symmetric.

    that

    the given argument to be accepted or rejected

    checkNames

    if true, require named types to have the same name (nominal type checking); if false, consider types with the same structure but different names to be equivalent (structural type checking)

    returns

    true if that is an acceptable substitute for this (or is exactly the same); false if incompatible

    Definition Classes
    AvroTypeType
  7. def aliases: Set[String]

    Optional set of alternate names that can be resolved to this type (for Avro schema resolution backward compatibility).

    Optional set of alternate names that can be resolved to this type (for Avro schema resolution backward compatibility).

    Definition Classes
    AvroRecordAvroCompiled
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def avroType: AvroType

    Return this if an AvroType, raise an IllegalArgumentException otherwise.

    Return this if an AvroType, raise an IllegalArgumentException otherwise.

    Definition Classes
    AvroTypeType
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def doc: String

    Optional documentation string.

    Optional documentation string.

    Definition Classes
    AvroRecordAvroCompiled
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(that: Any): Boolean

    Definition Classes
    AvroType → AnyRef → Any
  14. def field(name: String): AvroField

    Field requested by name, raising NoSuchElementException if not present.

    Field requested by name, raising NoSuchElementException if not present.

    name

    name of the requested field

  15. def fieldNames: Seq[String]

    Names of the fields, in order.

  16. def fieldOption(name: String): Option[AvroField]

    Field requested by name, returning None if not present.

    Field requested by name, returning None if not present.

    name

    name of the requested field

  17. def fields: Seq[AvroField]

    Field references, in order.

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def fullName: String

    The a fully qualified name of this type, including the optional namespace.

    The a fully qualified name of this type, including the optional namespace.

    Definition Classes
    AvroRecordAvroType
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def jsonNode(memo: Set[String]): JsonNode

    Convert the type to a Jackson node.

    Convert the type to a Jackson node.

    memo

    used to avoid infinite loops on recursive record types.

    Definition Classes
    AvroRecordAvroType
  24. def name: String

    The "name" of the type, which is used as a key in tagged unions.

    The "name" of the type, which is used as a key in tagged unions.

    Definition Classes
    AvroRecordAvroType
  25. def namespace: Option[String]

    Optional namespace.

    Optional namespace.

    Definition Classes
    AvroRecordAvroCompiled
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. val schema: Schema

    wrapped Avro library org.apache.avro.Schema object.

    wrapped Avro library org.apache.avro.Schema object.

    Definition Classes
    AvroRecordAvroType
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toJson(): String

    Convert the type to a JSON string (suitable for an Avro ".

    Convert the type to a JSON string (suitable for an Avro ".avsc" file).

    Definition Classes
    AvroType
  32. def toString(): String

    Calls toJson().

    Calls toJson().

    Definition Classes
    AvroType → AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AvroCompiled

Inherited from AvroMapping

Inherited from AvroContainer

Inherited from AvroType

Inherited from Type

Inherited from AnyRef

Inherited from Any

Ungrouped