@SuppressWarnings("unused") public String getQueueTime() { UserBitShared.ResourceSchedulingProfile r = profile.getResourceSchedulingProfile(); if (r == null || r.getResourceSchedulingStart() == 0 || r.getResourceSchedulingEnd() == 0) { return ""; } return NUMBER_FORMAT.format(r.getResourceSchedulingEnd() - r.getResourceSchedulingStart()) + "ms"; }
/** * @return Get query planning time. If the planning hasn't started, returns "Planning not started". If planning hasn't * completed, returns "Still planning". */ @SuppressWarnings("unused") public String getPlanningTime() { final QueryProfile profile = getProfile(); if (!profile.hasPlanningStart() || profile.getPlanningStart() == 0) { return "Planning not started"; } if (!profile.hasPlanningEnd() || profile.getPlanningEnd() == 0) { return "Still planning"; } // Starting from 3.0, the planning time includes the resource queueing time. Thus, correcting for it when resource scheduling time exists long planningPlusSchedulingTime = profile.getPlanningEnd() - profile.getPlanningStart(); UserBitShared.ResourceSchedulingProfile r = profile.getResourceSchedulingProfile(); if (r == null || r.getResourceSchedulingStart() == 0 || r.getResourceSchedulingEnd() == 0) { return NUMBER_FORMAT.format(planningPlusSchedulingTime) + "ms"; } long schedulingTime = r.getResourceSchedulingEnd() - r.getResourceSchedulingStart(); return NUMBER_FORMAT.format(planningPlusSchedulingTime - schedulingTime) + "ms"; }
setResourceSchedulingEnd(other.getResourceSchedulingEnd());
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.ResourceSchedulingProfile message) throws java.io.IOException { if(message.hasQueueName()) output.writeString(1, message.getQueueName(), false); if(message.hasQueueId()) output.writeString(2, message.getQueueId(), false); if(message.hasRuleContent()) output.writeString(3, message.getRuleContent(), false); if(message.hasRuleId()) output.writeString(4, message.getRuleId(), false); if(message.hasRuleName()) output.writeString(5, message.getRuleName(), false); if(message.hasRuleAction()) output.writeString(6, message.getRuleAction(), false); if(message.hasSchedulingProperties()) output.writeObject(7, message.getSchedulingProperties(), com.dremio.exec.proto.SchemaUserBitShared.ResourceSchedulingProperties.WRITE, false); if(message.hasResourceSchedulingStart()) output.writeInt64(8, message.getResourceSchedulingStart(), false); if(message.hasResourceSchedulingEnd()) output.writeInt64(9, message.getResourceSchedulingEnd(), false); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.ResourceSchedulingProfile message)