Class: Fluent::BigQuery::FloatFieldSchema

Inherits:
FieldSchema
  • Object
show all
Defined in:
lib/fluent/plugin/bigquery/schema.rb

Instance Attribute Summary

Attributes inherited from FieldSchema

#mode, #name

Instance Method Summary collapse

Methods inherited from FieldSchema

#format, #initialize, #to_h

Constructor Details

This class inherits a constructor from Fluent::BigQuery::FieldSchema

Instance Method Details

#format_one(value, is_load: false) ⇒ Object



104
105
106
# File 'lib/fluent/plugin/bigquery/schema.rb', line 104

def format_one(value, is_load: false)
  value.to_f
end

#typeObject



100
101
102
# File 'lib/fluent/plugin/bigquery/schema.rb', line 100

def type
  :float
end