module Presto::Client::ModelVersions::V0_173::OperatorStats
Public Class Methods
decode(hash)
click to toggle source
# File lib/presto/client/model_versions/0.173.rb, line 814 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["pipelineId"], hash["operatorId"], hash["planNodeId"], hash["operatorType"], hash["totalDrivers"], hash["addInputCalls"], hash["addInputWall"], hash["addInputCpu"], hash["addInputUser"], hash["inputDataSize"], hash["inputPositions"], hash["sumSquaredInputPositions"], hash["getOutputCalls"], hash["getOutputWall"], hash["getOutputCpu"], hash["getOutputUser"], hash["outputDataSize"], hash["outputPositions"], hash["blockedWall"], hash["finishCalls"], hash["finishWall"], hash["finishCpu"], hash["finishUser"], hash["memoryReservation"], hash["systemMemoryReservation"], hash["blockedReason"] && hash["blockedReason"].downcase.to_sym, ) obj end