Class: Fluent::BigQuery::TimeFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
158
159
160
161
162
163
164
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 158
def format_one(value)
if value.respond_to?(:strftime)
value.strftime("%H:%M:%S.%6L")
else
value
end
end
|
#type ⇒ Object
154
155
156
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 154
def type
:time
end
|