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 static com.google.common.base.MoreObjects.toStringHelper;
 
 public class PageBufferInfo
 {
     private final int partition;
     private final long bufferedPages;
     private final long queuedPages;
     private final long bufferedBytes;
     private final long pagesAdded;
 
     public PageBufferInfo(
             @JsonProperty("partition"int partition,
             @JsonProperty("bufferedPages"long bufferedPages,
             @JsonProperty("queuedPages"long queuedPages,
             @JsonProperty("bufferedBytes"long bufferedBytes,
             @JsonProperty("pagesAdded"long pagesAdded)
     {
         this. = partition;
         this. = bufferedPages;
         this. = queuedPages;
         this. = bufferedBytes;
         this. = pagesAdded;
     }
 
     @JsonProperty
     public int getPartition()
     {
         return ;
     }
 
     @JsonProperty
     public long getBufferedPages()
     {
         return ;
     }
 
     @JsonProperty
     public long getQueuedPages()
     {
         return ;
     }
 
     @JsonProperty
     public long getBufferedBytes()
     {
         return ;
     }
 
     @JsonProperty
     public long getPagesAdded()
     {
         return ;
     }
 
     @Override
     public boolean equals(Object o)
     {
         if (this == o) {
             return true;
         }
         if (o == null || getClass() != o.getClass()) {
             return false;
         }
         PageBufferInfo that = (PageBufferInfoo;
         return Objects.equals(that.partition) &&
                 Objects.equals(that.bufferedPages) &&
                 Objects.equals(that.queuedPages) &&
                 Objects.equals(that.bufferedBytes) &&
                 Objects.equals(that.pagesAdded);
     }
 
     @Override
     public int hashCode()
     {
         return Objects.hash();
     }
 
     @Override
     public String toString()
     {
        return toStringHelper(this)
                .add("partition")
                .add("bufferedPages")
                .add("queuedPages")
                .add("bufferedBytes")
                .add("pagesAdded")
                .toString();
    }
    public static PageBufferInfo empty()
    {
        return new PageBufferInfo(0, 0, 0, 0, 0);
    }
New to GrepCode? Check out our FAQ X