Class: Trino::Client::ModelVersions::V351::Partitioning=Base.new(:handle,:arguments)
- Inherits:
-
Object
- Object
- Trino::Client::ModelVersions::V351::Partitioning=Base.new(:handle,:arguments)
- Defined in:
- lib/trino/client/model_versions/351.rb
Class Method Summary collapse
Class Method Details
.decode(hash) ⇒ Object
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/trino/client/model_versions/351.rb', line 1455 def decode(hash) unless hash.is_a?(Hash) raise TypeError, "Can't convert #{hash.class} to Hash" end obj = allocate obj.send(:initialize_struct, hash["handle"] && PartitioningHandle.decode(hash["handle"]), hash["arguments"] && hash["arguments"].map {|h| ArgumentBinding.decode(h) }, ) obj end |