Class: Parqueteur::Type
- Inherits:
-
Object
- Object
- Parqueteur::Type
- Defined in:
- lib/parqueteur/type.rb
Direct Known Subclasses
Parqueteur::Types::ArrayType, Parqueteur::Types::BooleanType, Parqueteur::Types::Date32Type, Parqueteur::Types::Date64Type, Parqueteur::Types::Decimal128Type, Parqueteur::Types::Decimal256Type, Parqueteur::Types::Int32Type, Parqueteur::Types::Int64Type, Parqueteur::Types::MapType, Parqueteur::Types::StringType, Parqueteur::Types::StructType, Parqueteur::Types::Time32Type, Parqueteur::Types::Time64Type, Parqueteur::Types::TimestampType
Instance Attribute Summary collapse
-
#arrow_type ⇒ Object
readonly
Returns the value of attribute arrow_type.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #build_value_array(values) ⇒ Object
-
#initialize(options = {}, &block) ⇒ Type
constructor
A new instance of Type.
- #resolve(type, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ Type
Returns a new instance of Type.
7 8 9 10 11 |
# File 'lib/parqueteur/type.rb', line 7 def initialize( = {}, &block) @options = @block = block @arrow_type = arrow_type_builder end |
Instance Attribute Details
#arrow_type ⇒ Object (readonly)
Returns the value of attribute arrow_type.
5 6 7 |
# File 'lib/parqueteur/type.rb', line 5 def arrow_type @arrow_type end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/parqueteur/type.rb', line 5 def @options end |
Instance Method Details
#build_value_array(values) ⇒ Object
13 14 15 |
# File 'lib/parqueteur/type.rb', line 13 def build_value_array(values) raise "#to_arrow_field must be implemented in #{self.class}" end |
#resolve(type, options = {}) ⇒ Object
17 18 19 |
# File 'lib/parqueteur/type.rb', line 17 def resolve(type, = {}) Parqueteur::TypeResolver.resolve(type, ) end |