profile.getForeman().getAddress(), profile.getQuery(), ProfileUtil.getQueryStateDisplayName(profile.getState()), profile.getUser(), profile.getTotalCost(), profile.getQueueName()));
@Nullable @Override public ProfileInfo apply(@Nullable Entry<String, UserBitShared.QueryProfile> input) { if (input == null || input.getValue() == null) { return ProfileInfo.getDefault(); } //Constructing ProfileInfo final String queryID = input.getKey(); final QueryProfile profile = input.getValue(); //For cases where query was never queued final long assumedQueueEndTime = profile.getQueueWaitEnd()> 0 ? profile.getQueueWaitEnd() : profile.getPlanEnd(); return new ProfileInfo( queryID, new Timestamp(profile.getStart()), profile.getForeman().getAddress(), profile.getTotalFragments(), profile.getUser(), profile.getQueueName(), computeDuration(profile.getStart(), profile.getPlanEnd()), computeDuration(profile.getPlanEnd(), assumedQueueEndTime), computeDuration(assumedQueueEndTime, profile.getEnd()), profile.getState().name(), profile.getQuery() ); } });
output.writeDouble(20, message.getTotalCost(), false); if(message.hasQueueName()) output.writeString(21, message.getQueueName(), false); if(message.hasQueryId()) output.writeString(22, message.getQueryId(), false);
/** * <code>optional string queue_name = 21 [default = "-"];</code> */ public Builder clearQueueName() { bitField0_ = (bitField0_ & ~0x00100000); queueName_ = getDefaultInstance().getQueueName(); onChanged(); return this; } /**
output.writeDouble(20, message.getTotalCost(), false); if(message.hasQueueName()) output.writeString(21, message.getQueueName(), false); if(message.hasQueryId()) output.writeString(22, message.getQueryId(), false);
/** * <code>optional string queue_name = 21 [default = "-"];</code> */ public Builder clearQueueName() { bitField0_ = (bitField0_ & ~0x00100000); queueName_ = getDefaultInstance().getQueueName(); onChanged(); return this; } /**