module Presto::Client::ModelVersions::V0_153::AggregationNode
Those model classes are automatically generated
Public Class Methods
decode(hash)
click to toggle source
# File lib/presto/client/model_versions/0.153.rb, line 247 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["id"], hash["source"] && PlanNode.decode(hash["source"]), hash["aggregations"], hash["functions"] && Hash[hash["functions"].to_a.map! {|k,v| [k, Signature.decode(v)] }], hash["masks"], hash["groupingSets"], hash["step"] && hash["step"].downcase.to_sym, hash["sampleWeight"], hash["confidence"], hash["hashSymbol"], hash["groupIdSymbol"], ) obj end