org.apache.hadoop.io.BoundedByteArrayOutputStream.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.apache.hadoop.io.BoundedByteArrayOutputStream.<init>()方法的一些代码示例,展示了BoundedByteArrayOutputStream.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BoundedByteArrayOutputStream.<init>()方法的具体详情如下:
包路径:org.apache.hadoop.io.BoundedByteArrayOutputStream
类名称:BoundedByteArrayOutputStream
方法名:<init>

BoundedByteArrayOutputStream.<init>介绍

[英]Create a BoundedByteArrayOutputStream with the specified capacity
[中]创建具有指定容量的BoundedByteArrayOutputStream

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: org.apache.hadoop/hadoop-mapred

MapOutput(TaskAttemptID mapId, MergeManager<K,V> merger, int size, 
     boolean primaryMapOutput) {
 this.id = ID.incrementAndGet();
 this.mapId = mapId;
 this.merger = merger;
 type = Type.MEMORY;
 byteStream = new BoundedByteArrayOutputStream(size);
 memory = byteStream.getBuffer();
 this.size = size;
 
 localFS = null;
 disk = null;
 outputPath = null;
 tmpOutputPath = null;
 
 this.primaryMapOutput = primaryMapOutput;
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-core

public InMemoryMapOutput(Configuration conf, TaskAttemptID mapId,
             MergeManagerImpl<K, V> merger,
             int size, CompressionCodec codec,
             boolean primaryMapOutput) {
 super(conf, merger, mapId, (long)size, primaryMapOutput);
 this.codec = codec;
 byteStream = new BoundedByteArrayOutputStream(size);
 memory = byteStream.getBuffer();
 if (codec != null) {
  decompressor = CodecPool.getDecompressor(codec);
 } else {
  decompressor = null;
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

public InMemoryMapOutput(Configuration conf, TaskAttemptID mapId,
             MergeManagerImpl<K, V> merger,
             int size, CompressionCodec codec,
             boolean primaryMapOutput) {
 super(mapId, (long)size, primaryMapOutput);
 this.conf = conf;
 this.merger = merger;
 this.codec = codec;
 byteStream = new BoundedByteArrayOutputStream(size);
 memory = byteStream.getBuffer();
 if (codec != null) {
  decompressor = CodecPool.getDecompressor(codec);
 } else {
  decompressor = null;
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core

public InMemoryMapOutput(Configuration conf, TaskAttemptID mapId,
             MergeManagerImpl<K, V> merger,
             int size, CompressionCodec codec,
             boolean primaryMapOutput) {
 super(mapId, (long)size, primaryMapOutput);
 this.conf = conf;
 this.merger = merger;
 this.codec = codec;
 byteStream = new BoundedByteArrayOutputStream(size);
 memory = byteStream.getBuffer();
 if (codec != null) {
  decompressor = CodecPool.getDecompressor(codec);
 } else {
  decompressor = null;
 }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

public InMemoryMapOutput(Configuration conf, TaskAttemptID mapId,
             MergeManagerImpl<K, V> merger,
             int size, CompressionCodec codec,
             boolean primaryMapOutput) {
 super(mapId, (long)size, primaryMapOutput);
 this.conf = conf;
 this.merger = merger;
 this.codec = codec;
 byteStream = new BoundedByteArrayOutputStream(size);
 memory = byteStream.getBuffer();
 if (codec != null) {
  decompressor = CodecPool.getDecompressor(codec);
 } else {
  decompressor = null;
 }
}

代码示例来源:origin: io.hops/hadoop-common

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: ch.cern.hadoop/hadoop-common

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: org.apache.apex/malhar-library

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

currentKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
lastKeyBufferOS = new BoundedByteArrayOutputStream(MAX_KEY_SIZE);
this.conf = conf;

代码示例来源:origin: org.apache.hadoop/hadoop-common-test

public void testBoundedStream() throws IOException {
  new BoundedByteArrayOutputStream(SIZE);

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

public void testBoundedStream() throws IOException {
  new BoundedByteArrayOutputStream(SIZE);

代码示例来源:origin: ch.cern.hadoop/hadoop-common

public void testBoundedStream() throws IOException {
  new BoundedByteArrayOutputStream(SIZE);

相关文章