Java 类org.apache.hadoop.fs.s3.FileSystemStore 实例源码

项目:incubator-tajo    文件:SmallBlockS3FileSystem.java   
public synchronized static FileSystemStore get() {
  if(s != null) {
    return s;
  }
  s = new InMemoryFileSystemStore();
  return s;
}
项目:incubator-tajo    文件:S3OutputStream.java   
public S3OutputStream(Configuration conf, FileSystemStore store,
                      Path path, long blockSize, Progressable progress,
                      int buffersize) throws IOException {

  this.conf = conf;
  this.store = store;
  this.path = path;
  this.blockSize = blockSize;
  this.backupFile = newBackupFile();
  this.backupStream = new FileOutputStream(backupFile);
  this.bufferSize = buffersize;
  this.outBuf = new byte[bufferSize];

}
项目:tajo-cdh    文件:SmallBlockS3FileSystem.java   
public synchronized static FileSystemStore get() {
  if(s != null) {
    return s;
  }
  s = new InMemoryFileSystemStore();
  return s;
}
项目:tajo-cdh    文件:S3OutputStream.java   
public S3OutputStream(Configuration conf, FileSystemStore store,
                      Path path, long blockSize, Progressable progress,
                      int buffersize) throws IOException {

  this.conf = conf;
  this.store = store;
  this.path = path;
  this.blockSize = blockSize;
  this.backupFile = newBackupFile();
  this.backupStream = new FileOutputStream(backupFile);
  this.bufferSize = buffersize;
  this.outBuf = new byte[bufferSize];

}