Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.facebook.presto.execution;
 
 
 
 import java.util.Set;
 
 import static com.google.common.base.Preconditions.checkArgument;
 import static com.google.common.base.Preconditions.checkNotNull;
 import static java.util.Objects.requireNonNull;
 
 public class StageStats
 {
     private final DateTime schedulingComplete;
 
     private final DistributionSnapshot getSplitDistribution;
     private final DistributionSnapshot addSplitDistribution;
 
     private final int totalTasks;
     private final int runningTasks;
     private final int completedTasks;
 
     private final int totalDrivers;
     private final int queuedDrivers;
     private final int runningDrivers;
     private final int completedDrivers;
 
     private final DataSize totalMemoryReservation;
 
     private final Duration totalScheduledTime;
     private final Duration totalCpuTime;
     private final Duration totalUserTime;
     private final Duration totalBlockedTime;
     private final boolean fullyBlocked;
     private final Set<BlockedReasonblockedReasons;
 
     private final DataSize rawInputDataSize;
     private final long rawInputPositions;
 
     private final DataSize processedInputDataSize;
     private final long processedInputPositions;
 
     private final DataSize outputDataSize;
     private final long outputPositions;
 
     public StageStats()
     {
         this. = null;
         this. = null;
         this. = null;
         this. = null;
         this. = 0;
         this. = 0;
         this. = 0;
         this. = 0;
         this. = 0;
         this. = 0;
         this. = 0;
         this. = null;
         this. = null;
         this. = null;
         this. = null;
         this. = null;
         this. = false;
         this. = ImmutableSet.of();
         this. = null;
         this. = 0;
         this. = null;
         this. = 0;
         this. = null;
         this. = 0;
     }
 
     @JsonCreator
    public StageStats(
            @JsonProperty("schedulingComplete"DateTime schedulingComplete,
            @JsonProperty("getSplitDistribution"DistributionSnapshot getSplitDistribution,
            @JsonProperty("scheduleTaskDistribution"DistributionSnapshot scheduleTaskDistribution,
            @JsonProperty("addSplitDistribution"DistributionSnapshot addSplitDistribution,
            @JsonProperty("totalTasks"int totalTasks,
            @JsonProperty("runningTasks"int runningTasks,
            @JsonProperty("completedTasks"int completedTasks,
            @JsonProperty("totalDrivers"int totalDrivers,
            @JsonProperty("queuedDrivers"int queuedDrivers,
            @JsonProperty("runningDrivers"int runningDrivers,
            @JsonProperty("completedDrivers"int completedDrivers,
            @JsonProperty("totalMemoryReservation"DataSize totalMemoryReservation,
            @JsonProperty("totalScheduledTime"Duration totalScheduledTime,
            @JsonProperty("totalCpuTime"Duration totalCpuTime,
            @JsonProperty("totalUserTime"Duration totalUserTime,
            @JsonProperty("totalBlockedTime"Duration totalBlockedTime,
            @JsonProperty("fullyBlocked"boolean fullyBlocked,
            @JsonProperty("blockedReasons"Set<BlockedReasonblockedReasons,
            @JsonProperty("rawInputDataSize"DataSize rawInputDataSize,
            @JsonProperty("rawInputPositions"long rawInputPositions,
            @JsonProperty("processedInputDataSize"DataSize processedInputDataSize,
            @JsonProperty("processedInputPositions"long processedInputPositions,
            @JsonProperty("outputDataSize"DataSize outputDataSize,
            @JsonProperty("outputPositions"long outputPositions)
    {
        this. = schedulingComplete;
        this. = checkNotNull(getSplitDistribution"getSplitDistribution is null");
        this. = checkNotNull(scheduleTaskDistribution"scheduleTaskDistribution is null");
        this. = checkNotNull(addSplitDistribution"addSplitDistribution is null");
        checkArgument(totalTasks >= 0, "totalTasks is negative");
        this. = totalTasks;
        checkArgument(runningTasks >= 0, "runningTasks is negative");
        this. = runningTasks;
        checkArgument(completedTasks >= 0, "completedTasks is negative");
        this. = completedTasks;
        checkArgument(totalDrivers >= 0, "totalDrivers is negative");
        this. = totalDrivers;
        checkArgument(queuedDrivers >= 0, "queuedDrivers is negative");
        this. = queuedDrivers;
        checkArgument(runningDrivers >= 0, "runningDrivers is negative");
        this. = runningDrivers;
        checkArgument(completedDrivers >= 0, "completedDrivers is negative");
        this. = completedDrivers;
        this. = checkNotNull(totalMemoryReservation"totalMemoryReservation is null");
        this. = checkNotNull(totalScheduledTime"totalScheduledTime is null");
        this. = checkNotNull(totalCpuTime"totalCpuTime is null");
        this. = checkNotNull(totalUserTime"totalUserTime is null");
        this. = checkNotNull(totalBlockedTime"totalBlockedTime is null");
        this. = fullyBlocked;
        this. = ImmutableSet.copyOf(requireNonNull(blockedReasons"blockedReasons is null"));
        this. = checkNotNull(rawInputDataSize"rawInputDataSize is null");
        checkArgument(rawInputPositions >= 0, "rawInputPositions is negative");
        this. = rawInputPositions;
        this. = checkNotNull(processedInputDataSize"processedInputDataSize is null");
        checkArgument(processedInputPositions >= 0, "processedInputPositions is negative");
        this. = processedInputPositions;
        this. = checkNotNull(outputDataSize"outputDataSize is null");
        checkArgument(outputPositions >= 0, "outputPositions is negative");
        this. = outputPositions;
    }
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }
    public int getTotalTasks()
    {
        return ;
    }
    public int getRunningTasks()
    {
        return ;
    }
    public int getCompletedTasks()
    {
        return ;
    }
    public int getTotalDrivers()
    {
        return ;
    }
    public int getQueuedDrivers()
    {
        return ;
    }
    public int getRunningDrivers()
    {
        return ;
    }
    public int getCompletedDrivers()
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }
    public Duration getTotalCpuTime()
    {
        return ;
    }
    public Duration getTotalUserTime()
    {
        return ;
    }
    public Duration getTotalBlockedTime()
    {
        return ;
    }
    public boolean isFullyBlocked()
    {
        return ;
    }
    {
        return ;
    }
    public DataSize getRawInputDataSize()
    {
        return ;
    }
    public long getRawInputPositions()
    {
        return ;
    }
    {
        return ;
    }
    public long getProcessedInputPositions()
    {
        return ;
    }
    public DataSize getOutputDataSize()
    {
        return ;
    }
    public long getOutputPositions()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X