Class: FluentPluginS3Arrow::Schemas::AWSGlue
- Inherits:
-
Object
- Object
- FluentPluginS3Arrow::Schemas::AWSGlue
- Defined in:
- lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb
Defined Under Namespace
Classes: ConvertError, Error, Field
Instance Method Summary collapse
-
#initialize(table_name, **options) ⇒ AWSGlue
constructor
A new instance of AWSGlue.
- #to_arrow ⇒ Object
Constructor Details
#initialize(table_name, **options) ⇒ AWSGlue
Returns a new instance of AWSGlue.
10 11 12 13 14 15 |
# File 'lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb', line 10 def initialize(table_name, **) @table_name = table_name @database_name = .delete(:database_name) || "default" @catalog_id = .delete(:catalog_id) @client = Aws::Glue::Client.new() end |
Instance Method Details
#to_arrow ⇒ Object
17 18 19 20 |
# File 'lib/fluent-plugin-s3-arrow/schemas/aws_glue.rb', line 17 def to_arrow glue_schema = fetch_glue_schema convert_to_arrow_schema(glue_schema) end |