Module: Avro::LogicalTypes
- Defined in:
- lib/avro-patches/logical_types/logical_types.rb
Defined Under Namespace
Modules: Identity, IntDate, TimestampMicros, TimestampMillis
Constant Summary collapse
- TYPES =
{ "int" => { "date" => IntDate }, "long" => { "timestamp-millis" => TimestampMillis, "timestamp-micros" => TimestampMicros }, }.freeze
Class Method Summary collapse
Class Method Details
.type_adapter(type, logical_type) ⇒ Object
67 68 69 70 71 |
# File 'lib/avro-patches/logical_types/logical_types.rb', line 67 def self.type_adapter(type, logical_type) return unless logical_type TYPES.fetch(type, {}.freeze).fetch(logical_type, Identity) end |