Class: Trino::Client::ModelVersions::V303::WriteStatisticsHandle=Base.new(:handle)

Inherits:
Object
  • Object
show all
Defined in:
lib/trino/client/model_versions/303.rb

Class Method Summary collapse

Class Method Details

.decode(hash) ⇒ Object



2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
# File 'lib/trino/client/model_versions/303.rb', line 2560

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"] && AnalyzeTableHandle.decode(hash["handle"]),
  )
  obj
end