github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/hadoopfs/src/main/java/io/lakefs/storage/CreateOutputStreamParams.java (about)

     1  package io.lakefs.storage;
     2  
     3  import org.apache.hadoop.util.Progressable;
     4  
     5  public class CreateOutputStreamParams {
     6      int bufferSize;
     7      long blockSize;
     8      Progressable progress;
     9  
    10      public CreateOutputStreamParams bufferSize(int bufferSize) {
    11          this.bufferSize = bufferSize;
    12          return this;
    13      }
    14  
    15      public CreateOutputStreamParams blockSize(long blockSize) {
    16          this.blockSize = blockSize;
    17          return this;
    18      }
    19  
    20      public CreateOutputStreamParams progress(Progressable progress) {
    21          this.progress = progress;
    22          return this;
    23      }
    24  }