Class: Polars::Catalog::Unity::ColumnInfo
- Inherits:
-
Struct
- Object
- Struct
- Polars::Catalog::Unity::ColumnInfo
- Defined in:
- lib/polars/catalog/unity/column_info.rb,
lib/polars/catalog/unity/column_info.rb
Overview
Information for a column within a catalog table.
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#name ⇒ Object
Returns the value of attribute name.
-
#partition_index ⇒ Object
Returns the value of attribute partition_index.
-
#position ⇒ Object
Returns the value of attribute position.
-
#type_json ⇒ Object
Returns the value of attribute type_json.
-
#type_name ⇒ Object
Returns the value of attribute type_name.
-
#type_text ⇒ Object
Returns the value of attribute type_text.
Instance Method Summary collapse
-
#get_polars_dtype ⇒ Object
Get the native polars datatype of this column.
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def comment @comment end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def name @name end |
#partition_index ⇒ Object
Returns the value of attribute partition_index
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def partition_index @partition_index end |
#position ⇒ Object
Returns the value of attribute position
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def position @position end |
#type_json ⇒ Object
Returns the value of attribute type_json
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def type_json @type_json end |
#type_name ⇒ Object
Returns the value of attribute type_name
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def type_name @type_name end |
#type_text ⇒ Object
Returns the value of attribute type_text
5 6 7 |
# File 'lib/polars/catalog/unity/column_info.rb', line 5 def type_text @type_text end |
Instance Method Details
#get_polars_dtype ⇒ Object
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
Get the native polars datatype of this column.
25 26 27 |
# File 'lib/polars/catalog/unity/column_info.rb', line 25 def get_polars_dtype RbCatalogClient.type_json_to_polars_type(type_json) end |