Class: Icss::FixedType

Inherits:
NamedType show all
Defined in:
lib/icss/type.rb

Overview

Describes an Avro Fixed type.

Fixed uses the type name “fixed” and supports the attributes:

  • name: a string naming this fixed (required).

  • namespace, a string that qualifies the name;

  • size: an integer, specifying the number of bytes per value (required).

    For example, 16-byte quantity may be declared with:

    {"type": "fixed", "size": 16, "name": "md5"}
    

Constant Summary

Constants inherited from Type

Type::PRIMITIVE_TYPES

Instance Attribute Summary

Attributes inherited from NamedType

#parent

Instance Method Summary collapse

Methods inherited from NamedType

#fullname, #name=, #namespace, #receive_namespace

Methods included from Validations

#validate_name, #validate_namespace

Methods inherited from Type

find, pig_name, primitive?, #primitive?, #title, #to_json

Instance Method Details

#to_hashObject



496
497
498
# File 'lib/icss/type.rb', line 496

def to_hash
  super.merge( :size => size )
end