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.operator;
 
 
 
 import java.util.List;
 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 PipelineStats
 {
     private final boolean inputPipeline;
     private final boolean outputPipeline;
 
     private final int totalDrivers;
     private final int queuedDrivers;
     private final int queuedPartitionedDrivers;
     private final int runningDrivers;
     private final int runningPartitionedDrivers;
     private final int completedDrivers;
 
     private final DataSize memoryReservation;
 
     private final DistributionSnapshot queuedTime;
     private final DistributionSnapshot elapsedTime;
 
     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;
 
     private final List<OperatorStatsoperatorSummaries;
     private final List<DriverStatsdrivers;
 
     @JsonCreator
     public PipelineStats(
             @JsonProperty("inputPipeline"boolean inputPipeline,
             @JsonProperty("outputPipeline"boolean outputPipeline,
 
             @JsonProperty("totalDrivers"int totalDrivers,
             @JsonProperty("queuedDrivers"int queuedDrivers,
             @JsonProperty("queuedPartitionedDrivers"int queuedPartitionedDrivers,
             @JsonProperty("runningDrivers"int runningDrivers,
             @JsonProperty("runningPartitionedDrivers"int runningPartitionedDrivers,
             @JsonProperty("completedDrivers"int completedDrivers,
 
             @JsonProperty("memoryReservation"DataSize memoryReservation,
 
             @JsonProperty("queuedTime"DistributionSnapshot queuedTime,
             @JsonProperty("elapsedTime"DistributionSnapshot elapsedTime,
 
             @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,
            @JsonProperty("operatorSummaries"List<OperatorStatsoperatorSummaries,
            @JsonProperty("drivers"List<DriverStatsdrivers)
    {
        this. = inputPipeline;
        this. = outputPipeline;
        checkArgument(totalDrivers >= 0, "totalDrivers is negative");
        this. = totalDrivers;
        checkArgument(queuedDrivers >= 0, "queuedDrivers is negative");
        this. = queuedDrivers;
        checkArgument(queuedPartitionedDrivers >= 0, "queuedPartitionedDrivers is negative");
        this. = queuedPartitionedDrivers;
        checkArgument(runningDrivers >= 0, "runningDrivers is negative");
        this. = runningDrivers;
        checkArgument(runningPartitionedDrivers >= 0, "runningPartitionedDrivers is negative");
        this. = runningPartitionedDrivers;
        checkArgument(completedDrivers >= 0, "completedDrivers is negative");
        this. = completedDrivers;
        this. = checkNotNull(memoryReservation"memoryReservation is null");
        this. = checkNotNull(queuedTime"queuedTime is null");
        this. = checkNotNull(elapsedTime"elapsedTime 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;
        this. = ImmutableList.copyOf(checkNotNull(operatorSummaries"operatorSummaries is null"));
        this. = ImmutableList.copyOf(checkNotNull(drivers"drivers is null"));
    }
    public boolean isInputPipeline()
    {
        return ;
    }
    public boolean isOutputPipeline()
    {
        return ;
    }
    public int getTotalDrivers()
    {
        return ;
    }
    public int getQueuedDrivers()
    {
        return ;
    }
    public int getQueuedPartitionedDrivers()
    {
        return ;
    }
    public int getRunningDrivers()
    {
        return ;
    }
    public int getRunningPartitionedDrivers()
    {
        return ;
    }
    public int getCompletedDrivers()
    {
        return ;
    }
    {
        return ;
    }
    {
        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 ;
    }
    {
        return ;
    }
    public List<DriverStatsgetDrivers()
    {
        return ;
    }
    public PipelineStats summarize()
    {
        return new PipelineStats(
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ,
                ImmutableList.<DriverStats>of());
    }
New to GrepCode? Check out our FAQ X