module Trino::Client::ModelVersions::V0_149::QueryStats
Public Class Methods
decode(hash)
click to toggle source
# File lib/trino/client/model_versions/0.149.rb, line 1086 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["executionStartTime"], hash["lastHeartbeat"], hash["endTime"], hash["elapsedTime"], hash["queuedTime"], hash["analysisTime"], hash["distributedPlanningTime"], hash["totalPlanningTime"], hash["finishingTime"], hash["totalTasks"], hash["runningTasks"], hash["completedTasks"], hash["totalDrivers"], hash["queuedDrivers"], hash["runningDrivers"], hash["completedDrivers"], hash["cumulativeMemory"], hash["totalMemoryReservation"], hash["peakMemoryReservation"], hash["totalScheduledTime"], hash["totalCpuTime"], hash["totalUserTime"], hash["totalBlockedTime"], hash["fullyBlocked"], hash["blockedReasons"] && hash["blockedReasons"].map {|h| h.downcase.to_sym }, hash["rawInputDataSize"], hash["rawInputPositions"], hash["processedInputDataSize"], hash["processedInputPositions"], hash["outputDataSize"], hash["outputPositions"], ) obj end