module Presto::Client::ModelVersions::V303::BasicQueryStats
Public Class Methods
decode(hash)
click to toggle source
# File lib/presto/client/model_versions/303.rb, line 420 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["createTime"], hash["endTime"], hash["queuedTime"], hash["elapsedTime"], hash["executionTime"], hash["totalDrivers"], hash["queuedDrivers"], hash["runningDrivers"], hash["completedDrivers"], hash["physicalInputDataSize"], hash["physicalInputPositions"], hash["internalNetworkInputDataSize"], hash["internalNetworkInputPositions"], hash["rawInputDataSize"], hash["rawInputPositions"], hash["cumulativeUserMemory"], hash["userMemoryReservation"], hash["totalMemoryReservation"], hash["peakUserMemoryReservation"], hash["totalCpuTime"], hash["totalScheduledTime"], hash["fullyBlocked"], hash["blockedReasons"] && hash["blockedReasons"].map {|h| h.downcase.to_sym }, hash["progressPercentage"], ) obj end